Token help not obvious

jaydub - March 25, 2008 - 15:46
Project:Page Title
Version:5.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:nicholasThompson
Status:closed
Description

When editing the default page_title for the site and for node types on
(admin/content/page_title) there is no information on what token patterns
are available for use. Clicking the 'more help' button does take you to
page_title help page but this is not mentioned in the help description
at the top of the settings page.

I think it would be more helpful to include the token help on the settings
page below the node type patterns to make for easy reference.

Additionally, since the page_titles that are being generated are for nodes
you could limit the token patterns shown in token help by passing in
the type in the call to theme('token_help', 'node') for example.

I don't know if 'node' would automatically include CCK fields but certainly
using type 'all' results in token patterns for users, comments, taxonomy
and other pattern sets that will not have node context.

#1

nicholasThompson - March 25, 2008 - 15:51
Assigned to:Anonymous» nicholasThompson

I will include this in Alpha 6 - thanks.

#2

wayland76 - May 5, 2008 - 05:54

I can't find the CCK field I did anywhere (6.x alpha); should I just try "field_whatever" that it got called, or do I have to try something like "field-whatever"?

#3

nicholasThompson - May 5, 2008 - 11:08

Page Title and CCK are entirely unrelated, especially to this issue. What's wrong?

#4

wayland76 - May 5, 2008 - 11:22

From the front page:

"[Token Integration] is made even more funky when you enable the CCK module as CCK exposes field values to the Token Module."

That's what I'm trying to do :). Do I need an extra module or something?

#5

nicholasThompson - May 5, 2008 - 12:02

Ohhh I see - you wanna use a CCK field in the Page Title. Gotcha!

Ok, well the CCK field should appear as one of the options under the node section. Check the Page Title Help page (using the link on the page title settings page). It'll probably be something like [field-myfieldname].

#6

wayland76 - May 5, 2008 - 12:35

I've just discovered that I don't actually need to do this. But I'll do it for testing purposes anyway.

I can't see the CCK fields listed anywhere on that page. I'd recommend installing the "contemplate" extension to CCK, because when edit a template and look at the section called "Body variables", it shows you what the content of $node might look like.

In particular, it shows you that the fields, rather than being things like $node->nid are things like $node->field_testingthepagetitle[0]['safe'] -- does that help at all?

#7

nicholasThompson - July 16, 2008 - 15:54
Status:active» fixed

Initial help problem fixed in Alpha 6. New support problem should go in a new issue ticket...

#8

Anonymous (not verified) - July 31, 2008 - 04:46
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.