Is it possible to display data from blocks using we:var or PHP code?
I have a repeating block to create a tabs for a sliding panel (JQueryTools) and wanted to keep the panel data inside the block, otherwise I will have to use 2 blocks, one for the tabs and one for the data.
Thanks in advance,
Michael.
Blocks and VARs
Re: Blocks and VARs
Hi Michael,
I am quite sure that there is a way to do it with we:var but i don`t know it...
But there is another way that may work for you.
In Editmode you can manage the Tab Description and the Tab content in one we:block, an on the page you split the output by using 2 we:block on for the tabs and the other one for the content.
There may be performance issues in large we:blocks or on slow server but imho it´s the easiest way .
I am quite sure that there is a way to do it with we:var but i don`t know it...
But there is another way that may work for you.
Code: Alles auswählen
<we:ifEditmode>
<we:block name="tabs">
<we:input type="text" name="tab_description" /><br />
<we:input type="text" name="tab_content" />
</we:block>
<we:else />
<!--- Output for the Tab description -->
<we:block name="tabs">
<we:input type="text" name="tab_description" /><br />
</we:block>
<hr>
<!--- Output for the Tab content -->
<we:block name="tabs">
<we:input type="text" name="tab_content" /><br />
</we:block>
</we:ifEditmode>
There may be performance issues in large we:blocks or on slow server but imho it´s the easiest way .
Gruß Liquid
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste