PKP Bugzilla – Bug 5430
Additional Content information not being listed consistently
Last modified: 2012-09-24 09:47:45 PDT
Information added to Website Management Setup Step 2.2: Additional Content should be displayed on the conference-level home page, but it's only displayed on the scheduled conference-level. Any content added there won't display, eg. on http://git/ocs/index.php/tc1/jtest ... but will display on http://git/ocs/index.php/tc1/jtest/schedConf/ The Homepage Image is displayed consistently on both pages, incidentally.
I was hoping that this would be fixed in 2.3.3.
It doesn't make sense that additionalHomeContent displays only if the url contains schedConf. http://imrf.mcmaster.ca/IMRF/ocs3/index.php/imrf/2011/schedConf/ and http://imrf.mcmaster.ca/IMRF/ocs3/index.php/imrf/2011/ should be identical. 2011 is the schedConf path, so, with or without the schedConf in the URL, they should both display the homepage for the scheduled conference. imrf is the conference path, so take away the 2011 and you should get the conference homepage. I also had a problem with the schedConf vs. no schedConf in the url last year. I think it was messing up the display of sponsors that I had added to the index page. I compared the smarty debug console output and the only differences are: 1. {$additionalHomeContent} is missing from the non-schedConf page 2. schedConf page uses homeHeaderLogoImage_en_US.gif and homeHeaderTitleImage_en_US.gif non-schedConf page uses pageHeaderLogoImage_en_US.gif and pageHeaderTitleImage_en_US.gif but they should both be using homeHeaderLogoImage_en_US.gif and homeHeaderTitleImage_en_US.gif (I think).
Until you guys make a patch, I tacked '/schedConf' onto the end of the conference and scheduled conference level redirects. In pages/conference/ConferenceHandler.inc.php: replace line 61 Request::redirect(null, $singleSchedConf->getPath()); with Request::redirect(null, $singleSchedConf->getPath(), 'schedConf'); In pages/index/IndexHandler.inc.php: replace line 51 if ($redirectSchedConf) Request::redirect($conference->getPath(), $redirectSchedConf->getPath()'); with if ($redirectSchedConf) Request::redirect($conference->getPath(), $redirectSchedConf->getPath(), 'schedConf');
Ok, I give up. I have undone the changes I suggested below, because I was going to have to do more - in multiple places. Instead, I just forced the "schedConf" to appear in the URL using .htaccess. This way I get my additionalHomeContent every time the scheduled conference homepage loads, regardless of which link was used to get there. I would still like to know why the two URLs give slightly different pages and if it is considered to be a bug. Thank you.
Yes, this is still considered a bug.
You can add $templateMgr->assign('additionalHomeContent', $conference->getLocalizedSetting('additionalHomeContent')); at around line 63 of pages/schedConf/SchedConfHandler.inc.php