cotonti.com : stoopid question https://www.cotonti.com Neueste Themenbeiträge Cotonti en Thu, 15 Oct 2026 06:08:41 -0000 Kingsley If you want/need Dutch translation of those docs.. holla..

Added 1 minute later:

* slaps himself in the face* you are dutch too, forgot that for a moment.. But the offer stands..

]]>
Mi, 31 Aug 2011 13:19:34 -0000
GHengeveld Mi, 31 Aug 2011 13:15:34 -0000 Kingsley I love them man, haven't seen them in any other system so far, and that's their loss. Guess I don't know half of what is possible with it, but it's a very useful option in Cotonti.

Is there any documentation on it? I'd love to know more about it

]]>
Mi, 31 Aug 2011 11:52:44 -0000
GHengeveld Nested logic blocks are a relatively new feature, so I'm not surprised you didn't think of it.

]]>
Mi, 31 Aug 2011 11:43:48 -0000
Kingsley Koradhil, you the man..

]]>
Di, 30 Aug 2011 14:02:14 -0000
GHengeveld <!-- IF {PAGE_AUTHOR} OR {PAGE_SOURCE} --> <!-- IF {PAGE_AUTHOR} --> <strong class="small">{PHP.L.Author}:</strong> {PAGE_AUTHOR} <hr /> <!-- ENDIF --> <!-- IF {PAGE_SOURCE} --> <strong class="small">{PAGE_SOURCE_TITLE}:</strong><br /><br /> <div style="font-size:10px;"><a href="https://www.cotonti.com/{PAGE_SOURCE}" target="_blank">{PAGE_SOURCE}</a></div> <hr /> <!-- ENDIF --> <!-- ELSE --> No information available <!-- ENDIF --> ]]> Di, 30 Aug 2011 11:17:56 -0000 Kingsley I have 2 page fields:

{PAGE_AUTHOR} and {PAGE_SOURCE} and I want a small text (None, or No information available) to appear when both fields are empty.

But when one field is filled in, that field must appear, and the text must disappear.

is that possible with the IF/ENDIF tags?

I can do it for both fields seperately, but what I can't figure out is how to do that with both fields at once..

 

Does it make any sense? look at the example below, maybe you'll see what I mean:

 

<!-- IF {PAGE_AUTHOR} -->
    <strong class="small">{PHP.L.Author}:</strong> {PAGE_AUTHOR}
    <hr />
<!-- ELSE -->    
No information available
<!-- ENDIF -->
<!-- IF {PAGE_SOURCE} -->
    <strong class="small">{PAGE_SOURCE_TITLE}:</strong><br /><br />
    <div style="font-size:10px;"><a href="https://www.cotonti.com/{PAGE_SOURCE}" target="_blank">{PAGE_SOURCE}</a></div>
    <hr />
<!-- ENDIF -->
]]>
Di, 30 Aug 2011 10:16:37 -0000