You are viewing the PKP Support Forum | PKP Home Wiki

Visualization startDate - endDate

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Visualization startDate - endDate

Postby anna_marini » Fri Sep 19, 2008 4:24 am

Hi all,
I noticed that if the startDate doesn't differ from the endDate, in the conference home page (and others pages) OCS displays the date repeated.. not so cute!
It' correct to modify the templates involved whit a smarty {if} for the variables startDate and endDate?
Posts: 42
Joined: Mon Mar 19, 2007 3:06 am

Re: Visualization startDate - endDate

Postby mcrider » Fri Sep 19, 2008 10:48 am

Hi Anna,

Yes, you can modify the templates and include an if statement to determine whether the start date and end date is equal. However, there are several places in OCS that show the dates for an event in such a fashion, so it might take a bit of time to hunt them all down (You can probably just do a file search on 'startDate'). On the home page, however, you can change the behavior by modifying templates/schedConf/index.tpl (at line 21). Let us know if you need any further help.

Posts: 952
Joined: Mon May 05, 2008 10:29 am
Location: Vancouver, BC

Re: Visualization startDate - endDate

Postby anna_marini » Mon Sep 22, 2008 4:49 am

Hi Matt,
if someone else needs, these are the templates to modify:
- /template/schedConf/index.tpl (line 21)
- /template/conference/index.tpl (line 47)
- /template/conference/current.tpl (line 26)
- /template/conference/archive.tpl (line 25 )
- /templates/search/schedConfIndex.tpl (line 29)

Posts: 42
Joined: Mon Mar 19, 2007 3:06 am

Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest