Hi,
When I declare the page title pattern of book page with Available Tokens List, - using the parent or root tokens,
the first book page ( the parent - root page ) The [node:book:parent] appears like [node:book:parent] and does not convert to the book-parent name.
the same to all the parent book variations. ([node:book:root], [node:book:parent], [node:book:parent:root], [node:book:title], [node:book:parents:first].)
How is it possible to fix that?
Thanks.

Comments

ntigh52’s picture

Title: [node:book:parent] » [node:book:parent]not convert on the first node book parent
ntigh52’s picture

Hi,
I declare
PAGE TYPE = Content Type Book page
with
PATTERN = [node:book:root] - [node:title] | [site:name]
and check the SHOW FIELD.

The problem is:
The first page ( parent book page ) not convert the [node:book:root] ( because he is the root )

I tried to declare it on the edit node ( I checked the SHOW FIELD ) and write the title I want but,
I still get the PATTERN and not the title I wrote in the specific node.
Why?
Did I missed here somthing?
Thanks.

ntigh52’s picture

I think that I kno what is the problem.
there are 2 places declare the page title:

  1. pattern
  2. page title field

The bug:
If the pattern declare it will be the page title Although you declare specific page title field.
The specific page title field will affect just if the pattern is empty.
The solution:
To turn the process:

If the specific page title field declared it will be the page title Although you declare pattern .
The pattern will affect just if the specific page title field is empty.

there is someone that know how to fix it?
Thanks.

ntigh52’s picture

In the Community Documentation here I read:

So, basically, if you use the [page-title] (or [current-page:page-title] in D7) token in the patterns/template settings, it will take it's value in the following order:

1.the value of the Page Title field.
2.the Entity Title (eg, Node Title, User Name or Term Name), if Page Title field has no value (in 1).
3.the value of the title returned by Drupal's "get title" system (ie a fallback). This is usually defined by the Menu API system.

but it's not the real order!
the "bug" order is:
1.the Entity Title (eg, Node Title, User Name or Term Name), even if Page Title field has value.
2.the value of the Page Title field.
3.the value of the title returned by Drupal's "get title" system (ie a fallback). This is usually defined by the Menu API system.
Am I right?
How can it fix?
THanks

ntigh52’s picture

Someone can help me to solve the problem?
WHet I need to do?
Thanks

Anonymous’s picture

I have the same Problem here.

Jhun Vert’s picture

Anyone solved this problem? I also encountered the same problem here. I hope someone will share. I am using

[node:title] | [node:book:parents:first]

The [node:book:parents:first] part works fine in any pages except on the root.

Jhun Vert’s picture

I found the solution for my problem. I don't know if this fits for you but it works fine for me for the problem I stated in my comment above (#7). I applied patch made by rootatwc in comment no. 2 here: http://drupal.org/node/1290080

ntigh52’s picture

thanks @Romel,
For now it works,
I wait for that monthes...
Thanks again!
1 simple sentence link and a huge help :-)

ntigh52’s picture

Issue summary: View changes

1