0

i have created a custom content type "My_Content" with some custom fields. One of the fields in "My_field". Now, when the user is creating a content of type My_content, he/she is asked for the fields like title, body, picture, My_field etc...What i need is that the My_field always displays on the right sidebar. Is there a way to achieve this?

1 Answer 1

2

You can do this with the Panels module. From the Page Manager configuration screen (Pages in the admin interface), enable the node edit page override. Then edit this override.

Create a new variant. Set the selection rule to be "content has type" -> "my custom content type". Then, under Layout, choose an appropriate layout (one with a right sidebar).

Afterwards, under content, you will need to add all of the fields for the content type to be edited. Just place My_field in the right sidebar and it will be displayed there.

3
  • ...can you do so by any other method, say through. The reason i ask this is because when i am using Panel and overriding then my flags which i placed on nodes of that particular content type (using Flag module) are gone, i.e, they are not being displayed.
    – why
    Commented Feb 13, 2013 at 14:13
  • I checked again..the flags are displaying on other content types but not here
    – why
    Commented Feb 13, 2013 at 14:19
  • Hey..i solved that issue...just needed to add <?php print flag_create_link('bookmarks', %node:nid); ?> inside Add custom content under Add content in the Panel
    – why
    Commented Feb 13, 2013 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.