This project is read-only.

Adding meta "google-translate-customization" to the head of my orchard site or theme

Topics: General
Mar 15, 2013 at 1:31 PM
Hi All

I need to add this meta to the head of my site and don't know the following key bits of info:
  1. Which cshtml document do I need to add it to.
  2. How to format it's wrapper if one is required eg. SetMeta etc.
Thank you
Mar 15, 2013 at 4:22 PM
Edited Mar 15, 2013 at 4:24 PM
From any view you have access to a property called ResourceManager, which has a SetMeta method.
You could do for example the following from your Layout.cshtml file:

@ { ResourceManager.SetMeta( new MetaEntry { ... } ); }