![]() |
My newest stumbling block?next & previous
Okay... so I want to put rel = next and rel=prev link tags into the head of pages that need them. "easy peasy," says I... the logic and links to those pages is already there in the pagenav template.
So, I copied out the pagenav template and, form what it contained, built this: HTML Code:
<if condition="$show['prev']"> "Done and dusted," says I, smuggly! But alas, it doesn't work. $address $address2 $prevpage $nextpage are empty! It seems as though those values aren't fetched until $pagenav is called later in the template. Is this a job for a plugin? --don |
If the variables are not available to that template, then yes, it is a job for a plugin.
|
Someone else just asked about that, at least for the showthread page. The plugin code is at the end of this thread: https://vborg.vbsupport.ru/showthread.php?t=306081
I was thinking about turning this in to a mod and releasing it, but to be honest, after reading the google page on what the prev and next tags do, it didn't sound like it would be appropriate for a thread. I could be wrong because I don't know anything about search engine stuff, but that page kept mentioning that it would use those to direct users to the first page, and that didn't sound like a good idea, especially for a long thread. I suppose it depends on the content. |
Quote:
Quote:
|
All times are GMT. The time now is 02:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|