Closed (fixed)
Project:
Display Suite
Version:
7.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 22:04 UTC
Updated:
20 Dec 2011 at 07:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
Ole Martin commentedSomeone who can help me out with this?
Comment #2
swentel commentedCreate a custom field and use this:
Comment #3
swentel commentedComment #4
Ole Martin commentedI have tried this solution, but can not get it to work. Tried also to change the "content" to "event" but it gave no result.
Comment #5
Ole Martin commentedWhile I worked with some other fields, it suddenly popped up. Had cleared the memory on both the drupal and browser earlier.
Many thanks for your help
Comment #6
swentel commentedOk, great!
Comment #7
woop_light commentedSwentel, thank you so much for developing the DS module (and all of the helpful videos). DS takes Drupal to the next level.
I'm using DS (7.x-1.3), and I'm trying to integrate it with CCK Signup (7.x-1.0-alpha4). Sorry I'm not too savvy with PHP. I first tested that when I toggled on one of the Display Suite templates that the node's signup link disappeared (as expected based on Ole Martin's original support request). Then I tried adding a custom field:
(1) On 'Manage Display' I clicked "Add Code Field"
(2) Label = "Signup test"
(3) Entities = "Node"
(4) Field code =
Then I get the following errors:
I know this sort of falls outside the scope of the Display Suite module, but if you can help out at all it would be very, very appreciated. Again, thanks so much for developing the Display Suite. It's a work of art!
Best,
woop
Comment #8
swentel commentedInstead of $object, it's $entity, so the code should be:
Comment #9
woop_light commentedThanks for the quick response swentel. Unfortunately the same error is still occurring, even using the above snippet. I didn't want to keep bugging you about it -- and I tried to solve it on my own, but to no avail. I'm stalled. If anything else comes to mind as to why it's not working, I would greatly appreciate it!
woop
(Again, if I turn off Display Suite, CCK Signup works. When I turn it on and make the custom field visible, I get the errors that I posted before.)
Comment #10
woop_light commentedAnyone have any luck with this?
Comment #11
mortendk commentedi got an eval() error i had <?php tags in the field so i just posted the $entity-> ,... directly in
check the screenshot. looks like its working ;)
Comment #12
clo75 commentedI also tried to put the signup side by side with the content with the help of Display Suite
If I use the php code
I got the same kind of error as woop_light got
If I place just
$entity->content['signup']['#markup'];
with display suite code option I just get "$entity->content['signup']['#markup'];" showing in the right column
Any clue ? Thanks
Comment #13
mortendk commentedit sounds like you textformat isnt taking in php or "display suite" format.
make sure you uses that else it wont print the php magick :)
look at the screenshot i posted in #11
Comment #14
clo75 commentedthanks for your reply
however there was already the following settings done (Drupal 7)
1/ activating php filter module (in modules)
2/ Creating a new textformat for display suite code (in configuration/text format)
3/ when creating the regarding node with signup, assign text format "displaysuite code"
and with this settings I got the 2 cases :
the one when typing full php syntax in the Display Suite field code , in this case there is an error message
the other one with just "$entity->content['signup']['#markup'];" as you suggest it, but only text "$entity->content['signup']['#markup'];" was displayed in the right column.
When desactiving Displaysuite module I saw the sign up form at the bottom of the node. With Display Suite the idea was in theory to have a left column with the content and a right one with the signup form related to the event. If I use the standard node display the signup form is at the bottom of the post and in this case not immediatly visible.
There was no block option for signup module, I tried several css tricks with no luck, there was no views solution in order to display the signup form, panels feature seems not working. What I want to do is showing content on the left and the regarding signup form for the event on the right. If I understand correctly, I think that this is exactly what you succeeded to do.
Perhaps I missed one step. Thanks
Comment #15
klaashobo commentedWith me it's also not working and I have tried the same steps. Hope to find a solution soon.
Comment #16
woop_light commentedyup -- i've been in the same boat as clo75. would really love to work this out.