Adding meta http-equiv

Topics: Customizing Orchard, Writing modules
Nov 26, 2011 at 6:18 AM

Hi All,

I've found that I cannot add Meta for http-eqiv below.

Adding meta from module:

resourceManager.SetMeta(new MetaEntry
                {
                    HttpEquiv = "content-language",
                    Content = part.ContentLanguage
                });

ResourceManager code:

public void SetMeta(MetaEntry meta) {
            if (meta == null || String.IsNullOrEmpty(meta.Name)) {
                return;
            }
            _metas[meta.Name] = meta;

}

Resource manager not allow empty meta name. Do you have any suggestion for this?

Developer
Nov 27, 2011 at 11:29 PM

I'm not sure, but maybe adding a name like "content-language" won't hurt?

Nov 30, 2011 at 6:21 AM

Thank you for your suggestion.