Search
Other Snippets questions
Forum

Snippet attributes in in structured order don't work ....

Hans-Günter Heiserholt's Avatar Hans-Günter Heiserholt
In the new snippet syntax we can define attributes as a serial stream, like:
{snippet [id,alias,title] = "yyyy" Parm1="xxxx" Parm2="xxx"}

When the attributes are ordered like this, they don't work.
{snippet [id,alias,title] = "yyyy"
          Parm1="xxxx"
          Parm2="xxx"
      }
Peter van Westen's Avatar Peter van Westen ADMIN
The syntax shoukd be one of these:
{snippet id="123" Parm1="xxxx" Parm2="xxx"}
{snippet alias="yyyy" Parm1="xxxx" Parm2="xxx"}
{snippet title="Yyyy" Parm1="xxxx" Parm2="xxx"}

The ordering of the attributes doesn’t matter.
So this also works:
{snippet Parm2="xxx" title="Yyyy" Parm1="xxxx"}
Please post a rating at the Joomla! Extensions Directory
Hans-Günter Heiserholt's Avatar Hans-Günter Heiserholt
That's all OK, that's the way it's currently solved.
My question relates to this type of arrangement of the parameters:
{snippet alias="xxxx"
Parm1="- p1 -"
Parm2="- p2 -"
} 
In this case, clarity can be significantly increased - especially with long parameters.
Peter van Westen's Avatar Peter van Westen ADMIN
No, that is not supported.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription