Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 4:37 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 14 posts ] 
Author Message
Posted: Mon Jan 07, 2008 10:51 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Nov 06, 2007 7:46 pm
Posts: 40
I've added some code to my category blog template override that runs the content plugins on the category description. Just thought I'd share:

File: /template/[mytemplate]/html/com_content/category/blog.php page...

Code:
   // Hack to run content modules on cat description
   $article =& new JObject();
   $article->text = $this->category->description;
   $dispatcher      =& JDispatcher::getInstance();
   
   JPluginHelper::importPlugin( 'content' );
   $results = $dispatcher->trigger('onPrepareContent', array (& $article, array(), 0));
   
   $this->category->description=  $article->text;


Hope this helps someone...


Top
   
 
Posted: Mon Jan 07, 2008 11:32 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11675
Location: **Translation Matters**
Moving to 1.5 Template overrides.
Thanks for the tip.  :)

Topic made sticky.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Last edited by infograf768 on Mon Jan 07, 2008 11:42 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Sat Feb 16, 2008 5:54 pm 
Joomla! Hero
Joomla! Hero
Offline

Joined: Sun Jun 25, 2006 12:12 am
Posts: 2292
Location: Salisbury, NC/USA (N. of Charlotte)
What is the specific result/display this modification creates? Can you provide a link or screen shot example?

_________________
http://www.200mphJoomla.com - JOOMLA Development & Training
http://www.200mphMedia.net


Top
  E-mail  
 
Posted: Sun Feb 17, 2008 9:53 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11675
Location: **Translation Matters**
I guess it could provide for e-mail cloaking for example in a description.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Sun Feb 17, 2008 11:05 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Nov 06, 2007 7:46 pm
Posts: 40
Exactly or geisha or {loadmodule user1}. Normally content plugins only run on the article text and not on the category and section description. This override runs them on an arbitrary piece of text (section description in the case of the example above)


Top
   
 
Posted: Sun Feb 17, 2008 5:22 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11675
Location: **Translation Matters**
@harikaram

If you could find a way —without hacking core— to be able to use Content plugins in HTML Modules (the former Custom Modules in 1.0.x), this would be a real help for a lot of users as this is impossible as of now.
Many people use this in 1.0.x and migrating is a nightmare for them.
There would be a performance hit, but it is worth it IMO.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Fri Feb 22, 2008 9:26 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Feb 11, 2008 7:32 am
Posts: 2
Jean-Marie, maybe you passed up my recent post: http://forum.joomla.org/viewtopic.php?f=469&t=264545
You'll find the solution you are looking for there.


Top
  E-mail  
 
Posted: Fri Feb 22, 2008 12:29 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11675
Location: **Translation Matters**
GREAT indeed. ;)
Ian has also released since a Custom Content module overpassing the limitation of the HTML module.
This can replace easily the custom module by loading an Article. And as we all know, articles do accept content-plugins...

See:
http://extensions.joomla.org/component/ ... Itemid,35/

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Tue Jun 24, 2008 3:54 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Nov 06, 2007 7:46 pm
Posts: 40
infograf768. funny you mention this. I just found this post again searching joomla site for a solution to this issue. Along the way I found a forum post from back at J1.0.0 about people complaining that J1.0.? turned ON content plugins for modules. The developers claimed that it was just sensible that it should be this way so ironic that it has been reverted. Perhaps a module option would be nice??

The custom module plugin is great. Thank you very much, fedefil.


Top
   
 
Posted: Mon Jul 21, 2008 10:47 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Thu Mar 06, 2008 12:22 am
Posts: 2
Thank you for this post! I have been scouring the web trying to find a way to allow the same function in the com_contact category description. I should have looked here first! This hack works beautifully! No changes were necessary.

In case you might be asking, "why would I need to do this?" My usage will be to incorporate the Contact Information Module 2.2 from http://www.digitalgreys.com/ to allow me to show a location address (and image) in the header of my contacts list of a specified category. Basically, I wanted to be able to show the location information and not have to add it to every contact record of that location.

Thanks again! Works like a charm! :laugh:


Top
   
 
Posted: Mon Jun 01, 2009 1:26 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 14, 2009 8:16 am
Posts: 28
Location: Makassar, Indonesia
Useful topic, dude...

Status subscribe... :D :D


Top
  E-mail  
 
Posted: Wed Jun 17, 2009 8:37 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Oct 28, 2008 7:19 pm
Posts: 54
Yes, still useful!
I think so too. Great! Thanks to all for sharing ....

_________________
http://www.digidog.de | graphics art work, design, post production, motion pictures, web scenarios, cms and framework implementation


Top
  E-mail  
 
Posted: Fri Sep 04, 2009 5:43 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 28, 2009 6:07 pm
Posts: 5
pls who understand what this mean. This is what the page display each time I click on ijoomla news icon inside my components on adminstrator control panel

Site error: the file /home/content/a/f/r/africannewsliv/html/administrator/components/com_news_portal/admin.news_portal.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.


Top
  E-mail  
 
Posted: Sat Sep 05, 2009 3:14 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11675
Location: **Translation Matters**
Journalforum wrote:
pls who understand what this mean. This is what the page display each time I click on ijoomla news icon inside my components on adminstrator control panel

Site error: the file /home/content/a/f/r/africannewsliv/html/administrator/components/com_news_portal/admin.news_portal.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

This has nothing to do with the original topic.

You are using an encrypted component called com_news_portal which requires a specific php script called Ioncube to run. You better talk with whoever sold you this component.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

Quick reply

 



Who is online

Users browsing this forum: davobe, gsw09 and 19 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