[Koha] Include dynamic content in opac main page
Tim McMahon
tmcmahon at wlpl.org
Tue Jul 7 09:55:00 NZST 2020
You should use htdocs instead of cgi-bin for HTML files, but I'm not
sure how good of an idea it is to put custom content in a Koha directory.
On 7/3/20 3:50 PM, Alvaro Cornejo wrote:
> Hi
>
> We want to include some content that is generated daily in html format into
> the main opac/intranet pages. We tried to use this (snip) code in
> IntranetmainUserblock and OpacNavBottom but can´t get the content to be
> shown
>
> <script src="jquery.js"></script>
> <script>
> $(function(){
> $("#includedContent").load("DynamicCode.html");
> });
> </script>
> ...
> <div>
> ...fixed content...
> <div id="includedContent">Changing content</div>
> ...fixed content..
> </div>
>
>
> My guess is that "DynamicCode.html" file is not in the right place to be
> read by koha or I´m not specifying the right path to it. We placed it in
> intranet/cg-bin/ and opac/cgi-bin but no success. DynamicCode.html is
> own by root but has read permit for everybody (-rw-r--r--) .
>
> We tried to split the snip code and place the <script> part into UserJS
> preferences and keep display <div> part into UserBlock but that doesn't
> work either.
>
> What are we missing?
>
> Regards
>
> Alvaro
>
> |----------------------------------------------------------------------------------------|
> Stay safe / Cuídate/ Reste sécurisé
> *7* Switch off as you go / Apaga lo que no usas / Débranchez au fur et à
> mesure.
> *q *Recycle always / Recicla siempre / Recyclez toujours
> P Print only if absolutely necessary / Imprime solo si es necesario /
> Imprimez seulement si nécessaire
> _______________________________________________
>
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
--
Tim McMahon
West Liberty Public Library
319-627-2084
More information about the Koha
mailing list