Having an embedded template that contains your webpage doctype, opening html tag, head content, and maybe the header of your site is very common and useful. It's nice to be able to change that stuff in one place and have it change everywhere on the website. Unfortunately it can be very frustrating to pass page titles and meta descriptions to this embedded template on even moderately complex sites. Having to wrap your embed tag with a weblog/channel entries tag so you can pass parameters to the template is awkward at best, and it just gets worse from there.
The string plugin greatly simplifies this task... just build the string wherever it's most natural in the main template (where you'll have your entries tag open anyway) and call on that value from the embedded template.
The string plugin was designed to take advantage of ExpressionEngine's unique way of parsing templates. Because the main template is executed to completion before any embedded templates are even looked at, this plugin can be used to build a string in the main template and output the value of the string in any embedded template... even an embedded template that is "above" the point where you built the string.
Check out the code examples to see some of the ways this plugin can make your life easier.
We used the string plugin extensively on this site. It's used for our page titles, meta descriptions, the breadcrumbs, canonical link tags, even some sidebar content. We're convinced that we've only scratched the surface of what can be done with this plugin. If you have a particularly clever use, we'd love to hear about it.
We're convinced that you'll find it indespensible and an excellent value for the money. To purchase, head on over to devot-ee. If it doesn't solve any of your problems, refunds are available for 30 days after purchase.