Download & Extend

Content Tokens should be context aware

Project:Page Title
Version:6.x-2.x-dev
Component:User interface
Category:bug report
Priority:critical
Assigned:nicholasThompson
Status:closed (fixed)

Issue Summary

I'm not sure if this is a support request or bug report, but it's hard to
tell which patterns work with which content types.
For example, on Forum comments pages, the [comment-cid] pattern
doesn't work. Nor does [nid] or [author-name]. What *does* work on
a Drupal Forum page like http://mysite.com/content/some_topic (note, I'm using PathAuto here, so
the Forums path doesn't show up).

SS

Comments

#1

Title:Which patterns work with which content types?» Content Tokens should be context aware
Component:Documentation» User interface
Category:support request» feature request
Status:active» postponed

Are you referring to a node page?

The tokens for the page - node especially - are relative to the type of page you're on. That is a good point about comment pages (page_title is not context aware of comments).

If you are on a page which is effectively node/123 (for example) then you can use global and node level tokens.

I've renamed this to be a specific feature request.

For example we can program in some specific behaviour... If the path is [...] then the context is [..]

  • node/* = Node Context
  • taxonomy/term/* = Term Context
  • user/* = User Context

Does this cover all default context's?

#2

Yes, that would be helpful. Where can [comment-cid] and [author-name] be used?

And what about titles for "paged" URLs such as:

http://mysite.com/?page=1
http://mysite.com/?page=2
http://mysite.com/?page=3
http://mysite.com/?page=4

Google webmaster tools flags these URLs as having the same title (which is true).

SS

#3

I was planning on trying to patch Token to add a "page arg handler" of some kind...

#4

Category:feature request» bug report
Priority:normal» critical
Assigned to:Anonymous» nicholasThompson
Status:postponed» active

This is something I will address in the near future - an attempt at making Page Title context aware when dealing with tokens....

#5

subscribe

#6

Partial progress has been made with this in dev recently with node, taxonomy and user pages all being targetable.

The next step is to integrate with Panels & Views.... eg #367975: Integration with Views 2 pagers?

#7

Status:active» fixed

Marking this as fixed as Page Title is now aware of its context, or at least in the main "scope" of drupal (node, term, user, blog homepage)...

The issue of integration with panels & views is something we should address in #367975: Integration with Views 2 pagers?

#8

Status:fixed» closed (fixed)

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

nobody click here