OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Sitemap generator issue

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

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

Forum rules
What to do if you have a technical problem with OJS:

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.

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 OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Sitemap generator issue

Postby Looted » Mon Mar 24, 2014 9:26 am

Hello,
I have a problem with the sitemap generator. For example, that
Code: Select all
XMLCustomWriter::appendChild($root, $this->_createUrlTree($doc, Request::url($journal->getPath(), 'pages','view','czasopismo','en')));

generates that:
Code: Select all
http://mysite.com/ojs/index.php/site/pages/view/czasopismo

It works for shorter links, like
Code: Select all
XMLCustomWriter::appendChild($root, $this->_createUrlTree($doc, Request::url($journal->getPath(),'index','index','pl')));

gives:
Code: Select all
http://www.diametros.iphils.uj.edu.pl/ojs/index.php/diametros/index/index/pl


What should I modify to allow it for more arguments?
Looted
 
Posts: 18
Joined: Tue Oct 29, 2013 10:06 am

Re: Sitemap generator issue

Postby Looted » Mon Mar 24, 2014 9:48 am

Solved, everyting after first two arguments must go into array.
Looted
 
Posts: 18
Joined: Tue Oct 29, 2013 10:06 am


Return to OJS Technical Support

Who is online

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