How to replace the position of "Bookmark" and "Send to friend"

dailypress - June 22, 2009 - 21:03

under my video clips I have two modules
1: Bookmark/Search this post with: etc...
2: Sent to Friend

How do I replace/edit their position? Is that done in the template? If so, how?

I would like the order to be changed to:

1: Sent to Friend
2: Bookmark/Search this post with: etc...

Some suggestions

pp - June 22, 2009 - 21:18

1. Set weight to 1 in the system tables bookmarks module row.
2. Write a little module which use hook_link_alter.
3. user node_preprocess function.
4. modify node.tpl.php links.

pp

can I edit the node.tpl.php

dailypress - June 22, 2009 - 21:41

4. modify node.tpl.php links.

I cant paste the PHP code here. Is there any link which I can learn more about node.tpl.php?

OR

can you tell me how to add the light gray bar which appears above my TAGS at the bottom of my page. I viewed the source code but couldnt find anything.

In short, no. Those links are

Mark Theunissen - June 22, 2009 - 21:42

In short, no. Those links are all output in one variable in the template file.

You either have to write a module as mentioned above, or add the links in one-by-one "by hand" into the template file / preprocess function, or write some clever text replacing function to re-arrange the links.

Here is the theme guide if you want to read more:

http://drupal.org/node/173880

thanks guys... im reading

dailypress - June 22, 2009 - 23:06

thanks guys... im reading through the document and playing around. Hopefully ill be able to fix it by the end of this week :)

 
 

Drupal is a registered trademark of Dries Buytaert.