How to show a view in the 'edit' page of a content type?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
spessex's picture

Does anyone know of a way to show a 'view' in the edit page of a content type (I can show it in the usual view page i.e. not edit)?

Basically when the user is editing the content type he needs to see the view (by somehow adding it as a field type?).

Any help would be most appreciated.

Thank you

Stephen

Comments

perhaps using Panels

jaimeah's picture

It depends on what you are trying to accomplish: you can use Panels to get more flexibilty on what is displayed on the node edit screen, but perhaps this s is overkill.

Can you detail your need a little bit more?

Hi, (1) create a block with

alberto56's picture

Hi,

(1) create a block with your view
(2) download the context module (http://drupal.org/project/context) and enable Context UI
(3) if your users see a different theme when they are editing a node, temporarily set your site's default theme to the administration theme
(4) create a new context
(5) in your context, make the condition "node type" and select your node type, then select "only on edit form" (or something like that)
(6) in your reaction, select block, and place the block you just created with your view in the correct region (you will only see regions in the active theme, hence step 3, above.
(7) save your context and reset your default theme if necessary.

Cheers,

Albert.

Cheers!

spessex's picture

Cheers Albert! That's bloody fantastic (tested and it's doing exactly what I want it to). That's saved me loads of work.

A number of directions to go...

mcoughli's picture

But you might want to check viewfield out:
http://drupal.org/project/viewfield

Thank you

spessex's picture

Thanks to everyone who's offered help. Albert's instructions have achieved exactly what is required.