Getting page title for a specific page (using uid)

METHOD 1:

temp.pTitle = HMENU
temp.pTitle {
special = list
special.value = {$my_page_uid}
1 = TMENU
1 {
NO {
doNotLinkIt = 1
}
}
}

METHOD 2: (The localization may not work fine in the below method)

lib.pagetitle = RECORDS
lib.pagetitle {
source.data = page:uid
tables = pages
conf.pages = TEXT
conf.pages.field = nav_title
}

Getting Current Page Title:

lib.pagetitle = TEXT
lib.pagetitle.field=title

Page title of parent page:

lib.pagetitle = TEXT
lib.pagetitle.data = leveltitle:-2
OR
lib.pagetitle = TEXT
lib.pagetitle.data = leveltitle:-3

Inserting page title within a HMENU

temp_pagetitle = TEXT
temp_pagetitle.data = leveltitle:-2

leftMenu = HMENU
leftMenu.stdWrap.preCObject < temp.leftmenu_pagetitle
leftMenu.1 = TMENU
leftMenu.1.wrap = <ul class=”cw_leftmenu”>|</ul>
leftMenu.1.NO.wrapItemAndSub = <li>|</li>
leftMenu.1.ACT = 1
leftMenu.1.ACT.wrapItemAndSub = <li>|</li>
leftMenu.1.ACT.allWrap = <span class=”active_menu”>|</span>
leftMenu.1.CUR = 1
leftMenu.1.CUR.allWrap = <span class=”cur_menu”>|</span>
leftMenu.2 < .1
leftMenu.3 < .2

bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark