We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Need help adding NSM Better Meta 2.0 to my templates

Development and Programming

dstechroom's avatar
dstechroom
113 posts
15 years ago
dstechroom's avatar dstechroom

I installed NSM Better Meta 2.0 on my EE 2.0 site and I’m trying to get it to work right, but I cant figure out how to pull in the data for my site.

All my templates embed site/.global_header which includes everything for the <head> of my files. I’ve set it up this way to keep my templates uncluttered.

The embed tag is called before the {exp:channel:entries} is called, so I don’t see a way to get the {entry_id} for the current entry into the {exp:nsm_better_meta:template} tag.

Some of the pages on my site use the Pages module, some of them use the {url_title} for the entry they are outputting, and others just use the name of a template in the url, so there’s not an easy way to get the {url_title} for the current entry into the {exp:nsm_better_meta:template} tag.

Since the documentation says that either the {entry_id} or the {url_title} is required by the {exp:nsm_better_meta:template} tag, I don’t see a way that I could possibly use NSM Better Meta correctly.

Is there something I’m missing here? Is there a different way that I should have set up my templates?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.