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

Can't override default values from template when use_last_segment is used #33

Open
tyssen opened this issue Jun 9, 2017 · 0 comments
Open

Comments

@tyssen
Copy link

tyssen commented Jun 9, 2017

Working on an EE 2.11.9 site with SEO Lite 1.4.9.3 I have this in my global template embedded with Stash:

{exp:seo_lite
  use_last_segment="yes"
  title_postfix="{stash:_postfix}"
  default_title="{stash:_page_title}"
  default_keywords="{stash:_keywords}"
  default_description="{stash:_meta_desc}"
}

and this in the template that embeds it:

{stash:embed
  name="layouts:global"
  stash:_postfix="test"
  stash:_meta_desc="test"
  stash:_page_title="test"
  stash:_keywords="test"
}

With use_last_segment I get the entry title in the title tag but the default module values for description and keywords. If I take use_last_segment out, then I get test which is what I'd hope I'd get using use_last_segment if there's no values entered for that particular entry in those fields.

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

1 participant