Look great Travis
Zi,
I think the access permission here is the ability or some users to run the snippet inside the Manager. (I think)
Travis,
Currently snippets (front-end) can use the "echo" keyword to display text inside the browser using ob_start functions.But this has proven to be a much slower method so I think it should be removed from front-end executions. Such feature can however remain for the Manager
Very cool! I think this will be much more handy and helps to simplify things for developers, editors and designers.
I was wondering, are the properties gong to apply to Plain HTML snippets at all? I was thinking we could assign the properties as placeholders and be able to include them in the HTML, what do you think?
-
MODX Staff
- 12,272 Posts
Ummm... can you type that again real slow, maybe with an example? :blink:
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Quote from: aNoble at Aug 17, 2005, 09:29 AM
I was wondering, are the properties gong to apply to Plain HTML snippets at all? I was thinking we could assign the properties as placeholders and be able to include them in the HTML, what do you think?
Excellent idea Adam,
Also consider this:
[[HelloWorld? &color=`#ffcc00` &width=`200px`]]
where will pass the parameter &color into the HTML snippet as a placeholder:
<div style="color:[+color+];width:[+width+]">Hello World</div>
-
MODX Staff
- 12,272 Posts
LOL
Raymond, that is too cool and too helpful!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me