Developer forum

Forum » Templates » Help with If defined

Help with If defined


Reply
can i use if defined on a paragraph setup tag in a paragraph template ?

Lets say i have in my Paragraph setup defined the first image, and i want to defferantiate on this in my paragraph template.

This is just an example of a paragraph.

<!--@If Defined(TemplateMedia1Clean)-->

<h1 style="padding-top: 10px;">
    <!--@ParagraphHeader-->
</h1>

<!--@EndIf(TemplateMedia1Clean)-->

<!--@If Not Defined(TemplateMedia1Clean)-->

<h1 style="padding-top: 5px;">
    <!--@ParagraphHeader-->
</h1>

<!--@EndIf(TemplateMedia1Clean)-->

Because i couldnt see anything like this in the documentation, about what i could or couldnt do with the if defined statement.

Replies

 
Reply
Hi Rasmus

No that is not possible.
You can only do an 'if defined' on that tags that are available in the actual template.

// Dammark

 

You must be logged in to post in the forum