Tags:
create new tag
view all tags

What would folks recommend for inserting plugin-based variables into all the pages of a particular web? For all webs?

My first thought was to use WebPreferences, but it doesn't appear that plugin variables in WebPreferences are evaluated when the topic is rendered. Maybe this should be obvious, but it wasn't obvious to me. Or maybe my plugin doesn't have the right magic to do so.

For example, I have my HtmlMetaPlugin, and it works great: as long as the calls are in the body of the topic. But if I want to set meta tags for an entire web, it appears that I would have to edit each topic in the web to include a topic with HTMLMETA variables in it. I guess I can set up a template for new pages, and edit all of the existing pages, but it would have been slick to just edit WebPreferences. Or, for things that are global to the site, Main.TWikiPreferences. I'd really rather not hack some piece of TWiki (e.g. UI.pm or some such thing for this), but I certainly don't want to edit every single page, either!

Thanks,

==Doug Claar

-- Contributors: DougClaar

Discussion

-- DougClaar - 11 Jul 2006

You could either place the variable in all of the WebLeftBar topics, or in an appropriate template in your twiki/templates directory. The templates seem like a better idea to me, this way you could restrict the meta tags to just view if you wanted.

-- JasonHill - 12 Jul 2006

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-07-12 - JasonHill
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.