?
avatar uzielweb
uzielweb
22 Jan 2019

Steps to reproduce the issue

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

Expected result

When echo layout we need to retrieve only the layout name.
"byuserposts" for example

Actual result

_:byuserposts

System information (as much as possible)

Additional comments

avatar uzielweb uzielweb - open - 22 Jan 2019
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jan 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Jan 2019
avatar SharkyKZ
SharkyKZ - comment - 22 Jan 2019

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 be protostar:custom.

avatar Bakual
Bakual - comment - 22 Jan 2019

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).

avatar Bakual Bakual - close - 22 Jan 2019
avatar Bakual Bakual - change - 22 Jan 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-01-22 21:28:12
Closed_By Bakual

Add a Comment

Login with GitHub to post a comment