lizmap-web-client
lizmap-web-client copied to clipboard
customizing the interface of the lizmap project
I am in need of customizing the interface of the lizmap project interface according to the logged in user. in my research I found that the view.tpl file (/var/www/lizmap-web-client-3.4.1/lizmap/modules/view/templates/view.tpl) contains the contents of the project page.
I would like to understand how the redirection of the user is carried out, after authentication? also is there a documentation describing the tree structure of the project files?
cordially
Hi Lizmap team, great project you guys have built. I would like to follow up on this post.
Issue: I am having an issue adding an extra page to the Lizmap site - e.g. 'About'.
So far in Lizmap module I have duplicated and renamed both the default.tpl and default.classic.php (about.tpl and about.classic.php). Nb. I added a 'Hello world' div in the new controller before the <?php tag.
I have added the following url to the url.xml file also:
<url pathinfo="/about" action="about:index"/>
This will direct me to a page with a 404 error displayed below the 'Hello world' text.
Question: could you please advise on why the Php is not being picked up? Is there some other url.xml that I need to configure?
Thanks in advance,
Niall
@laurentj Could you answer those questions please?
@gampini-jacques if you want to change the content of a template of the view
module, copy the template in the directory lizmap/var/themes/default/view/
, and modify this copy. It will be automatically taken account when you reload the page into the browser (if it is not the case, remove all files from temp/lizmap/www/
).
@NJMC
The urls.xml file is not used (yet). The url to access to your controller is http://my.lizmap/index.php/lizmap/about/index/
. (url is index.php/<module name>/<controller name>/<method name>
.
The controller file must not contain HTML content. All HTML content goes into templates.
Lizmap is using the Jelix framework 1.6 : see https://docs.jelix.org/en/manual-1.6/
Ok, thanks Laurent.
On Mon, Apr 25, 2022 at 1:08 PM Laurent Jouanneau @.***> wrote:
@NJMC https://github.com/NJMC
The urls.xml file is not used (yet). The url to access to your controller is http://my.lizmap/index.php/lizmap/about/index/. (url is index.php/
/ / . The controller file must not contain HTML content. All HTML content goes into templates.
Lizmap is using the Jelix framework 1.6 : see https://docs.jelix.org/en/manual-1.6/
— Reply to this email directly, view it on GitHub https://github.com/3liz/lizmap-web-client/issues/2572#issuecomment-1108486905, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGRYUBZPHR65BCBRZ2URPLVG2DKJANCNFSM5HF34LEQ . You are receiving this because you were mentioned.Message ID: @.***>
@laurentj : will it also work if I copy the template of the view
in something like lizmap/var/themes/repo1/view/
and lizmap/var/themes/repo2/view/
?
So I can have different content for different repositories?
Hiya! This issue has gone quiet. 👻 We get a few questions in the bug tracker, so we currently slowly closing issues. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Thanks for being a part of the Lizmap community! 🦎