page title in drupal

altoo - February 27, 2008 - 07:30

Hi,
I need a page title should be dynamically changing which page am looking for the title.how to get the title name from the url am passing only id of that title.

for ex:am passing url like these http://localhost/books/32,http://localhost/books%20%authors/search/30,
http://localhost/books%20%authors/search/arts/16.

for ex:In shopping cart i want the details for particular book .if i click the book link only am passing the bookid in url and am getting the books data from sl server for that i need book name
URLS can be change each and every pages.I want the functionalities to be included in page.tpl
can u giv the idea.

tnx

template variables

uzbekjon - February 27, 2008 - 10:00

You can always refer to template variables, $title in particular for page title (page.tpl.php).

If you have node id but no title use node_load($nid) function then refer to it's title. Easy-peasy...

Uzbek

-------------------------------
Sites for uzbeks and Uzbekistan:
Uzbek Lyrics Database
Uzbekistan Forum

 
 

Drupal is a registered trademark of Dries Buytaert.