Solution: ThemeKey UI has to create a rule using path destination as value instead path source

Comments

SocialNicheGuru’s picture

Can you give an example or a step by step process for us new to themekey and a little slow at 12AM?

thanks (sorry for the bad humor).

mkalkbrenner’s picture

Title: ThemeKey UI: Unable to set differnt themes for differnt path aliases » ThemeKey UI: Unable to set different themes for different path aliases

Example:

Node 27 has two aliases /foo/bar.html and /another/path.html.

Before ThemeKey 6.x-2.0-beta4 ThemeKey UI's path component stored the theme associated to node/27 no matter ro which alias it was assigned. Now it stores one theme per alias which allows different themes for different aliases.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Wilby1976’s picture

Version: 6.x-2.0-beta3 » 7.x-1.0

I'm trying to assign a theme to a URL alias in version 7.x-1.0, Drupal 7.2 and it doesn't seem to be working. I've set a rule for drupal:path = ESU11, with ESU11 being the alias of the page I want to apply the theme to. (www.mysite.com/ESU11) It works if I remove the alias on the page and apply the same rule to the node/blahblahblah. Is this still a bug or am I doing something wrong? Thanks for your help!

BenStallings’s picture

Version: 7.x-1.0 » 7.x-2.0-rc1
Status: Closed (fixed) » Active

Reopening this issue so the above comment can get some attention. I'm having the same problem. Theme switching works with actual paths but not with aliases. Looks like I'm going to have to manually enter the node IDs of every single page. :-(

mkalkbrenner’s picture

ThemeKey should work well with path aliases. Please post the output of ThemeKey Debug

mkalkbrenner’s picture

Status: Active » Fixed

The issue described in #4 is caused by the uppercase characters in the alias.
This has been fixed by #1030268: Toggle "Property drupal:path is case sensitive" does not work for path aliases

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Michael Ware’s picture

Status: Closed (fixed) » Needs work

I cannot get a Themekey dialog box to appear in admin/config/search/path or on the edit page of individual nodes under "url alias". I also don't understand how to configure Themekey's Theme Switching Rule Chain, which I thought I could use as alternative way to accomplish the same simple idea: have every page on my site with the path www.example.com/batshit to use my batshit theme. I hope someone can help. Thx.

mkalkbrenner’s picture