By vegardjo on
Hia, I'm a bit stuck here trying to theme the edit part of a node (node/[nid]/edit) and would appreciate a push in the right direction!
I want the edit part of a node to present the title, body and save / preview / delete buttons in my main content region, while having all the other settings, like "authoring information", "publishing options", filefield upload boxes etc. displayed in my sidebar region - but I'm stuck..
I have created a page-node-edit.tpl.php which gives me a template file to work with for the edit page, but I'm stuck where $content just dumps all content in whichever region it is places, and it doesn't seem I can split it up..?
Any pointers appreciated! :)
Comments
2 ways I have made custom forms
Well, I know you can do it with panels with a node/%/edit override as talked about here:
http://drupal.org/node/201916
If, like me, you wanted to only do one content type, you can do the tpl file suggestion (like you did). Output
print $standard;for all of the fields andprint $buttons;for the buttons.print $admin;will do the authoring and the publishing.I'm only currently playing with this but you can also print just a single field with
print $field_MyField;, but I'm not sure if that 'submits' correctly...Hope that helps!
Which theme are you using?
thanks MaddHippy,
that is actually exactly what I am looking for, but sadly it doesn't work in my theme as I don't have those variables available ($standard and $buttons doesn't output anything, while $admin outputs the admin bar from the admin module..)
however, this leads me to think that you must have a theme where these variables are made available by preprocessing functions, and that I need to have a look at that theme to find those functions, so which theme are you currently using? :)
Garland
I have a modified Garland theme.
I also moved some of those around in my CSS. I actually removed the view/edit tabs and moved the primary links to another area. Maybe their are divs for those as well? Try looking at it in firebug to see what tags it is getting.
Hope this helps!
Still not..
Hia again,
sorry for not responding to your help for so long, been buzy!
However, this still does not work for me. Tried to use the variables in Garland but they return nothing for me :/