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 ;)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | user_content.inc_.patch | 5.7 KB | sandergo90 |
| plugins.zip | 10.19 KB | sandergo90 |
Comments
Comment #1
Letharion commentedIf 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.
Comment #2
sandergo90 commentedThanx for setting it to fixed. It's indeed a contribution ;)
I've created a patch and attached it.
Comment #3
Letharion commentedOh, 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?
Comment #4
sandergo90 commentedYes 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.
Comment #5
merlinofchaos commentedthe user_profile content type handles view modes for users.