Node Title vs Location Title - 2 Titles, same content

mike123106 - April 5, 2009 - 10:40

Hey guys,

I have location enabled and CCK.

As it is now, users enter a Title for the node, a body text, then come down to the location part and enter the Title of the Location. Basically entering the Title 2 times.

Is there a way to make the Location Title, the Node Title by default and not make them enter it again?
Or vice versa, they can enter the Location Title but not the node title?

And have them populate each other? I have token installed, but I dont think I can specify something like [node] etc.. Like for example with the CCK LINK module, they only have to enter the URL and you can say use [node] for the title of the link.

Any help would be appreciated!

Thanks!

As location is a cck filed

jainrutgers - April 5, 2009 - 11:07

As location is a cck filed you will have option to give it default value. Now instead of direct text you might have to right php snippet in block just under Default block so that it takes the title of the current node and put it there. Just google about the title node variable or look into node.tpl.php

Chetan

It sounds like you need the

pixelite - April 5, 2009 - 16:43

It sounds like you need the auto node title module (http://drupal.org/project/auto_nodetitle). It allows you to use tokens from cck fields as well as node info (like the date posted) to fill in the node title automatically. I think you can either let the user to override the auto-generated title, or hide the title field entirely.

Hide secondary Location field

TrickerTreater - June 19, 2009 - 17:13

I'm in the same boat. I have tried the auto hide route, but it didn't work.

Basically, I'm trying to hide the subtitle "Location." Not the main node title but the secondary CCK field title. I'm trying to use Panels to put it all together, but panels displays "Node Title, Node Title, info" example :"Location, Location, Office at 123 Main."

Can this be done?

 
 

Drupal is a registered trademark of Dries Buytaert.