ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Renaming a channel

April 22, 2012 1:05pm

Subscribe [3]
  • #1 / Apr 22, 2012 1:05pm

    chunky

    35 posts

    I purchased a theme that includes various channels, one of which is named “Blog”.  I tried changing it to another name (Administration > Channels > Channel Preferences: Blog), but the entries and templates associated with the channel don’t render after the name change.  Other than making the channel name change, what do I need to change?

  • #2 / Apr 22, 2012 1:26pm

    Rob Allen

    3106 posts

    You need to go through the templates and change the “Channel short name” wherever it’s used. For instance it may appear inside a Channel entries tag like this (assuming the short name is called “blog”):

    {exp:channel:entries channel="blog"}
    {exp:channel:categories channel="blog"}

    Go to the template editing area and do a template search for ‘channel=“blog”’ - that will pull up all templates where it occurs, you can then edit each template in turn.

    You could also use the Tools>Data>Find and replace[in templates] facility but only use this method if you know what you’re doing!

  • #3 / Apr 23, 2012 12:26pm

    Shane Eckert

    7174 posts

    Hello chunky,

    Rob is 100% right on the money. Now that the name has been changed references to the old name need to be updated.

    Thanks for the assist Rob!

    If you need anything else, please just let me know.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases