Announcement

Collapse
No announcement yet.

Conditionals in templates?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • chrispadfield
    replied
    unfortunatly not, the templates are not parsed.

    Leave a comment:


  • clindh
    started a topic Conditionals in templates?

    Conditionals in templates?

    Is it possible to have conditions in the templates? For example; if a reply has no title there is an ugly empty line before the text.

    So i'd like to say something like:
    @if($post[title] != ""):
    <b>$post[title]</b>
    @endif

    Is it possible? If not, how can i do it in some other way?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X