Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Field to override title+site_name #25

Open
christianseel opened this issue Feb 20, 2014 · 8 comments
Open

Field to override title+site_name #25

christianseel opened this issue Feb 20, 2014 · 8 comments

Comments

@christianseel
Copy link
Contributor

I'd like to have an addional text field below the keywords field that (if not empty) overrides the complete title (longtitle + delimiter + site_name) with it's value. (That would be creative freedom :P)

Uses cases are e.g.:

  • the homepage could contain just the site_name or custom sentence
  • or a landingpage could get a custom title without the site_name attached

Might be an easy job for a dev that is quicker with the extjs stuff...

@frisospeulman
Copy link
Contributor

@christianseel Great idea! We add this to the next release, if you update the German lexicon for me 😄

@frisospeulman frisospeulman added this to the release 1.0.3 milestone Feb 21, 2014
@christianseel
Copy link
Contributor Author

#26 ! Now it's your turn ;)

@frisospeulman
Copy link
Contributor

@christianseel We still have this open. Our SEO experts also like to have an opinion 😃

@christianseel
Copy link
Contributor Author

Any progress here? :p

@christianseel
Copy link
Contributor Author

A setting to remove the site_title only from the site_start resource would also be nice... The homepage mostly has a proper title where the title should not be appened.

@crimsonpixel
Copy link

Any movement on this as I've been added this to a couple of sites, and I tend to use pagetitle as the SEO title field rather than longtitle so it would be good to be able to select which fields you would like to use. Also agree with Christian re over-riding "| site_name" - not everyone uses this.

See there's a query on the forum http://forums.modx.com/thread/?thread=93109 about this too.

Think this plugin provides a great visual to "educate" clients regarding SEO.

@joeke
Copy link
Contributor

joeke commented Dec 20, 2015

Sorry for the long delay on this @christianseel .. We're picking up the pace with our extras and looking into (old) issues more actively now.
So if I understand correctly what you want is that the seopro preview title matches the title structure in your template?
So if for example your homepage has <title>[[*pagetitle]]</title> in the template, and your other templates have <title>[[*pagetitle]] | [[++site_name]]</title> you would like the seoPro preview title to use the same structure? Or an entire new field below the pagetitle/longtitle? In that case we would run into a couple of issues; where to save that field value, and would you then be like to able to use that field in your template as well?
In my opinion the best solution would be to have a system setting for your title structure, with the ability to override it in a template property, and then to have a custom placeholder which you can use in your template if you wish.. for example <title>[[+seoPro.title]]</title> which basically gets your title structure setting and parses the defined fields.
I'd love to hear your thoughts on this.

@gpsietzema gpsietzema removed this from the release 1.0.3 milestone Jan 26, 2017
@bwente
Copy link

bwente commented Apr 3, 2017

Here is what I did...

<title>[[*id:eq=`1`:then=`[[++site_name]] - [[*pagetitle:strip_tags=``]]`:else=`[[*pagetitle:strip_tags=``:cat=` - `]][[++site_name]]`]]</title>

I would imagine most people would have a unique template for their homepage and wouldn't need to mess with it.

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

No branches or pull requests

7 participants