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 all, I have a bug upgrading from 6.x-2.3 to 6.x-2.4 on Drupal 622.
I update the module in the correct way. I flush all cache.
Now [cat-description] | [site-name] in /admin/settings/page-title don't work (see the attachment).
I don't understand. Any ideas? Many thanks.
b
(Any way the field Page title of the single Taxonomy in -- Administer › Content management › Taxonomy › Edit term -- don't work. For this reason i use cat-description) (see the attachment)
Comment | File | Size | Author |
---|---|---|---|
#6 | only global taxonomy field don't work | 62.29 KB | bardill |
Page title of the Taxonomy don't work | 40.04 KB | bardill | |
[cat-description] | [site-name] don't work | 16.12 KB | bardill |
Comments
Comment #1
nicholasThompsonCan you clarify "Don't work" please?
Your two screenshots shot different things. The first is a PATTERN (or a Page Title template for terms in that vocabulary). The other is a PAGE TITLE which overrides the TERM NAME.
For example, you might have a Term called "FAQ"... but you might want the Term Name to be Frequently Asked Questions when [cat-name] is used in the pattern for the vocab on on the taxonomy/term/123 URL.
I have tested my local dev and it seems ok.
Comment #2
bardill CreditAttribution: bardill commentedHi Nicholas, many thanks.
In 6.x-2.3 i have set only [cat-description] | [site-name] - the pattern. And it was ok.
Now (6.x-2.4) the taxonomy description don't overrides the TERM NAME!
(to solve i try to delete [cat-description] | [site-name] in /admin/settings/page-title and i try to set PAGE TITLE which overrides the TERM NAME. But also here i still see only the term name).
Comment #3
nicholasThompsonAre these taxonomy pages controlled by Views?
Comment #4
bardill CreditAttribution: bardill commentedYes, they are controlled by Views.
But with 6.x-2.3 there is not problem.
Many thanks.
b
Comment #5
nicholasThompson2.3 didn't support Views. 2.4 Does and Views runs after Taxonomy.
This means taxonomy/term/123 is provided by views and Views will try to take over the Page Title pattern.
Are you using a normal "Page" display for the View?
"Now (6.x-2.4) the taxonomy description don't overrides the TERM NAME!"
Why would Term Description EVER override the Term Name?!
Comment #6
bardill CreditAttribution: bardill commentedSorry Nicholas!
i have 4 taxonomy term in my vocabulary and a views that print contents splitting in taxonomy.
The path of page views is taxonomy/term/%.
In attachment my setting that works with 2.3.
With 2.4 all works except ---global taxonomy--- last field (see the attachment)
I only updated your module - no others.
I really no understand the problem.
Comment #7
nicholasThompsonand by "doesn't work", do you mean one of the tokens isn't being replaced? Or are they being replaced with incorrect data?
What are you expecting the Page Title to be, and what are you getting instead?
Comment #8
bardill CreditAttribution: bardill commentedThe token [cat-description] don't replace the name of the taxonomy (that is the default title of the page).
The result is: real default name of the taxonomy | [site-name]
With 2.3 your module write --- taxonomy description | [site-name] --- and it was ok.
With the 2.4 [cat-description] is as if there were not!
(The token [site-name] work well also in 2.4)
I reply - I really no understand the problem.
Many thanks.
b
Comment #9
bardill CreditAttribution: bardill commentedHi Nicholas! Also with 2.5 I have the same problem.
(The 2.3 it's ok).
b
Comment #10
nicholasThompsonThe problem is, I believe, that your
taxonomy/term/%
page is controlled by Views. Because of this, the Taxonomy module no longer recognises/registers this as a Taxonomy page... see:http://drupalcode.org/project/page_title.git/blob/a9a5d31d9357fa13603b3c...
In that snippet, the first clause will match (the menu item path will, in all likeliness be that - but I'd need to check), however the later may not match as the menu item argument zero is probably a view display name.
This is my guess at the moment; I will need to investigate.
I would imagine that if you disable the
taxonomy_term
View then the PageTitle will work (I understand this isn't a "fix" though!).If you are using Views, you can replace the Page Display in the View with a "Page with Page Title" display which exposes some data to views. You can use Global tokens (such as [site-name]), however contextual tokens do not work yet (it involved building a whitelist, matching argument handlers to contexts). In the argument you should see a Page Title field if you override it on the Page With Page Title display, in the argument you can use "%1" as a placeholder which will replace with the Term Name.
Comment #11
bardill CreditAttribution: bardill commentedHi Nicholas, many thanks.
For now i use 2.3 (that works). I wait very interested the 2.6!
Comment #12
u210ks CreditAttribution: u210ks commentedsubscribing
Comment #13
quip CreditAttribution: quip commentedsubscribing
Comment #14
Lostmonkey CreditAttribution: Lostmonkey commentedsubscribing
Comment #15
Kohnock CreditAttribution: Kohnock commentedsubscribing
Comment #16
sovarn CreditAttribution: sovarn commentedsubscribe
Comment #17
daggerhart CreditAttribution: daggerhart commentedQuick fix for taxonomy pages with views override:
Add this function to your theme's template.php file
edit: slight modification to code
Comment #18
planctus CreditAttribution: planctus commentedI have this problem too...
I've read all the posts here but i really don't understand what's the point.
In my situation i've the taxonomy term view with a normal page display and i guess it has always been the same since i started using this module.
The page title falls back to the default one and this might mean that the page is not recognized as a term page by the module? But why should this happen now, with this particular module version?
Anyway, i tried to fix this using the snippet above but then i realized that there were no data in the db in the page title table so page_title_load_title(arg(2), 'term') won't return anything...
I've also tried to use the page title display but it didn't change anything...
I'm pretty blocked about this.
Thanks,
Da.
Comment #19
tiflopin CreditAttribution: tiflopin commentedI have the same problem too too :-)
When I change the Vocabulary pattern in the page-title setting page, it has no effect on the title,
it keep the default pattern.
Florent (French so sorry for my English !)
Comment #20
fatfish CreditAttribution: fatfish commentedNeed to patch taxonomy.page-title.inc
Comment #21
nicholasThompsonFatfish - unfortunately, this wont work. That fixes it for use with Views as Views will see it as page argument 2 - but Core taxonomy see's the Term ID are arg(0)...
I'm looking into this... Annoyingly, core defines taxonomy/term/% rather than using a menu loader (which D7 does). This means we can't use menu_get_object().
Comment #22
nicholasThompsonI've pushed a fix for this into DEV. Switched from using
page_arguments
tomap
on the$menu_item
. Should improve matters..Comment #23
Bartezz CreditAttribution: Bartezz commentedUpdating to .dev solved this issue for me! Thanx!
Cheers
Comment #24
Lostmonkey CreditAttribution: Lostmonkey commentedI seem to be having the same issue using 7.x-2.5, is this also fixed in the next version?
Comment #26
bardill CreditAttribution: bardill commentedSorry, this problem is solve.
Many thanks.
b