It appears that skinr classes are not being printed. I've tested with Hexagon beta2 (both core Hex and my subtheme) and Skinr 2.x-dev. (I don't think it would make a difference with Skinr 1.x, as the classes need to be printed out in both branches, but I'd be glad to test if you think it would be helpful). Skinr works fine when I add the $skinr variable to my subtheme's template files manually as described in http://drupal.org/node/578574#theme
Is there anything else I need to do to enable the plugin? I did not enable it in my .info file as #811958 notes that it autoloads when it detects skinr. If you need any further info / testing please let me know.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | hexagon-829636.patch | 854 bytes | dvessel |
Comments
Comment #1
penguininja commentedOops, changing title to fix typo.
Edit: Also, ticket referenced above should be #811958: Basic Skinr support
Comment #2
dvessel commentedIt was a typo in the preprocess function. Thanks for spotting!
If it doesn't work, it'll be due to the registry caching and you need to clear the cache. Please mention if you run into this.
Comment #3
penguininja commentedAwesome, thanks for the patch. It's now working great on block skins (i.e. skinr styles enabled via admin/build/block), but the classes still aren't showing up on skins enabled in views, either with block or page displays. This behavior is consistent for both Hex core and my sub-theme.
Re: clearing the cache - I did not have to clear the cache for block skins to work. However, views skins did not work even after clearing the cache.
FYI, I downgraded to the 1.x branch of skinr. (I didn't care for the hovertip cogs/settings in the 2.x branch and there isn't a way to disable that at the moment.) But I can test with the 2.x branch again if necessary.
Comment #4
dvessel commentedSkinr classes will print if Hexagon has a copy of the template. An alternative is to enable the theme wrapper and add some code but I can patch the Skinr compatibility plug-in to take care of some of the work I think. I'll look into this.
Comment #5
dvessel commentedCould you do a quick rundown on how the view is setup with skinr? I haven't explored how skinr interacts with views so I'm not sure how it should be set. Thanks.
Comment #6
dvessel commentedOh, I think I just figured it out. Nevermind.
Comment #7
dvessel commentedThis will allow views to print skinr classes. It wasn't directly related.
#830528: allow views parent template to insert html attributes through preprocess.
Comment #8
penguininja commentedWorks great, skinr classes are now getting printed on views. Thanks!
Comment #9
dvessel commented