Editing a node type when the layout is being managed by Display Suite causes the Five Star widget to no longer be available to Display Suite. The display options also disappear from the content type and the widget does not render in any view including those not managed by Display Suite (full node, teaser etc).

Uninstalling nd_fivestar, saving the node type and reinstalling nd_fivestar brings everything back until the next time the node type is edited.

Installed on localhost - Ubuntu 10.04, Apache 2.2.14, MySQL 5.1.41, PHP 5.3.2.

Comments

swentel’s picture

Status: Active » Closed (works as designed)

This is actually a minor bug in fivestar. If you install fivestar as a new module, it will not set its weight to -1. However, there is an update hook in fivestar_install() which does this, see fivestar_update_6102(). The form alter is first, nd_fivestar can set the fivestar to TRUE if necessary. I must have tested it with an early version installed, than upgraded and never looked back.

As a workaround, either set weight to -1 of fivestar or remember to toggle that 'enable fivestar' checkbox every time you'd edit the node type (which can be forgotten indeed :)

Anonymous’s picture

Priority: Major » Normal
Issue tags: +Fivestar, +ds, +node display

I'm tagging this so it might be more easily found by someone like me who just spent several hours trying to find a fix for this problem. There is no mention of this bug in the nd_contrib fivestar docs. I've also requested here http://drupal.org/node/1132222 that this fix be mentioned in their docs.

kclarkson’s picture

Status: Closed (works as designed) » Active

I have tried your solution of uninstalling, saving content type and then reinstalling nd_fivestar and I still cannot see a fivestar field in the display suite for the full node.

One thing to note is that I do not have a "body" field as I omitted this and added something else.

kclarkson’s picture

Status: Active » Closed (works as designed)

Figured it out. Here is my configuration for some other people

admin
site building
display suite
node displays
fields
create block field
name the field key ( I did ds_fiverstar)
field title (i did fivestar)
block - dropdown ( scroll down to five star: rate this node)
save

Now you should see your fivestar field in your display suite

cheers :)

hongpong’s picture

Issue tags: +display suite

just fixed tag typo to get rid of bad entry