seo icon indicating copy to clipboard operation
seo copied to clipboard

SEO setting does not save page title tokens.

Open krisMoca opened this issue 10 months ago • 3 comments

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

  • Craft version: Pro 4.8.4
  • SEO version: 4.2.2
  • PHP version: 8.0.2
  • Database driver & version:
  • Other Plugins:

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

krisMoca avatar Mar 27 '24 22:03 krisMoca

@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.

Tam avatar Apr 04 '24 15:04 Tam

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 avatar Apr 23 '24 09:04 jankohlbach

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 == '<strong>home</strong>' ? 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}}

jankohlbach avatar Apr 23 '24 09:04 jankohlbach