OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



add new page

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

add new page

Postby cristianviza » Fri Oct 04, 2013 11:28 am

Hello everybody. I need add new page in ojs, I try but I can't show new page :( .
I created two folder:
/page/licencia
files in this folder
* index.php
* IndexLicenciaHandler.inc.php

/tamplates/licencia
files:
*licencia.tpl

for use I write this link : <a href="{url page="licencia" op="licencia"}">Licencia</a>
but however I pick in this link, show these errors, why show these errors?:

404 Not Found

Stack Trace:

File: /var/www/ojs/lib/pkp/classes/core/PKPPageRouter.inc.php line 249
Function: Dispatcher->handle404()
File: /var/www/ojs/lib/pkp/classes/core/Dispatcher.inc.php line 129
Function: PKPPageRouter->route(Object(Request))
File: /var/www/ojs/lib/pkp/classes/core/PKPApplication.inc.php line 183
Function: Dispatcher->dispatch(Object(Request))
File: /var/www/ojs/index.php line 69
Function: PKPApplication->execute()
cristianviza
 
Posts: 75
Joined: Tue Nov 06, 2012 10:22 am
Location: Argentina

Re: add new page

Postby asmecher » Fri Oct 04, 2013 11:31 am

Hi Cristian,

I see at least two potential typos:

- page/licencia should be pages/licencia
- tamplates/licencia should be templates/licencia

Beyond that, it's hard to know without seeing the code (particularly the files in pages/licencia).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: add new page

Postby cristianviza » Fri Oct 04, 2013 12:44 pm

hello asmecher. my apologies, I'm wrote bad.
path:
ojs/pages/licencia/IndexLicenciaHandler.inc.php : https://docs.google.com/file/d/0B_86aqj65IYPYklZWWJkSWRVSTA/edit?usp=sharing
ojs/pages/licencia/index.php : https://docs.google.com/file/d/0B_86aqj65IYPU01uNEYyWGZtWmM/edit?usp=sharing
ojs/templates/licencia/licencia.tpl: licencia.tpl not uploaded it because it is not important.

link: link : <a href="{url page="licencia" op="licencia"}">Licencia</a> --> error

Regards Cristian.
cristianviza
 
Posts: 75
Joined: Tue Nov 06, 2012 10:22 am
Location: Argentina

Re: add new page

Postby asmecher » Fri Oct 04, 2013 1:01 pm

Hi Cristian,

The value of "op" in the {url ...} call (currently "licencia"), the function name in IndexLicenciaHandler (currently "index"), and the value in the "case" statement in index.php (currently "licencia") all need to match.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests