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. 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="{PAGE_SOURCE}" target="_blank">{PAGE_SOURCE}</a></div> <hr /> <!-- ENDIF --> |