![Wink ;)](./images/smilies/wink.gif)
Just download it again.
I just applied a patch to it some minutes ago.
It should really work now.
Just in case someone wonders why this isn't working anymore: I changed the way of smarty processing in the latest release what is not yet included in the documentation.JeremyBASS wrote:
{content type=image block='image1' dir='images/:::title:::' class='image' label='Image 1'}
wait you mean you found a way to takeNaN wrote:Just in case someone wonders why this isn't working anymore: I changed the way of smarty processing in the latest release what is not yet included in the documentation.JeremyBASS wrote:
{content type=image block='image1' dir='images/:::title:::' class='image' label='Image 1'}
The param "smartyOn" is renamed into "smarty".
And i forgot to replace the ::: with smarty delimiters '{' and '}'. So actually no smarty will be processed.
This has been fixed in SVN.
So if you want the result of a plugin, an udt or even a module to be used as value in backend you need to call your content block like this:
{content type='image' block='image1' dir='images/:::title:::' smarty=true class='image' label='Image 1'}
But as mentioned before this example will not work if the page is just created since there is no title at this time.
Code: Select all
{content type='image' block='image1' dir='images/{title}' smarty=true class='image' label='Image 1'}
Code: Select all
{content type='image' block='image1' dir='images/{title
Code: Select all
type => image
block => image1
dir => images/{title <- This would cause a smarty error when processing the value in backend because of the unclosed title tag.
Code: Select all
{content type="dropdown" items="Foo,Bar,Gloo" values="1,2" assign="var"}
Code: Select all
{content type="dropdown" items="Foo,Bar,Gloo" values="1,2,3,4" assign="var"}
Code: Select all
{content type="dropdown" items="Foo,Bar,Gloo" values="1,2,3,4" assign="var"}
{$var}
Code: Select all
1,2,3,4
Code: Select all
{assign var="$var_array" value=","|explode:$var}
{$var_array[0]}<br />
{$var_array[1]}<br />
{$var_array[2]}<br />
{$var_array[3]}
Code: Select all
1
2
3
4
Have you tried to wrap the values of the params in quotes?NikNak wrote: Hi NaN
The older version of Content2 parsed this fine, but the new one ignores it.
[...]