We make tools that make websites.

Forums (Archived)

The Solspace Support Forums are now CLOSED (read-only)

Check out our new support options here. Please refer to this blog post for more information.

   

How to display single event

RankRank

Total Posts: 57

Joined: Oct 6, 2011

PM

Ignore

 

I know this is a newb question but I’m working on my first EE site and I have a calendar set up on a page at http://domain.com/bring/events/calendar and have that page display a template of the week’s events.

However, when you click on an event it will go to a page like http://domain.com/calendar/events428. I am sure this seems correct but how do you set a template to display that event data? Right now, it just show a blank page because there is no template.

RankRank

Total Posts: 57

Joined: Oct 6, 2011

PM

Ignore

 

Okay, I think I need to clarify that I’m using Structure.

I’m seeing this thread http://www.solspace.com/forums/viewthread/4336/P0/ but it’s just not clear enough to me how to set up the pages and templates.

Can anybody give me a quick rundown of how to use Calendar with Structure?

Avatar
RankRankRankRankRank

Total Posts: 9901

Joined: Jan 8, 2009

PM

Ignore

 

Hi ginghamsburg,

Unfortunately I don’t have any experience with Structure, but the point is to make EE able to read your {event_id} in the URL so that a tag such as {exp:calendar:events} can read the segment and retrieve the event data. I think you’re almost there with your URL, but I think you need a slash between “events” and “428” in your “events428” segment. That way, segment_3 would be “428”, which {exp:calendar:events} can use smile

Once this is resolved, to display an event’s data on your event detail page, the {exp:calendar:events} tag should do the trick:

{exp:calendar:events event_id="{segment_3}"

Hope this helps smile

Signature

RankRank

Total Posts: 57

Joined: Oct 6, 2011

PM

Ignore

 

I’m not getting how the page/template/channels are initially setup. Is there a page for each view (i.e. event, weekly, monthly)?

Avatar
RankRankRankRankRank

Total Posts: 9901

Joined: Jan 8, 2009

PM

Ignore

 

My understanding from your situation was that you had a list of events for a week, with each event entry having a link which sends you to a “detail” page about that event only. Is that about right? smile

Could you post the template code here that generates these links in the “http://domain.com/calendar/events/428” format?

Maybe the best way to see how Calendar can be used is to install the Calendar Code Pack that comes with Calendar. This will create example template groups and templates with examples on how to display monthly/weekly/daily/etc pages, as well as detailed event pages, calendar tables, etc. You can also use these templates as a starting point for your own project. I recommend having a look at the Code Pack smile

Signature