10848 Posts in 2516 Topics by 1792 members
|Go to End|
30 August 2011 at 7:05am Last edited: 30 August 2011 7:08am
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>
31 August 2011 at 5:48am
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
|Go to Top|