jooDatabase Forum
Welcome Guest   [Register]  [Login]
 Subject :Re:{joodb ifis}.. 2010-03-04 11:55:50 
i_no_k

Guest

Thanks for quick answer!

 

Construction in your example - isn't work.

 

It's piece of template for catalog view what I use now in my catalog of collectible card's. It's work until I'm insert one else {joodb ifis|...} after first loop and {joodb endif} before second loop. Or until I try to complicate generation path to image with another ...ifis.

<...>

{joodb loop}

<...>
<td width="150"><img src="/images/mtg_pics/{joodb Set_name}/{joodb ifis|Tips}tip_{joodb endif}{joodb Language}{joodb ifis|Token}_tok{joodb endif}/small/{joodb Card_number_in_set}.jpg" border="0" width="150" style="border: 0pt none; float: left; margin-left: 5px; margin-right: 5px;" /></td>
<td valign="top">
<...>
{joodb loop}

<...>

IP Logged
 Subject :Re:{joodb ifis}.. 2010-03-04 10:54:02 
Dirk.Hoeschen

Guest

sorry i was to lazy to implement real recursive routines but normally somethig like
{joodb ifis|field1}hello{joodb ifis|field2}world{{joodb endif}{joodb endif}
should work.

I will check it.



[i_no_k 2010-03-04 09:59:45]:
Small question: if  I use 2 or more {joodb ifis}...{joodb endif} constructions, nested one to another, the result is not that which is expected. Example: building path to the file from item name.


{joodb loop}{joodb ifis|Amount} //show item only if amount of em is not NULL

<.....>

//depending on props of item in table we build path to image

<.....>

{joodb endif}{joodb loop}

In the result of this cod we get page with unexpected result.

Maybe perhaps to add at next version the ability to specify in closer tag - what exactly it close?

Example: {joodb ifis|Number}......{joodb endif|Number}


IP Logged
 Subject :{joodb ifis}.. 2010-03-04 09:59:45 
i_no_k

Guest

Hello!

 

Thanks for this plugin!

Small question: if  I use 2 or more {joodb ifis}...{joodb endif} constructions, nested one to another, the result is not that which is expected. Example: building path to the file from item name.


{joodb loop}{joodb ifis|Amount} //show item only if amount of em is not NULL

<.....>

//depending on props of item in table we build path to image

<.....>

{joodb endif}{joodb loop}

In the result of this cod we get page with unexpected result.

Maybe perhaps to add at next version the ability to specify in closer tag - what exactly it close?

Example: {joodb ifis|Number}......{joodb endif|Number}

IP Logged
Page # 


Powered by ccBoard