By soezkan on
Hi folks,
I build a view to list my blog entries.
Since I want to edit directly on the
page, without going to administer->content->blog entry,
it would be great to have a tab with an edit field, right
like I have it in my page.tpl.php,which is spit out
by:
if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif;
To theme my view I have an extra views-view-row-node--blogentries.tpl.php
But I don't know where I can put such a edit-tab inside this file?
Any ideas how to do that?
Thanks alot,
Best,
Soezkan
Comments
In views, you can add add the
In views, you can add the field "Node: Edit link".
It will only appear for users that have administer nodes permissions
Thanks for replying. But how
Thanks for replying.
But how can I manage that when I use Row style: Node?
Best,
Soezkan
node-blog.tpl.php
copy the node.tpl.php file from your theme directory.
Rename it node-blog.tpl.php
edit node-blog.tpl.php
put this code right after the first open div (or were ever you want)
Upload node-blog.tpl.php to your theme directory
Flush cache by going to admin > settings > performance and clicking on the button that says clear cached data.
Now, any user that has the permission to administer nodes. When they view a blog teaser should get an edit link (depending on were you put the code provided above) somewhere in that teaser.
Also try admin:hover.module
Also try admin:hover.module
.dan. is the New Zealand Drupal Developer working on Government Web Standards
Good call
Never used that one before, looks useful
Super!!! Now I can edit each
Super!!! Now I can edit each node in the view! Thanks alot :)
all the best,
Soezkan