Noob question :: calling page title outside the tag
- le_garçon
- Joomla! Fledgling
- Posts: 3
- Joined: Fri Dec 22, 2006 6:42 am
Noob question :: calling page title outside the tag
Hi all,
Need a bit of help with something which is probably very simple.
I would like to call the page title (i. e. the last link echoed by the breadcrumb module) into the section of the document - I'm not having much luck.
Any help would be greatly appreciated :-)
George
------------------------------------
Joomla! 1.5 BETA
Apache running on Mac OS X 10.4.8
Need a bit of help with something which is probably very simple.
I would like to call the page title (i. e. the last link echoed by the breadcrumb module) into the section of the document - I'm not having much luck.
Any help would be greatly appreciated :-)
George
------------------------------------
Joomla! 1.5 BETA
Apache running on Mac OS X 10.4.8
- CoolAcid
- Joomla! Guru
- Posts: 786
- Joined: Wed Nov 08, 2006 1:45 am
- Location: Ontario, Canada
- Contact:
Re: Noob question :: calling page title outside the tag
Just to direct the question in the correct way - Are you doing a template or modules/plugins?
Thank you for calling the GOD department. What Now?
- My Blog: http://www.coolacid.net
- My Blog: http://www.coolacid.net
- le_garçon
- Joomla! Fledgling
- Posts: 3
- Joined: Fri Dec 22, 2006 6:42 am
Re: Noob question :: calling page title outside the tag
I'm working on a few page templates, but if a module would be easier, I would be eager to learn.
Cheers,
George
Cheers,
George
- CoolAcid
- Joomla! Guru
- Posts: 786
- Joined: Wed Nov 08, 2006 1:45 am
- Location: Ontario, Canada
- Contact:
Re: Noob question :: calling page title outside the tag
Templates are layouts - Modules are things that go in the layouts.le_garçon wrote: I'm working on a few page templates, but if a module would be easier, I would be eager to learn.
If your trying to put the site name somewhere on the layout it's one thing, if your writing a module in PHP and trying to access the site name that's another.
Thank you for calling the GOD department. What Now?
- My Blog: http://www.coolacid.net
- My Blog: http://www.coolacid.net
- le_garçon
- Joomla! Fledgling
- Posts: 3
- Joined: Fri Dec 22, 2006 6:42 am
Re: Noob question :: calling page title outside the tag
dw im not that much of a noob! :-P
After thinking it thru, calling the page name from a template would probably be more suitable. How would I do that?
Thanks in advance,
George
After thinking it thru, calling the page name from a template would probably be more suitable. How would I do that?
Thanks in advance,
George
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
Re: Noob question :: calling page title outside the tag
Code: Select all
<?php echo $mainframe->getCfg('sitename'); ?>
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- compass
- Joomla! Ace
- Posts: 1347
- Joined: Fri Aug 26, 2005 1:31 am
- Contact:
Re: Noob question :: calling page title outside the tag
Is it intended that anything can be called from the config file...
Follow me on Twitter @compassdesign
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
Re: Noob question :: calling page title outside the tag
The mainframe global is available everywhere. It's not the the best coding practice but it is possible.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- compass
- Joomla! Ace
- Posts: 1347
- Joined: Fri Aug 26, 2005 1:31 am
- Contact:
Re: Noob question :: calling page title outside the tag
I suppose to call it you would need to get into the template, which if soemone has done, you are hosed anyway :P
Follow me on Twitter @compassdesign
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support
- Jinx
- Joomla! Champion
- Posts: 6508
- Joined: Fri Aug 12, 2005 12:47 am
- Contact:
Re: Noob question :: calling page title outside the tag
Not sure I understand what you mean.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5
http://www.joomlatools.com - Joomla extensions that just work
http://www.joomlatools.com - Joomla extensions that just work
- compass
- Joomla! Ace
- Posts: 1347
- Joined: Fri Aug 26, 2005 1:31 am
- Contact:
Re: Noob question :: calling page title outside the tag
PM'ed cos of potential security issue
Follow me on Twitter @compassdesign
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support