Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar - Display only populated fields

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 494 Views
  • jparkstrio
    Avatar
    Community Member
    2 Posts

    Event Calendar - Display only populated fields Link to this post

    OK, I know this has to be simple but my mind is just not seeing the connection. I have customized the event calendar to contain the information needed for entering events in the cms:

    Location:
    Phone:
    Web Address:

    Now what the client wants on the front end is to only display information that is populated for each field ... for example
    Location:Home
    Web Address: home.com

    Rather than
    Location: Home
    Phone:
    Web Address:home.com

    I have been unable to successfully figure out how to do this.

    Thank you for your help.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Event Calendar - Display only populated fields Link to this post

    <% if FieldName %>
    Field Name: $FieldName
    <% end_if %>

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • jparkstrio
    Avatar
    Community Member
    2 Posts

    Re: Event Calendar - Display only populated fields Link to this post

    I don't know you other than by your work but Uncle Cheese you ROCK ... that was so easy ... doh! Thank you!

    494 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.