OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

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


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron