Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

Event Calendar - URL Problem


Reply


2 Posts   594 Views

Avatar
TDNP

Community Member, 19 Posts

30 August 2011 at 7:05am

Edited: 30/08/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>

Attached Files
Avatar
UncleCheese

Forum Moderator, 4096 Posts

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