Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 1:56 am (All times are UTC )

 




Post new topic Reply to topic  [ 11 posts ] 
Author Message
Posted: Fri Dec 22, 2006 6:55 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Dec 22, 2006 6:42 am
Posts: 3
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


Top
   
 
Posted: Fri Dec 22, 2006 4:21 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Nov 08, 2006 1:45 am
Posts: 777
Location: Ontario, Canada
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


Top
  E-mail  
 
Posted: Fri Dec 22, 2006 8:27 pm 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Dec 22, 2006 6:42 am
Posts: 3
I'm working on a few page templates, but if a module would be easier, I would be eager to learn.

Cheers,

George


Top
   
 
Posted: Fri Dec 22, 2006 10:40 pm 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Wed Nov 08, 2006 1:45 am
Posts: 777
Location: Ontario, Canada
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


Top
  E-mail  
 
Posted: Sat Dec 23, 2006 12:04 am 
User avatar
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Fri Dec 22, 2006 6:42 am
Posts: 3
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


Top
   
 
Posted: Sat Dec 30, 2006 3:31 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Code:
<?php echo $mainframe->getCfg('sitename'); ?>


This should do it.

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Mon Jan 01, 2007 3:22 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 26, 2005 1:31 am
Posts: 1246
Is it intended that anything can be called from the config file...

_________________
Joomlashack - Professional Hand Coded Joomla Templates
www.joomlashack.com/professional-joomla-templates
Fully Managed Joomla Hosting
www.joomlashack.com/joomla-hosting


Top
   
 
Posted: Mon Jan 01, 2007 4:29 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
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.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Mon Jan 01, 2007 4:37 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 26, 2005 1:31 am
Posts: 1246
I suppose to call it you would need to get into the template, which if soemone has done, you are hosed anyway  :P

_________________
Joomlashack - Professional Hand Coded Joomla Templates
www.joomlashack.com/professional-joomla-templates
Fully Managed Joomla Hosting
www.joomlashack.com/joomla-hosting


Top
   
 
Posted: Mon Jan 01, 2007 4:50 pm 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6431
Not sure I understand what you mean.

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Posted: Mon Jan 01, 2007 6:17 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 26, 2005 1:31 am
Posts: 1246
PM'ed cos of potential security issue

_________________
Joomlashack - Professional Hand Coded Joomla Templates
www.joomlashack.com/professional-joomla-templates
Fully Managed Joomla Hosting
www.joomlashack.com/joomla-hosting


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group