• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Next/prev -links not working if CGCalendar is in the sidebar
PostPosted: Sun Jul 22, 2012 8:03 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 63
Location: Finland
I've placed CGCalendar to the page template under the menu. If user clicks for example next month, the whole page loads and the content is replaced by the calendar. So now I have two calendars - one in the sidebar and one in the content area.

Here is an example how I would like it to work: http://tapahtumakalenteri.ouka.fi/cal/main/showMainEnd.rdo

User could navigate months and if user clicks date, then the content area is replaced by the info of that date.

Thanks in advance :)


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Sun Jul 22, 2012 8:26 am 
Offline
Forum Members
Forum Members

Joined: Thu Mar 01, 2007 9:44 am
Posts: 240
Location: Belgique
Beter you create a page 'agenda' and put this tag in your template :
{cms_module module="CGCalendar" detailpage="agenda"}
Make the appropriates changements into the module parameters.


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Sun Jul 22, 2012 7:33 pm 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 63
Location: Finland
Jean le Chauve wrote:
Beter you create a page 'agenda' and put this tag in your template :
{cms_module module="CGCalendar" detailpage="agenda"}
Make the appropriates changements into the module parameters.


Thanks Jean, but If I understood correctly, this doesn't solve my problem. Calendar works just great if it is used in a content area, but it would be more userfriendly, if user could see the calendar all the time, without navigating to specific calendar page.

Attachment:
template.gif
template.gif [ 17.57 KiB | Viewed 645 times ]


Is it somehow possible, that user could see the calendar in the sidebar and navigate months. If user clicks a date, the events of that date would be shown in the content area.

Pretty basic function, but I don't know I've missed something, but I can't make this work :)


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Mon Jul 23, 2012 5:19 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11818
Location: Arizona
Some modules have an inline='(1 or true)' parameter, look in the modules Help, the only drawback is that while it may make the calendar stay in the sidebar when clicking thru the Months but clicking on an event may show it in the sidebar also...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Wed Jul 25, 2012 10:34 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 63
Location: Finland
Dr.CSS wrote:
Some modules have an inline='(1 or true)' parameter, look in the modules Help, the only drawback is that while it may make the calendar stay in the sidebar when clicking thru the Months but clicking on an event may show it in the sidebar also...


Thanks DR!

I tried:

{cms_module module="CGCalendar" detailpage="events" inline="1"}

...but it worked the way you descipted.

Any other ideas?


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Wed Jul 25, 2012 11:51 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 1979
Location: Feldkirchen in Kärnten, Austria
If you are not using pretty url's (mod_rewrite) then you could theoretically override links within calendar template by using preg_replace or regex_replace or similar.
Basically you would need to replace values in generated links for returnid= and inline link is defined by 1 in url where it says default,1 or similar (not sure about that, no CGCalendar install at hand)

_________________
CMSMS Blog - I do this!
Forge profile
Github profile
Twitter
=============================================
Support CMSMS


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Thu Jul 26, 2012 11:50 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 63
Location: Finland
uniqu3 wrote:
If you are not using pretty url's (mod_rewrite) then you could theoretically override links within calendar template by using preg_replace or regex_replace or similar.
Basically you would need to replace values in generated links for returnid= and inline link is defined by 1 in url where it says default,1 or similar (not sure about that, no CGCalendar install at hand)


Thanks Uniqu3! Though this sounds a bit too hard for my skills ;)

Hopefully this function will be added in coming releases of CGCalendar.


Top
 Profile  
 
 Post subject: Re: Next/prev -links not working if CGCalendar is in the sid
PostPosted: Fri Aug 31, 2012 9:52 am 
Offline
Forum Members
Forum Members

Joined: Sat Oct 17, 2009 6:50 am
Posts: 63
Location: Finland
The problem isn't exactly solved but I managed to make a some kind of a workaround.

When user "hovers" the date, user can read the information of the date from the tool-tip. If editor wishes, a link to for information can be done.

The page is in finnish, but you can see the calendar on the right side of the page and try it.

http://tekija.info/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner