Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Technical support
»
Pulling out the Page Title
« previous
next »
Print
Pages: [
1
]
Author
Topic: Pulling out the Page Title (Read 5756 times)
Luca
Full Member
Posts: 126
Pulling out the Page Title
«
on:
February 13, 2012, 16:05:50 »
Hi,
I need to pull out dynamically the actual page title in order to use it in some tags, but it seems I didn't found any forum' thread nor I managed to find how to seeking in the files.
Instead of this
$mainframe->getCfg('sitename')
something like
$mainframe->getCfg('page_title') or $mainframe->getCfg('item_title')
but any of them work...
Please, any advice?
Thanks
«
Last Edit: February 13, 2012, 16:07:55 by baghetta
»
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Pulling out the Page Title
«
Reply #1 on:
February 13, 2012, 18:28:45 »
Hi baghetta, Try :
echo $mainframe->getPageTitle();
// In case that this will be used at index.php file of your template.
In any other function you should call the maiframe global variable like:
global mainframe;
echo $mainframe->getPageTitle();
«
Last Edit: February 13, 2012, 18:46:42 by webgift
»
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Luca
Full Member
Posts: 126
Re: Pulling out the Page Title
«
Reply #2 on:
February 13, 2012, 18:31:06 »
Thank you @webgift, it works ok
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Pulling out the Page Title
«
Reply #3 on:
February 13, 2012, 18:32:16 »
You are welcome
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Technical support
»
Pulling out the Page Title