Jump to:

11003 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » Event Calendar - URL Problem

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 539 Views
  • TDNP
    Community Member
    19 Posts

    Event Calendar - URL Problem Link to this post

    I have only been working with SS for a little while but up until now, I've been able to solve my issues by reading and experimenting. I have a problem with events in my upcoming events. Nothing about adding and showing them. The problem I am having is that any links I add, show up in brackets on the upcoming events pages. The links appear normally in the EventPage but the Calendar pages displays the URL / ID=*** before the text of the link. I've attached a picture to help with my description.

    In my example, the [http://ofcw.org/golfclassic/] is what is in double quotes of the <a href>

    Attached Files
  • UncleCheese
    4085 Posts

    Re: Event Calendar - URL Problem Link to this post

    Yeah, all those truncation functions like FirstParagraph(), FirstSentence(), etc., aren't HTML safe -- with good reason. You never know if you're breaking an open tag. So your choices are:

    - Leave the HTML out of the teaser section of the body
    - Show the entire body on the list page
    - Create a new HTML field on your Event object for "Teaser" and display that on the calendar template so you have full control over the truncation.

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

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.