I'm trying to figure out the right way to implement a change so that the links to child pages of a book have an 'in-work' tag similar to the 'Updated' and 'new' tags that already exist and are inserted in theme.inc. What I want to do is inject a similar tag for rendering links to a book's children, when those books are in a nodequeue queue. Deciding when something is in one of those queues is easy, of course, but figuring out architecturally where to implement the change is confusing me. I obviously don't want to patch core code unless necessary - changing theme.inc or book module code would require me to re-patch on every Drupal update. I can't see how to do this otherwise. Seems like making a node-book.tpl.php could be a part of the solultion, but links seem already rendered by that point, so without some code that might be beyond my coding experience at that point, it's not clear what to do. Any suggestions? Maybe there's a code snippet somewhere that would help (though I've looked...)?

Comments

jenndowg88’s picture

How do I put a patch on using godaddy if the ssh does not have the patch command? Thank you

snowmountain’s picture

Hmmm - I think you could ask the hosting provider to do it for you, or to allow you access to the patch command.

Another option could be to figure out the code changes by looking at he patch file, and then edit the code yourself to make the same changes. You might be able to download the affected files, edit them to incorporate the changes of the patch, and then upload the modified files.

But be careful! The patch file contains only part of the code file that is to be changed, and so you need to be sure to make the changes to the correct places in the code. Sometimes lines of code that are in different places in a file look the same. Mistakes here could cause your site to not work.

bewest49’s picture

log into your account go into hosting management of the URL, open file management, find the file you need to patch, check it and on the menu on the top you will see edit, click and the file will open in an editor.