I would like Sexy Bookmarks to be able to be used as a field with Display Suite, so it can be positioned at will on a page using Display Suite for the page display.

It doesn't currently show us as a token to create a new field code.

I'm pretty sure there's a way to make it a field using PHP, but my PHP knowledge isn't sufficient to write it. I did try creating the field code of:

print theme('sexybookmarks', $node); 

and it created the field and allowed me to place it where I wanted to, so in that regard it was a success. However, the PHP code isn't correct in that it doesn't link to the proper URL that it should. That's my lack of PHP knowledge.

Does anyone have any ideas on this, or know how to achieve what I'm trying to do?

Thanks,
- valarie

Comments

dddave’s picture

Sorry valarie,

I am no coder but I also would like ds integration of sexy bookmarks. So see this as a very verbose way to subscribe. ;)

dcomfort’s picture

You can add a new block field to Display Suite in order to display sexybookmarks.

1) go to http://www.example.com/admin/build/ds/nd/fields

2) "Add a new block field"
then fill out form - field key, field title, field class (these values should not matter)
field exclude: check the boxes for content types in which you do not want new block fields

Block select list: choose SexyBookmarks block

Block render: Render through block template

Save Block field

3) Go to http://www.example.com/admin/build/ds/layout/[content-type]/full

sexybookmarks field should now be visible

There seems to be an issue with the CSS, specifically overflow: hidden. You might need to set the height of the sexybookmark element so it is not hidden. You can use firebug to find the element and test this out.

dddave’s picture

re OP:

Try replacing $node with $object.

Or of course try the block field option.

deciphered’s picture

Status: Active » Fixed

DS/ND support is available in 6.x-2.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.