Search
Other Snippets questions
Forum

Joomla 4 not rendering correctly

Jonathan Asbell's Avatar Jonathan Asbell
well at least you've discovered why I'm not in the medical field
Jonathan Asbell's Avatar Jonathan Asbell
It works thanks!
Jonathan Asbell's Avatar Jonathan Asbell
Hello Peter.
So you said in the beginning for this ticket "You are trying to nest snippets inside snippets inside snippets". Here is the thing....it worked FINE on my Joomla 3 website. Now that I am working with Tim Davis to migrate to Joomla 4 that functionality IS NOT working (snippets->snppets->snippets). I dont think there would be a reason wht it shouldnt work unless you have a technical reason. I really like this functionality, it's a BIG time saver, and in fact I wish there was a way to make it even easier to create these sll tree-like structures. I realize you want to keep it simple, and I dont think that what I am doing makes it complex, and I also see a real benenfit to using your technology in this way. Any chance you could make it work again?
Peter van Westen's Avatar Peter van Westen ADMIN
The issue is that the way the syntax of the new snippets work, means you CANNOT nest a Snippets tag inside another SNIPPETS tag.
BUT I added support for a NEW Dynamic Tag that you can use INSIDE the snippet AND inside the variable default values.

Please try the latest DEVELOPMENT version from:
regularlabs.com/development-releases

You should NOW be able to do something like this inside a snippet:
{%snippet alias="my-contact" phone="[[snippet:my-phone]]"
Or add [[snippet:my-phone]] as the default for the variable 'phone' in the my-contact snippet.
Please post a rating at the Joomla! Extensions Directory
Jonathan Asbell's Avatar Jonathan Asbell
awesome. In your example above is snippet:my-phone another snippet?
Peter van Westen's Avatar Peter van Westen ADMIN
Yes, so [[snippet:another-snippet]]
Please post a rating at the Joomla! Extensions Directory
Jonathan Asbell's Avatar Jonathan Asbell
can they all be [] or do we have to mix? I ask because when I strated buying your platform I could not use {% %} at Rochen hosting.
Jonathan Asbell's Avatar Jonathan Asbell
Just installed your developer version of snippets. Let me know what you want to know. I use them for consistency in marketing and messaging, and also for easily updatable content scattered across pages and directories.
Peter van Westen's Avatar Peter van Westen ADMIN
You can only change the tag characters for the main tags. Nog for the Dynamic Tags you can use inside the snippet. And no, you shouldn't use the same for both.
Please post a rating at the Joomla! Extensions Directory
Jonathan Asbell's Avatar Jonathan Asbell
so currently I have [%snippet alias="my-snippet"%] all over my websites.

Are you saying that I would have to test to make certain that {% %} works
and then test that {%snippet alias="mysnippet" myvalue=[[snippet:another-snippet]] %} works
and then use re-replacer to change existing usage so that I can use this new mechanism?
Peter van Westen's Avatar Peter van Westen ADMIN
You don't have to change the tag characters.
In your case you would be able to do:
[%snippet alias="mysnippet" myvalue="[[snippet:another-snippet]]" %]
Please post a rating at the Joomla! Extensions Directory
Jonathan Asbell's Avatar Jonathan Asbell
This is what I am trying to get to work

I use in webpage
----------------------------
[%snippets alias="modal-process-buying"%]

snippet modal-process-buying
----------------------------
[%snippet alias="modal-structure" url="[[snippet:url-process-buying]]" icon="fa-search-dollar" text="Preview Buying Process"%]

snippet url-process-buying
----------------------------
/process/process-buying

Can you help me correct?

Modal Structure
--------------------
{modal [%snippet %url% %]}<button class="uk-border-pill uk-width-auto" style="line-height:inherit;"><i class="fa %icon% fa-lg"></i>&nbsp;&nbsp;%text%</button>{/modal}
Peter van Westen's Avatar Peter van Westen ADMIN
That should pretty much work… depending on what the modal-structure snippet looks like.
Please post a rating at the Joomla! Extensions Directory
Jonathan Asbell's Avatar Jonathan Asbell
Its not working =\
Jonathan Asbell's Avatar Jonathan Asbell
in webpage for display
----------------------------
[%snippets alias="modal-process-buying"%]

snippet modal-process-buying gets the data
----------------------------
[%snippet alias="modal-structure" url="[[snippet:url-process-buying]]" icon="fa-search-dollar" text="Preview Buying Process"%]

snippet url-process-buying displays the data
----------------------------
/process/process-buying

Can you help me correct?

Modal Structure
--------------------
{modal [%snippet %url% %]}<button class="uk-border-pill uk-width-auto" style="line-height:inherit;"><i class="fa %icon% fa-lg"></i>&nbsp;&nbsp;%text%</button>{/modal}



Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Your syntax for Modals isn't correct.
Change to:
{modal url="…"}
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Als
[%snippet %url% %]
should probably be
%url%
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Where can I see the issue on the frontend?
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Also, that seems to not be on the website you gave me access to.

Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
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