Oops... fixed.

But you're right, the missing="ignore"-variant looks much cleaner.
The if_var and unless_var tags should just be used if you want to
execute several lines based on if that parameter exists or not.

Manuel

On Wed, Oct 22, 2008 at 11:49 AM, Simon Josi <[EMAIL PROTECTED]> wrote:
> Thank you!
>
> Unfortunately i've came across another error:
> The <r:if_var> tag ist not working, as for my example it only works if I
> change the line:
>
> <div<r:if_var name="class"> class="<r:var name="class" />"</r:if_var>>
>
> to
>
> <div class="<r:var name="class" missing="ignore" />">
>
> Stack trace: http://pastie.org/297893
>
> The latter variant is absolutely perfect mor me though, thank you.
>
>
> /simon
>
> On Wed, 22 Oct 2008 04:44:32 +0200
> "Manuel Meurer" <[EMAIL PROTECTED]> wrote:
>
>> Fixed, thanks for testing.
>> Please grab a fresh copy from
>> http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/
>>
>> Manuel
>>
>> On Tue, Oct 21, 2008 at 12:10 PM, Simon Josi <[EMAIL PROTECTED]> wrote:
>> > I've got a case where parameters to snippets are not availabe. It
>> > occurs when I call a snippet with parameters from another snippet:
>> >
>> > Content of page "Referenzen":
>> > <r:snippet name="list_childs_as_generic_entries" />
>> >
>> > The "Referenzen" page contains childs with "text", "image" and
>> > "body" parts defined.
>> >
>> > Content of snippet "list_childs_as_generic_entries":
>> > <ul class="b_entries">
>> >  <r:children:each>
>> >    <li>
>> >      <h1><r:link /></h1>
>> >      <r:snippet name="image_with_border" class="box img posleft">
>> >        !(photo)<r:content part="image" />(<r:title />)!
>> >      </r:snippet>
>> >      <p><r:content part="text" /></p>
>> >    </li>
>> >  </r:children:each>
>> > </ul>
>> >
>> > Content of snippet "image_with_border":
>> > <div<r:if_var name="class"> class="<r:var
>> > name="class" />"</r:if_var>> <div
>> > class="top"><div>&nbsp;</div></div> <div
>> > class="body"><r:yield /></div> <div
>> > class="bottom"><div>&nbsp;</div></div> </div>
>> >
>> > The class parameter is not set if a open the page "Referenzen".
>> >
>> > If i call the snippet "image_with_border" directly from a page and
>> > not from a snippet, it works.
>> >
>> > Any ideas on that?
>> >
>> > Thx,
>> > /smon
>> > _______________________________________________
>> > Radiant mailing list
>> > Post:   Radiant@radiantcms.org
>> > Search: http://radiantcms.org/mailing-list/search/
>> > Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>> >
>> _______________________________________________
>> Radiant mailing list
>> Post:   Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to