I’m trying to display the Long Title if defined else the Page Title
Struggling with the syntax so any help on the following appreciated
<h1 class="h1-top">[[If? &[[*longtitle]]> `` &then=`[[*longtitle]]` &else=`[[*pagetitle]]` ]]</h1>
or
<h1 class="h1-top">[[If? &[[*longtitle]]:notempty &then=`[[*longtitle]]` &else=`[[*pagetitle]]` ]]</h1>
So what is the difference in the functionality between
if form the Package IF and
if from the PHx functionality now embedded in Revo?
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner
a ok... yes, I saw the examples and they are practically the same,
hence my question...
I am used to PHx and if they offer the same functionality I wont
need the IF package...
Website: www.mercologia.com
MODX Revo Tutorials: www.modxperience.com
MODX Professional Partner