Hello,

I am trying to use this module to allow users to add custom classes to body for a page. I've enabled the module and created a new text field for my content type. I've set the display:

TARGET TAG: Page
TARGET LEVEL: Default
"Remove original field from output" Unchecked

I've saved all changes, added a class to my the text field for a page on my site, and cleared all caches but my custom class name is not showing up in the body for my page. I found a comment on this page: http://codekarate.com/daily-dose-of-drupal/drupal-7-field-formatter-css-... where someone had a similar issue with a element created within a view but that's not the problem I'm having. I am trying to apply the class to the BODY tag of my page.

Has anyone else experienced this kind of problem? I'm looking for some help to debug this issue but I'm not finding any information. Hoping someone associated with the module could help me out.

-johnny;j

Comments

johnny-j-hernandez’s picture

Priority: Major » Normal
frob’s picture

Category: Bug report » Feature request

from what I can tell, that isn't what this module does. I would use context with context_entity_field to do this. Or just write some custom code to put the field value into the body class.

robloach’s picture

The Field Formatter CSS Class module will add it to the node itself, Body Classes could add it to the body.

frob’s picture

Status: Active » Closed (won't fix)

I think that is enough options for this to be closed.

frob’s picture

Status: Closed (won't fix) » Closed (works as designed)