Get the ID of a module in a template
Hello,
I would like to use the ID of a module within the template to compose IDs tags. How could I get it?
For example in the mod_navigation module I can get $this->id. but I canĀ“t get it from nav_default template. How could I get it or pass it ?
Thank's
Re: Get the ID of a module in a template
I'm not sure if you can get an ID from the navigation sub-templates like nav_default.html5. It depends if the navigation module passes the ID to the template.
The best thing to do is put this line at the top of your template:
Code:
<?php $this->showTemplateVars(); ?>
That will show you every variable that is set for that template, see if there's anything in there you can use.
Re: Get the ID of a module in a template
I didn't know this...
I've got some unique ID
Thanks