Personalización de enlaces primarios y secundarios

Customising the primary and secondary links
Description
These examples illustrate how you customise the default layout of primary or secondary

Notes

* For use within your page.tpl.php file.
* The example snippets converts your primary/secondary links to an unordered list
* Please discuss or suggest tips at this thread on the forum discussing how to customise primary/secondary links

Drupal 4.6 / 4.7

Primary links snippet:

Secondary links snippet:

Drupal 5.0

In 5.0, $primary_links is no longer an array of HTML formatted anchors. Instead each primary link is an array of link attributes. To make it more confusing, one of these attributes, href, can have non-uri values, like . You can see how I handled that exception below, but there may be others.

This is only one way to do this. There are probably better ways using theme engines.

Primary links snippet:

Secondary links snippet:

Ver
http://drupal.org/node/44711

Etiquetas: