Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Title and Description for listing page #6

Open
dadaxr opened this issue Aug 28, 2015 · 7 comments
Open

Set Title and Description for listing page #6

dadaxr opened this issue Aug 28, 2015 · 7 comments

Comments

@dadaxr
Copy link

dadaxr commented Aug 28, 2015

I have a url which looks like : http://mysite.com/blog
which is an alias of http://mysite.com/entries ( the content type listing )
and I should be able to set a custom title and description metas for that explicit page.

Maybe add an override array based on the "page" slug in the extension config file ? Or a check on a global twig variable which could be overrided in a template ?

@bobdenotter
Copy link
Owner

Hi,

I'm assuming you're using listing pages as `/category/movies', right? In this case it is't tied to a specifiv record, and the extension won't know how to create a title and excerpt for it..

How about we add these to the config for the extension:

contenttypes: 
    pages: 
        title: "Title for pages" 
        Description: "Meta description for pages. Meta description for pages. Meta description for pages." 
    entries: 
        title: "Title for entries" 
        Description: "Meta description for entries. Meta description for pages. Meta description for entries." 

Would that work?

@dadaxr
Copy link
Author

dadaxr commented Oct 27, 2015

It should be better indeed.

As for today, i set a twig block with {{ seo.title() }} in the meta, and in an child twig template (used for /category/movies for example ) I override that block content with my own value... does the job but not very clean.

@nbehier
Copy link
Contributor

nbehier commented Jul 12, 2016

I did the same as @dadaxr but if anyone have a better way, I'll take it !

@dadaxr
Copy link
Author

dadaxr commented Jul 12, 2016

any news on your elegant proposition @bobdenotter ?

@jasperjorna
Copy link
Contributor

Hey @bobdenotter, any news on this?

@otrelin
Copy link

otrelin commented May 11, 2018

@bobdenotter
Are you planning to finish writing this extension for meta title and meta description for the listing pages?
It would be nice also meta title and meta description for the taxonomy filtering pages by their values, like this: /taxonomy/optionvalue

@GwendolenLynch
Copy link
Contributor

Help is also welcome 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants