byuserposts.php is my custom layout in php for my module
in my custom built module I need to retrieve the layout name, but when I uses echo
echo $params->get('layout');
I retrieve some like this
_:byuserposts
When echo layout we need to retrieve only the layout name.
"byuserposts" for example
_:byuserposts
Labels |
Added:
?
|
I'm closing this issue as it is expected behavior.
If you need assistance with adjusting your code, feel free to ask on the forum (forum.joomla.org).
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-01-22 21:28:12 |
Closed_By | ⇒ | Bakual |
This is expected. Layout value consists of template name (or underscore if global layout is used) and layout name, separated by colon. E.g. if you created
custom.php
layout for Protostar and selected it, the value would beprotostar:custom
.