When trying to add user content to my panel i wasn't able to select a build mode for display suite.
So i've build a ctools plugin that is able to to this. I've written this plugin in a custom module so if you would like to use it yourself you have to change function names ;)

CommentFileSizeAuthor
#2 user_content.inc_.patch5.7 KBsandergo90
plugins.zip10.19 KBsandergo90

Comments

Letharion’s picture

Status: Needs review » Fixed

If you just wanted to contribute your solution, thanks :)
'Needs review' is for patches, so I'm setting to fixed. If you think the code should be in ctools more generally, then, please attach in a patch format, and move to the ctools queue.

sandergo90’s picture

StatusFileSize
new5.7 KB

Thanx for setting it to fixed. It's indeed a contribution ;)

I've created a patch and attached it.

Letharion’s picture

Project: Panels » Chaos Tool Suite (ctools)
Version: 7.x-3.x-dev » 7.x-1.x-dev
Component: Plugins - content types » Code
Assigned: sandergo90 » Unassigned
Status: Fixed » Needs review

Oh, well then I'm moving it back to needs review, but also moving to ctools.
I could be way off here, but isn't there already a content type, that the build mode could be added to? Is it necessary to create a new one?

sandergo90’s picture

Yes there is already a content type where you can add a build mode to but this is only for nodes. I don't find any options to do this for a user object.

merlinofchaos’s picture

Status: Needs review » Closed (won't fix)

the user_profile content type handles view modes for users.