Hi, I have a suggestion: Why don't we make the following code an include file and insert it whenever need be. While translating I noted it is a redundant code found in many many files. <TMPL_IF NAME="loggedinuser"> <p align=left>Logged in as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/mainpage.pl?logout.x=1>Log out</a>]</p> <TMPL_ELSE> <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log in</a> to Koha</p> </TMPL_IF> I am not a programmer, though, so this is just a thought. Benedict
Hi all, A search run on the intranet-tmpl directory reveals that 89 files contain the sequence <TMPL_IF NAME="loggedinuser"> Benedict
Benedict a écrit:
Hi all, A search run on the intranet-tmpl directory reveals that 89 files contain the sequence <TMPL_IF NAME="loggedinuser">
Benedict
You're completely right ! Should be something to fix in a future release. However, this does not need any coding, juste templates modifications (with a TMPL_INCLUDE at the beginning of the page) -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
Dnia sob 11. styczeń 2003 11:30, paul POULAIN napisał:
However, this does not need any coding, juste templates modifications (with a TMPL_INCLUDE at the beginning of the page)
Hi, The <TMPL_IF NAME="loggedinuser"> TAG has two forms in template files calls in its <TMPL_ELSE> stetement either userpage.pl or opac-user.pl. We need two include files then. One userpage_pl.inc and opac-user_pl.inc In each template file we need to put a line like so: <TMPL_INCLUDE NAME="userpage_pl.inc"> and <TMPL_INCLUDE NAME="opac-page_pl.inc"> instead of <TMPL_IF NAME="loggedinuser"> <p align=left>Loggedin as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/mainpage.pl?logout.x=1>Log out</a>]</p> <TMPL_ELSE> <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log in</a> to Koha</p> </TMPL_IF> If my reasoning is correct can I go ahead and change all the files in polish and other directories? Benedict
Benedict a écrit:
Dnia sob 11. styczeń 2003 11:30, paul POULAIN napisał:
However, this does not need any coding, juste templates modifications (with a TMPL_INCLUDE at the beginning of the page)
Hi, The <TMPL_IF NAME="loggedinuser"> TAG has two forms in template files calls in its <TMPL_ELSE> stetement either userpage.pl or opac-user.pl. We need two include files then. One userpage_pl.inc and opac-user_pl.inc In each template file we need to put a line like so: <TMPL_INCLUDE NAME="userpage_pl.inc"> and <TMPL_INCLUDE NAME="opac-page_pl.inc"> instead of
<TMPL_IF NAME="loggedinuser"> <p align=left>Loggedin as: <TMPL_VAR NAME="loggedinuser"> [<a href=/cgi-bin/koha/mainpage.pl?logout.x=1>Log out</a>]</p> <TMPL_ELSE> <p align=left><a href=/cgi-bin/koha/opac-user.pl>Log in</a> to Koha</p> </TMPL_IF>
If my reasoning is correct can I go ahead and change all the files in polish and other directories?
Benedict
I think you're right. go ahead in polish, then in other languages if you can. And thanks for the job. -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
participants (2)
-
Benedict -
paul POULAIN