plainblack.com
Username Password
search
Bookmark and Share

    

Grabbing another page title

User sandraqu
Date 2/2/2010 11:12 am
Views 354
Rating 0    Rate [
|
]
Previous · Next
User Message
sandraqu

 

Is there a macro or variable that would deliver a page's title (not the page you are currently on) ? As in, give me the ^PageTitle(from/this/url);  --sandra

--- (Edited on 2/2/2010 11:12 am [GMT-0600] by sandraqu) ---



Back to Top
Rate [
|
]
 
 
perlDreamer

You could use a SQL macro to do the lookup yourself, but it would be simpler to build a small custom macro that does that, if your hosting allows that.

--- (Edited on 2/2/2010 6:50 pm [GMT-0800] by perlDreamer) ---



Back to Top
Rate [
|
]
 
 
sandraqu

Would you help me build it?

I need to grab the URL and the page title of the current page.

URL because for translated sections it would be

french/url-after-root

so if i'm here : http://domain.com/hello

french section would be: http://domain.com/french/hello

if domain.com/hello/my/friend

french : domain.com/hello/my/friend

 

The page title would ... need to come from the french page because there it is translated, and it would go in the title="" tag of the <a href HTML code.

many thanks

--s

--- (Edited on 12/20/2010 2:07 pm [GMT-0600] by sandraqu) ---



Back to Top
Rate [
|
]
 
 
    



© 2012 Plain Black Corporation | All Rights Reserved