Peter van Westen
ADMIN
Indeed, it looks like you still don't understand it. I'll try to explain it again.
There are 3 different types of tags that are at play here:
- The main {snippet} tags (in your case [%snippet%] tags, as you are not using the default tag characters)
- The %variable% tags
- The [[snippet:...]] Dynamic tags
The main {snippet} tags
This will output the content of the given snippet. You can also pass on the values of variables used inside the snippet.
The %variable% tags
If you want to use %variable% tags inside a snippet contents, you have to create these under the Variables tab.
If you pass the value of a variable via the main {snippet} tag (as mentioned above), the snippet will use that value. Otherwise, it will use the default defined under the Variables tab.
The [[snippet:...]] Dynamic tags
These do pretty much the same thing as the main {snippet} tags.
Except, you can ONLY use these inside the contents of a snippet and/or in the default values of the variables.
The advantage of these is also that you can place these inside a normal {snippet} tag inside the snippet content (when nesting snippets).
Having said all that, let's look at your snippet "modal-process-buying":
[%snippet alias="modal-structure" url="[[snippet:url-process-buying]]" icon="fa-search-dollar" text="Preview Buying Process"%]
Here you are using the output of snippet "url-process-buying" to pass along to the snippet "modal-structure" as the variable "url".
In this "modal-process-buying" snippet you are NOT using any %variable% tags in the content.
So the Variables tab should be empty.
You should NOT create a variable for 'url-process-buying' in this snippet.
So:
1) Calling [%snippet alias="modal-process-buying"%] (not passing along any variables).
2) Snippet "modal-process-buying" calls [%snippet alias="modal-structure" ...%], it passes along values for variables "url", "icon" and "text". It uses the output of snippet "url-process-buying" for variable "url". (It does not use any variables itself.)
3) Snippet "modal-structure" uses 3 variables internally: "url", "icon" and "text". So these are defined under the Variables tab, and used in the contents of the snippet via %url%, %icon% and %text%.
Please post a rating at the
Joomla! Extensions Directory