Can a theme depend on Url Alternates

Topics: Writing themes
Apr 14, 2011 at 9:34 AM

I'd like my theme to require that the user has Url Alternates enabled.

I tried to add this to Theme.txt:

Dependencies: Orchard.DesignTools.UrlAlternates

But this happened when I tried to activate the theme:

Activating theme failed: Sequence contains no matching element
Sequence contains no matching element
Cheers,
Apr 14, 2011 at 10:08 AM

It's Designer not Design.  ;)

Apr 14, 2011 at 10:31 AM

I tried:

Dependencies: Orchard.DesignerTools.UrlAlternates

and I still got the same error.

Using:

Dependencies: Orchard.DesignerTools

almost works, but doesn't require the UrlAlternates feature.

Apr 14, 2011 at 11:49 AM

Try just:

Dependencies: UrlAlternates

Looking at the Module.txt in designer tools, there's no namespace for the UrlAlternates feature.

Apr 14, 2011 at 12:45 PM

Bingo!

Thanks Pete!