Is't possible to change page name in url?

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.
darwin
Posts: 10
Joined: Tue Sep 18, 2012 2:05 am

Is't possible to change page name in url?

Postby darwin » Tue Oct 23, 2012 4:38 am

Hi, I need to change page name in url. Example: http://www.myconference.com.../conferen ... schedconf/accommodation
into http://www.myconference.com.../conferen ... schedconf/hotels
Is't possible?
Thanks

darwin
Posts: 10
Joined: Tue Sep 18, 2012 2:05 am

Re: Is't possible to change page name in url?

Postby darwin » Tue Oct 23, 2012 5:45 am

Ok, maybe it's fine: i changed /pages/schadconf/schadconfhandler.inc.php

Code: Select all

/**
    * Display conference accommodation page
    */
   function hotels() {
      $this->addCheck(new HandlerValidatorSchedConf($this));
      $this->validate();

      $conference =& Request::getConference();
      $schedConf =& Request::getSchedConf();

      $templateMgr =& TemplateManager::getManager();
      $templateMgr->assign('pageHierarchy', array(
         array(Request::url(null, 'index', 'index'), $conference->getConferenceTitle(), true),
         array(Request::url(null, null, 'index'), $schedConf->getSchedConfTitle(), true)));
      SchedConfHandler::setupTemplate($conference,$schedConf);

      $templateMgr->assign('accommodationDescription', $schedConf->getLocalizedSetting('accommodationDescription'));
      $templateMgr->assign('accommodationFiles', $schedConf->getLocalizedSetting('accommodationFiles'));

      $templateMgr->assign('helpTopicId', 'conference.currentConferences.accommodation');
      $templateMgr->display('schedConf/accommodation.tpl');
   }


Then in index.php:

Code: Select all

switch ($op) {
   
   case 'hotels':
   
}


Then changed link in sidebar template.


Return to “OCS Technical Support”

Who is online

Users browsing this forum: No registered users and 1 guest