Drupal has the option when a user is logged in to "add new comment". I would like to have a link that displays something like "add new story". Just to make it easier for a user to add a new story to section.

Does anyone know of any functionality that exists to do this, or how I would go about hacking to achieve this?

Thanks

Charles.

Comments

boris mann’s picture

You can administer the menu to add whatever links you like (Administer » Menu). If you want it when you are viewing content, edit the template to include a link to new stories (e.g. node/add/story).

capmex’s picture

First you need to go to administer->modules (admin/modules) and enable the "menu" module. Then go to administer->menus (admin/menu), find the "story" menu item under "create content", choose edit and then you will be able to select under which - parent item - you would like to relocate this item, according to what you say in your post I recommend you to select as - parent item - "Navigation". Don't forget to add in the title field "add new story".

The solution above puts the new link outside of the "create content" menu item, on the user navigation menu block.

To add a link next to the node "add new comment" link. If you are using a phptemplate theme you'll need to open the file node.tpl.php, the file is on your theme folder, and add a link to (node/add/story) close to the $links variable. <?php print $links ?>

For example modifying the above code:
<?php print $links . '<a href="/node/add/story">add new story</a>' ?>
--
Webmaster Resources for Business Websites

foxtrotcharlie’s picture

Thanks for both of your input. Modifying the code in node.tpl.php added the required link.

Cheers,

Charles

www.parkroad.co.za