Skip to content

MODX Revolution 2.1.2-pl (traditional) #5

@davidpede

Description

@davidpede

Hi,

I have upgraded to the latest version of Modx and am now having problems with the 'If' snippet.

This call is placed straight in a template and works fine:
[[!If? &subject=[[*client]] &operator=notempty &then=<p class="project-info">Client: [[*client]]</p> &else=``]]

This call is placed in a getResource template and since upgrading to 2.1.2-pl does not work:
[[!If? &subject=[[+tv.intro]] &operator=notempty &then=<p><p>[[+tv.intro:limit=250]]...</p> &else=<p>[[+content:limit=250]]...</p>]]

Do I need to change anything after the upgrade to get this working?

Many Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions