Hi,

I am building a site that has multiple blog topics with comments on a secondary page. One of my blog topics needs to be themed differently, to do so I am using the "Themekey" and "Path Auto" modules. The problem that I am running into is that I cannot correctly set the theme to the comments in relationship to the topic since the comment URL output is “node/123/talk.”

I tried to set URL alias for comments but could not find a setting in the "Path Auto" settings (admin/build/path/pathauto). I added the "Comment alter taxononomy" module which requires the user to select a term to post a comment about, but this did not change the URL alias either.

Does anybody know of a way to set different themes for the comments on a secondary “Talk” page?

All comments are much appreciated.

Thanks,

Daniel

Comments

blanesworld’s picture

Is this even doable? If it's not doable please let me know. I'm completely stumped.

WorldFallz’s picture

I'm not sure I understand-- are you actually trying to change the entire site theme (admin/build/themes) for a comment or just style the comment differently?

blanesworld’s picture

Hi,

Thank you for your reply. I hope this isn't too complicated.

I have multiple blog categories but one of the categories needs to have it's own theme. I am using the "Themekey" module to set path conditions for this to happen (ie "blog/blog-topic/%" theme dropdown = new theme).

The comments for all blog posts must be on a secondary page. For this solution I am using the "Talk" module.

Here's where I am having problems:

All blog comments are set to display on a separate page. The link to any given "talk" page by default is: www.mysite/node/123/talk.

Since all comment paths share the output: "node/123/talk" I can only assign one theme to meet path conditions for all comments.

Ideally I want the comments output url to read: "blog/blog-topic/%/talk" to set the parameters in the Themekey module.

Is there any way to set up the comments output to meet this criteria?

Daniel

WorldFallz’s picture

Ah ok, I think I understand what you're looking for. I just tested this with the current released versions of talk and themekey and I had no problem-- the 'talk' page was themed same as the blog topic.

What I did was setup themekey to use taxonomy terms (ie 'finance' was set to blue marine and 'science' was set to marvin), not paths, and it worked perfectly. So you could also setup a 'theme' taxonomy (with terms for each theme) and make a theme switcher that way.

blanesworld’s picture

Thank you! Thank You!

This worked very well indeed. I had to use the taxonomy ID for the property value field at admin/settings/themekey/properties.

Your help is greatly appreciated!