Hi, I am relatively new to drupal and have only been playing with it for a month. It seems great so far and my site is almost complete.

The one thing is the front page. I am playing with the "panel" module to split it into 2 columns. The one on the left will show the latest news and update which I can do with "view" module, the one on the right I want to show the node/add/story page with the input box.

I have been trying to use Panel module but it doesn't look like I can just put in the node/add/story line into the "add post" field when I edit the panels. There is no NodeID for that page, and that isn't a block. So it looks like panel module can't just load a node based on url. I guess the only thing I can do is load it in panel using View module.

Well in View module, I can use provide page view and use full node. At first I though the URL field was exactly what I was looking for but unfortunately not. So it looks like I have to use filter it through node, but I just can't seem to figure this out.

Am I even barking up the right tree? Would this work this way? I know it might work if I edit the theme but I am really not good at css or php so Panel + View would be the easiest way to go. But is this a dead end?

Please help me!

Comments

ablemike’s picture

I am trying to do the exact same thing in 5.x

orick’s picture

use this in custom view:

  $url_of_this_panel = 'path/to/frontpanel';
  if (user_access('create stories')) {
    $_REQUEST['destination'] = $url_of_this_panel;
    print node_add('story'); 
  }

select php code as input format

ablemike’s picture

How simple was that?

omnyx’s picture

orick - how did you manage to split the frontpage into two using panels and views in the first place?

thanks!