[Koha] Include dynamic content in opac main page
Alvaro Cornejo
cornejo.alvaro at gmail.com
Sat Jul 4 08:50:23 NZST 2020
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
More information about the Koha
mailing list