DavidCramer / pods-frontier

Creates advanced view templates for displaying Pod data on the front end via a Shortcode.
42 stars 6 forks source link

[IF] issue #25

Closed Shelob9 closed 10 years ago

Shelob9 commented 10 years ago

In this case the field 'wys' is a WYSIWYG field. This is my template:

{@wys}
[if wys]
Label: {@wys}
[/if]

If there is no value for 'wys' I get no output, which is expected. If I add "foo" to wys field, I get:

foo
Label: {@wys}

The tag is not converted inside of the if block.

Ability to show a label for a field, only if field has a value is a very common request.

DavidCramer commented 10 years ago

The commands are actually a part of the template component as per #14 I'll replicate this to the Pods issues and then fix.

DavidCramer commented 10 years ago

Is this still an issue?

Shelob9 commented 10 years ago

Sorry, this is fixed. I am closing now.