Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
ntigh52 CreditAttribution: ntigh52 commentedComment #2
ntigh52 CreditAttribution: ntigh52 commentedHi,
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.
Comment #3
ntigh52 CreditAttribution: ntigh52 commentedI think that I kno what is the problem.
there are 2 places declare the page title:
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.
Comment #4
ntigh52 CreditAttribution: ntigh52 commentedIn the Community Documentation here I read:
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
Comment #5
ntigh52 CreditAttribution: ntigh52 commentedSomeone can help me to solve the problem?
WHet I need to do?
Thanks
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedI have the same Problem here.
Comment #7
Jhun Vert CreditAttribution: Jhun Vert commentedAnyone 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.
Comment #8
Jhun Vert CreditAttribution: Jhun Vert commentedI 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
Comment #9
ntigh52 CreditAttribution: ntigh52 commentedthanks @Romel,
For now it works,
I wait for that monthes...
Thanks again!
1 simple sentence link and a huge help :-)
Comment #9.0
ntigh52 CreditAttribution: ntigh52 commented1