Retrieve module id in Joomla xml element


/ Published in: PHP
Save to your folder(s)

It's not possible to use the standard syntax to retrieve the current id of the Joomla module in a Joomla xml element. This code parses the url and grabs the last part of the url which i atypically the module id when editing a module in the Joomla admin.

We used this to create a unique cookie for each instance of the module.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.