Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Category Page Meta Tags


Go to End


1663 Views

Avatar
juneallison

Community Member, 110 Posts

12 February 2015 at 7:51am

So, if a user visits a specific category on on the blog. What is the best way to customize the the Meta Title and Description for each category page? It seems like there are two main approaches:
1. Adding a custom area to the admin interface.
2. Setting up conditional statements in the template file (meta content wouldn't be editable via the admin).

Has anyone tried either of the above before?

Additionally how would I output the current page number in the meta title? For instance if a category had a lot of posts, I'd like to add "Page 2" to the title.

Thanks!

June