Closed (fixed)
Project:
ThemeKey
Version:
6.x-2.0-beta3
Component:
Code / API
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Oct 2009 at 23:49 UTC
Updated:
29 Dec 2009 at 15:33 UTC
Jump to comment: Most recent file
I need a specific theme for the node edit of a content type. The create node page is easy, simply enter the create node path. But the edit path has no set pattern, how do I set a theme for it?
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 619940.png | 8.66 KB | mkalkbrenner |
Comments
Comment #1
mkalkbrennerThat's easy.
Go to the path settings of ThemeKey at /admin/settings/themekey and add a new path:
Comment #2
Flying Drupalist commentedWhere do I set the content type?
Comment #3
mkalkbrennerThe solution should be something like
Path:
node/#nid/editConditions:node:type=storyUnfortunately it doesn't work due to an issue in ThemeKey's architecture. I already have a working version here but it requires some more testing before releasing 6.x-1.2beta3. So stay tuned ...
Comment #4
mkalkbrennerComment #5
Flying Drupalist commentedThanks a lot. :)
Comment #6
mkalkbrennerComment #7
mkalkbrennerComment #8
Flying Drupalist commentedHi, this is not working for me. I have:
path:
node/#/edit
conditions:
node:type=story
also tried:
node:type='story'
Removing the conditions sets all the node edits. Adding the conditions does not work.
Also what would I do if I wanted to set the theme for 2 different types? Like this:
node:type=story node:type=page
?
Thanks.
Comment #9
Flying Drupalist commentedComment #10
mkalkbrennerI tested the feature again with beta6. It works.
If you want different themes for editing different node types you have to setup a single rule per node type.
Please see the attached screen shot.
If it still doesn't work on your system, there must be another reason:
- another ThemeKey rule that is more powerful
- a theme configured to a node using ThemeKey UI
- an admin theme used for editing nodes configured at /admin/settings/admin
- ...
Comment #11
Flying Drupalist commentedThanks for your help. I updated to the 2.0 version, fantastic work btw, the UI looks much better.
Anyway it is still not working for me.
Property is drupal:path
Value is node/#nid/edit
conditions is node:type=image
With nothing in conditions, all node edit pages are set to the theme I want. With the node:type=image no page is set to that theme.
I'm not sure if this is related, but this path is also not working for me(for images like: images/cars/version2/big/edit):
image/%/%/%/edit
Meanwhile this works fine (for images like: images/cars/edit):
image/%/edit
Comment #12
mkalkbrennerThanks for testing the first alpha version. You discovered two bugs:
1. no other node properties than node:nid are working
2. algorithm to build path ancestors returned incomplete result
I hopefully fixed both and released alpha2 some minutes ago.
It would be nice if you test again.
BTW If you install ThemeKey Properties and turn on it's debug mode you'll see all path ancestors for a page.
Comment #13
Flying Drupalist commentedThanks for your help and the great module. Works as expected now.
Comment #15
Flying Drupalist commentedI'm getting this after updating to the latest beta.
# 1) You entered two identical theme switching rules in the chain
# 2) You entered two identical theme switching rules in the chain
Comment #16
mkalkbrennerCan you attach a screenshot?
Nevertheless, your configuration should still work. But the error indicates that your rules could be simplified.
Comment #17
mkalkbrennerI created a dedicated issue: #669994: wrong detection of "identical theme switching rules in the chain"