06.05.2013 Views

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

Drupal 6 JavaScript and jQuery - Ebook-Cours.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>jQuery</strong>: Do More with <strong>Drupal</strong><br />

On various <strong>Drupal</strong> pages, the main content area of the page is <strong>com</strong>posed of node<br />

teasers. The following front page is one such example:<br />

In the content shown in the screenshot, there are three different nodes displayed. But<br />

only the teaser version is shown. (One would have to click on Read more to see the<br />

full story.)<br />

By default, items are arranged from the newest to the oldest. The newest node is<br />

listed first on the page.<br />

But what if we wanted to have a node that was always displayed on the top?<br />

This can be ac<strong>com</strong>plished by marking a node as sticky. A sticky node floats to the<br />

top of the list of nodes on a page.<br />

[ 74 ]<br />

This material is copyright <strong>and</strong> is licensed for the sole use by Richard Ostheimer on 18th June 2009<br />

2205 hilda ave., , missoula, , 59801

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!