Core Modules & Blocks  :: 
Renaming News
 Top

  • Hi there - newbie here icon_smile

    I've had a search through previous posts but can't find what I'm looking for. Probably because I literally installed PostNuke 24 hours ago so not familiar with the correct terminology.

    Basically what I'll be wanting to do is rename most of the core functions to something more in keeping with the site I'm developing starting with "News" so, for example, rather than ask a user to "Submit News" they'll be asked to "Submit Elephants" or whatever title I decide to run with. The effect would be that for every situation where the vanilla product refers to "News" it replaces it with "Elephants".

    Make sense?

    Cheers,

    MB icon_cool
  • Easy. (If I understand the question...)

    Goe to Admin -> Blocks -> Main Menu and click the 'edit' link.

    You will be presented with a table for youe Main Menu.

    The column on the left is what will show up in the menu as a link. The next column over is what is being called by the link. So, find where the second column has [Submit_News] and to the left of that change the wording to Submit Elephants, click Update at the bottom. Now your main menu has an item 'Submit Elephants' that brings you to the submit news module.

    Suggestion: look here for HammerHead's great pnGuide and spend some time reading it.

    --
    Peace
    ______________________________________
    The commonest cause of problems is solutions.
  • Hi Pheski,

    Thanks for the reply. That works on the cosmetic side of things but what I'm looking for is an ability to change all references to News within the code, or at least for the user, to Elephants so that will require working within the PHP files themselves. I thought I could do it by changing a coouple of references within the language/eng/global.php file or others within that area but I'm not sure you can.

    MB icon_cool
  • Hmm. I was afraid that was what you were hoping to do. I'm not enough of a coder or familiar enough with all the structure to be much help, but a couple general comments:

    1. I am pretty sure you cannot change names of core directories/modules without disrupting hard-coded references in the system.
    2. Changes you make in the core become a nuisance or catastropohe when it is time to upgrade. At the very least, you lose all those hacks and have to re-do them At worst, the hacks prevent the upgrade process from finding/changing things. (I have some direct experience with this. Sigh.)

    That said, I am not sure how many acutal references there are to News. And if it is limited to changing defines and renaming links, it might be tedious but should be do-able. You will have to look for links in your theme, and global.php files in lang in AddStory and Submit_News and probably others.

    Goood luck.

    --
    Peace
    ______________________________________
    The commonest cause of problems is solutions.
This list is based on the users active over the last 60 minutes.