Noob question :: calling page title outside the tag

Locked
User avatar
le_garçon
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Dec 22, 2006 6:42 am

Noob question :: calling page title outside the tag

Post by le_garçon » Fri Dec 22, 2006 6:55 am

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

 
User avatar
CoolAcid
Joomla! Guru
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

Post by CoolAcid » Fri Dec 22, 2006 4:21 pm

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

User avatar
le_garçon
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Dec 22, 2006 6:42 am

Re: Noob question :: calling page title outside the tag

Post by le_garçon » Fri Dec 22, 2006 8:27 pm

I'm working on a few page templates, but if a module would be easier, I would be eager to learn.

Cheers,

George

User avatar
CoolAcid
Joomla! Guru
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

Post by CoolAcid » Fri Dec 22, 2006 10:40 pm

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.
Templates are layouts - Modules are things that go in the layouts.

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

User avatar
le_garçon
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Dec 22, 2006 6:42 am

Re: Noob question :: calling page title outside the tag

Post by le_garçon » Sat Dec 23, 2006 12:04 am

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

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6569
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: Noob question :: calling page title outside the tag

Post by Jinx » Sat Dec 30, 2006 3:31 pm

Code: Select all

<?php echo $mainframe->getCfg('sitename'); ?> 
This should do it.
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.joomlatools.com - Joomla extensions that just work

User avatar
compass
Joomla! Ace
Joomla! Ace
Posts: 1347
Joined: Fri Aug 26, 2005 1:31 am
Contact:

Re: Noob question :: calling page title outside the tag

Post by compass » Mon Jan 01, 2007 3:22 am

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

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6569
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: Noob question :: calling page title outside the tag

Post by Jinx » Mon Jan 01, 2007 4:29 pm

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

User avatar
compass
Joomla! Ace
Joomla! Ace
Posts: 1347
Joined: Fri Aug 26, 2005 1:31 am
Contact:

Re: Noob question :: calling page title outside the tag

Post by compass » Mon Jan 01, 2007 4:37 pm

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

User avatar
Jinx
Joomla! Champion
Joomla! Champion
Posts: 6569
Joined: Fri Aug 12, 2005 12:47 am
Contact:

Re: Noob question :: calling page title outside the tag

Post by Jinx » Mon Jan 01, 2007 4:50 pm

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

User avatar
compass
Joomla! Ace
Joomla! Ace
Posts: 1347
Joined: Fri Aug 26, 2005 1:31 am
Contact:

Re: Noob question :: calling page title outside the tag

Post by compass » Mon Jan 01, 2007 6:17 pm

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

 

Locked

Return to “Joomla! 1.5 BETA”