Hi,

Once again, brilliant module.

I am not using it also as a micro-blog, but I would like to have the ability to rename the tribune page to something else. Like "micro blog". (yes, I ooze originality...)

We can rename the block, but not the actual tribune page atm.

Comments

SeeSchloss’s picture

Well, I think you can already do all you want from Drupal, you can change the page title in the menu settings (admin/build/menu-customize/navigation) and the page url (if you don't want /tribune) in the URL aliases settings (admin/build/path).

The /tribune url will always work though, but I'm not sure if it is actually possible for a module in Drupal 6 to change its own paths like this

naheemsays’s picture

Yes, you can give it s new url, the link a new location, but when visiting the page, the title at the top is from what I can see a constant: "Tribune".

SeeSchloss’s picture

Well, I changed the title in admin/build/menu-customize/navigation and the page title did change here, in the tag as well as at the top of the page.

naheemsays’s picture

I just tried that on two sites running tribune 1.5 and no, that does not change the title, just the menu name... am I doing something wrong?

SeeSchloss’s picture

I don't really know, that is the right way of changing a page title... but other people have had your problem with other modules, it seems (http://drupal.org/node/39644 for example). Do you have any module installed which does things with titles ?

naheemsays’s picture

Nope.

I will have a look at the code to see if I can find a problem there (saying that, I have had intermittent problems with CSS as you know, and the code there looks fine..)

I have the same problem of not being able to rename the tribune page on three separate installs of Drupal, all with differing modules.

EDIT -Just had a look at unction tribune_page() and theme_tribune_page. The menu item sets the page name to "Tribune" and there is no call to a drupal_set_title() which would change the page name from what the original is. Am I missing something?

SeeSchloss’s picture

Yes, the menu item sets the default page name to "Tribune", and that is what the admin/build/menu-customize/navigation settings override. I just changed the title of the default page to "Tribune (hello, nbz)" there (you can see it, http://tout.essaye.sauf.ca/tribune), and it does work there, like in every other place I've tried. It wouldn't work if there were a call to drupal_set_title(), because these are not overriden.
I'm really not okay with doing a drupal_set_title() myself in the module's code and adding another configuration option, when all this is already handled by Drupal's core.

naheemsays’s picture

Status: Active » Closed (fixed)

ok, got more info.

If I keep the menu item in the Navigation menu, the page name also changes. But if I move the tribune menu item into primary links, the tribune page name no longer changes.

Looks like a bug either in core, or in my theme, so I will mark this as closed.

SeeSchloss’s picture

Have you tried to create a new item (linking to your tribune) in the primary links, keeping the navigation menu item, and renaming it to whatever you want but disabling it?

naheemsays’s picture

Yes, tried that now and it works.

The problem was just that I had moved the menu link to a new location and I had expected that to make no difference.

Thanks for being patient with me.

SeeSchloss’s picture

I don't think it should make a difference, maybe I'll look if it's already been submitted as a core bug... if not, I think this bug should be moved to the Drupal project.

modctek’s picture

I don't think this works in the latest version of Drupal, does it?