Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Context->BodyAttributes but for the HTML tag?

edited April 2007 in Vanilla 1.0 Help
Hopefully this can be done somehow, but I'm not sure how. I want to be able to add some attributes to the html tag, specifically the IE vml tag:

xmlns:v="urn:schemas-microsoft-com:vml"

Is that possible?

From what I can tell the head.php template allows this for body but the html tag is pretty much hardcoded. Does this mean I'd have to have a custom template if my extention requires the vml tag for it to work with explorer?

cheers
David

Comments

  • Options
    Yes, you will have to customize it. But don't worry, its very easy. Copy head.php into the Vanilla folder, (this way, your changes don't get overwritten when you next update Vanilla) and change it there how you need it. Done.
  • Options
    edited April 2007
    Hi WallPhone, But isn't that essentially a Theme? Or do I just drop a head.php into my extension folder? This is a little 'grey' in my head... cheers
  • Options
    Yes, it technically is a theme. The Vanilla folder is technically the currently installed theme, but since there are no theme files inside it, all pages use the base default theme files. If you have some other theme installed, you would have to edit it's file directly instead of copying into the Vanilla folder and editing there.
  • Options
    edited April 2007
    OK, thanks for that. Wouldn't something like "Context->HtmlAttributes" be better though, if it existed? Albeit very rarely used it seems for an extension which requires VML for the evilness that is Explorer6 to need to release a theme for that one line plus an extension defeats the object, or am I misunderstanding. I think I'll drop the vml requirements for now to keep things to just an extension.
This discussion has been closed.