Best way to edit core files

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, 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.
ojsearch
Posts: 23
Joined: Thu Jun 19, 2014 11:46 pm

Best way to edit core files

Postby ojsearch » Tue Aug 05, 2014 10:57 pm

Hello,

I want to change footer position, remove some menus from top navigation bar and make some other small changes.
Everywhere I looked I couldn't find any information how to properly edit .tpl files, do I really need to "hack" these files?

For example in other CMS like joomla you need to create html folder in which you put all view files you edited.
If I really have to edit core items what happens with these .tpl files after an update but if there is some other way let me know.

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: Best way to edit core files

Postby asmecher » Wed Aug 06, 2014 8:56 am

Hi ojsearch,

The problem with putting modified copies of core files in a separate location is that our recommended methods of managing customizations (git and diff/patch) won't know to look for the modified copies in a different location during upgrade. You'd have to merge the changes in yourself.

Regards,
Alec Smecher
Public Knowledge Project Team

ojsearch
Posts: 23
Joined: Thu Jun 19, 2014 11:46 pm

Re: Best way to edit core files

Postby ojsearch » Tue Aug 12, 2014 1:19 am

So if I understood correctly, you recommend editing core .tpl files directly,
but what happens after an update?
How to prevent modification back to the original?

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: Best way to edit core files

Postby asmecher » Tue Aug 12, 2014 8:17 am

Hi ojsearch,

See e.g. this user guide section.

Regards,
Alec Smecher
Public Knowledge Project Team


Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest