Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Best thing to do is this to make things easier to manage:
1) Add a block
2) Create a php file containing the links. Store this file, say in the root drupal directory or in the /files directory
3) require_once() that php file in the block body
and make sure you have php code selected for the block
Login with admin privileges and go to Administer > Blocks > Add Block (tab). Give your block a title and add the requisite HTML/PHP under the Block Body text box. Personally, I'd do links as an unordered list, but it's totally up to you. Then enable the block and order it appropriately.
Flexinode (or weblinks even) to create the list of links? I created a "Quick Links" content type, with flexinode (there is a url field). Then created a vocabulary of the same name, and assigned the new content type to it. I used this code snippet in a block, replacing the "PLACE NODE TYPE HERE" with the new content type (in my case flexinode-1)
<?php
/**
* the following displays a list of the 10 most recent node titles
* and links to the full node. If you want to increase/reduce
* the number of titles displayed..simply change the number 10
* at the end of the SQL statement.
*
* This php snippet works with drupal 4.6.
*
*/
$output = node_title_list(db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.created FROM {node} n WHERE n.type = 'PLACE NODE TYPE HERE' AND n.status = 1 ORDER BY n.created DESC"), 0, 10));
print $output;
?>
By using flexinode, you dont have to manually add new links to that block, it pulls them from your created content.
sorry but that not i need. I need a menu like the drupal-navigation but when i click on a link i want that open a new window with the website i linked.
now i have 4 blocks with links for the languages.
menu normal:
> links ( english )
> links ( german )
> links ( french )
> links ( spanish )
i want that when i click on links for example i became following menu:
> links ( english )
> ...
> links ( german )
> links ( french )
> links ( spanish )
and now when i click on a link under links ( english ) i want a new window with the other website. external from my drupal.
Comments
RE: Help
I did this a few hours ago.
Best thing to do is this to make things easier to manage:
1) Add a block
2) Create a php file containing the links. Store this file, say in the root drupal directory or in the /files directory
3) require_once() that php file in the block body
and make sure you have php code selected for the block
Kerry Kobashi
www.kerryonworld.com
Here's how I do it...
Howdy,
Login with admin privileges and go to Administer > Blocks > Add Block (tab). Give your block a title and add the requisite HTML/PHP under the Block Body text box. Personally, I'd do links as an unordered list, but it's totally up to you. Then enable the block and order it appropriately.
Good luck,
Jim
RoadUP.com
thank you for your help.
thank you for your help.
sorry for my bad english. ^^
Why not use
Flexinode (or weblinks even) to create the list of links? I created a "Quick Links" content type, with flexinode (there is a url field). Then created a vocabulary of the same name, and assigned the new content type to it. I used this code snippet in a block, replacing the "PLACE NODE TYPE HERE" with the new content type (in my case flexinode-1)
By using flexinode, you dont have to manually add new links to that block, it pulls them from your created content.
sorry but my Department
sorry but my Department manager want a other way. he want now a menu like the navigation for the links. how can i make that?
taxonomy dhtml
You can create your taxonomies (categories) and then use the taxonomy dhtml module, it creates a page with a tree like menu.
oh and...
There is also a taxonomy block as well.....
Sorry but...
sorry but that not i need. I need a menu like the drupal-navigation but when i click on a link i want that open a new window with the website i linked.
now i have 4 blocks with links for the languages.
menu normal:
> links ( english )
> links ( german )
> links ( french )
> links ( spanish )
i want that when i click on links for example i became following menu:
> links ( english )
> ...
> links ( german )
> links ( french )
> links ( spanish )
and now when i click on a link under links ( english ) i want a new window with the other website. external from my drupal.