Re: Duplicate title tags and meta descriptions
Posted by
Peter <Nabble> on
Nov 05, 2011; 1:37am
URL: https://support.nabble.com/Duplicate-title-tags-and-meta-descriptions-tp6759630p6964751.html
There's nothing to be sorry about. It is something new and there is nothing very much like NAML around so it is ok to not follow it at first. Even then I must say you are going very well with it.
A topic is a thread. It is a post with replies. When you see the list of conversations on a subforum and you want to start something on a new subject, you click "new topic" at the upper right corner, right?
Then everything that follows that first post (including itself) is a topic and the topic may display several pages.
If you got it right you will realize your problem is with the topics title because every page displays the same title. So what you want would be something like:
Forum | <topic subject>: Page <page number> | Site
but you only want the ":Page <page number>" to be shown when it is not the first page. Hence the condition to not show that when the page number is "1" (so we know it is the first page).
It would seem like:
Forum | <topic subject> <if page isn't 1> :Page <page number> | Site
Now look at the code I posted and see if it makes sense.
It is important that you understand it (not only you but everyone else) so you can feel free to change whatever you want and once you feel comfortable and understand how it works you will even have new ideas that you wouldn't since now you have a more powerful tool at hand and you may end up doing things that will in fact give you an edge towards your goals.
Nabble staff. We never ask for passwords.