Page 1 of 1
Calender detail view in the body
Posted: Fri Mar 09, 2007 2:08 pm
by ealodder
Hi!
I've installed the Calender module and i placed the little calender (month view) in the menubar on the rightsite of my site.
So this overview calender is seen at every page.
But when you click on a item to be viewed the item is showed at the same place as the little calender. I want it have it's own page in the body. (like the news module) And that the little (overview) calender below the menubar doesn't change.
(littelcalender on the right)

(
kalender item to be viewed)
The link to my site is
http://www.svenlodder.nl/index.php
Please can some-one help me!
Thanxx
Re: Calender detail view in the body
Posted: Fri Mar 09, 2007 2:30 pm
by calguy1000
add the inline='0' parameter to your calendar tag.
Re: Calender detail view in the body
Posted: Fri Mar 09, 2007 2:48 pm
by ealodder
Thanx for your quick reply!
But that is not what I ment. Maybe I wasn't clear enough of what I want.
I've got the little calender (the first picture) on the rightsite of all pages. When i click on a item link (29 maart Sven 1). The details are shown at the place where the little calender was. (on the right) But I want them to appear in the body. (Like when you click on a news item) and i want the little calender on the right not to be changed.
I think i have to change something in the code of the "Calender Template"
p.s. i use CMS Made Simple 1.0.4 "Lanai" and i'm talking about the module Calender 0.7.7
Re: Calender detail view in the body
Posted: Fri Mar 09, 2007 2:52 pm
by RonnyK
I would try the
detailpage="pagealias" Page to display Calendar event details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary. Default is current page. (optional)
as seen in the help of the module. As the inline parameter makes the details go in the content-page, the current title remians there. With the detailpage-parameter, you can direct the calendar to open on a given page that you have created. I use detailpage, where I create a name, but on the options-tab I uncheck "show in menu". This way you don't see the content-page in the menu, but you can have a content-title by choice instead of the title of the page that was open at the moment the calendar detail was pushed.
Ronny
Re: Calender detail view in the body
Posted: Fri Mar 09, 2007 4:28 pm
by ealodder
Thanx to you Both.
I solved the problem with the parameter
inline='0'
So it seems I didn't understand your reply Calguy

. I was working in the Calender Template... But i had to work in the Default (main) template of my site. And change the parameter there.
Unfortunaly the
detailpage='Kalender'
parameter doesn't work it reply's
Call to a member function on a non-object
?? So the titel of the page is wrong.
My code now is
Code: Select all
<!--start calender-->
<div id="news">
<h2>Agenda</h2>
{cms_module module="Calendar" inline='0'}
</div>
<!--end calender-->
in the main template of my site.
Thanx EAL
Re: Calender detail view in the body
Posted: Fri Mar 09, 2007 5:21 pm
by RonnyK
EAL,
when you use a detailpage, you must have created it as a content-page. So in your example you should create a page called "Kalender". You can insert a to have any content (you can't create empty pages). If you uncheck "show in menu", it won't be visible in the menu, but it must be active, otherwise you can't use the page. If you have done this, you can call the page or any other existing page as a detail-page.
Ronny
Re: Calender detail view in the body
Posted: Sat Mar 10, 2007 9:15 am
by ealodder
Solved completely!!
I i thought i went insane.. Till I read this Thread
http://forum.cmsmadesimple.org/index.php/topic,9068.0.html it seems the detailpage parameter was broken in the calender version i used (0.7.7) I updated my calender to version 0.7.8 And both the parameter worked.
Thanx and
Greetz Edwin