ethercreative / seo

SEO utilities including a unique field type, sitemap & redirect manager
MIT License
269 stars 96 forks source link

SEO setting does not save page title tokens. #472

Open krisMoca opened 6 months ago

krisMoca commented 6 months ago

Description

There is only 1 token added and yet 2 tokens were rendered - title and site name.

Further testing added 4 tokens and yet 2 tokens were rendered.

Steps to reproduce

  1. Go to SEO settings
  2. Under page meta >page title update (add or remove) the tokens.
  3. Check the SEO rendered.

Additional info

Screenshot 2024-03-28 105235 Screenshot2 2024-03-28 105329 Screenshot3 2024-03-28 105427

Tam commented 6 months ago

@krisMoca The field settings in your screenshot are used as the defaults for any SEO fields you create. It's likely that you'll want to edit the SEO field itself rather than the default settings.

jankohlbach commented 5 months ago

for me, it only renders the site title, always even though it is showing it correct in the preview in the backend running on craft 5 with the rc

jankohlbach commented 5 months ago

ah, I changed the handle of the seo field, because I want two different title formats is there a way to do this?

{{entry.uri == '__home__' ? currentSite.name : (customTitle is defined ? customTitle : entry.title) ~ ' | IWML'}}

is what I tried, but that wasn't working basically, on home I want {{sitename}} and on the other ones {{pagetitle | statictext}}