Include Content Item plugin
Written by kksou   
Monday, 05 May 2008

This plugin allows you to insert or include one content item into another content item.

Inserting a content item is as simple as {include_content_item 123},
where 123 is the ID of the content item to be included.
Note: The ID of the respective content item is listed in the Content Items Manager (or Article Manager in Joomla 1.5).

This is useful, for example, when you have a block of text that you want to appear across a number of articles or content items e.g. download instructions, copyright notice, images, common links/resources, etc.

If you have installed the DirectPHP plugin, you can also store frequently used PHP code snippets in a content item. This can then be included into other content items. Note: Please make sure that in the Mambot/Plugin Manager, this plugin comes before the DirectPHP plugin so that this plugin is being processed first, followed by DirectPHP.

Download

Joomla 1.0.x: include_content_item_v1.0.zip
Joomla 1.5.x: include_content_item_v1.5.zip

How to install (Joomla 1.0.x)

  1. Download the plugin and unzip it into a folder.
  2. From the Installers menu, select mambots. In the field "Install directory", enter the folder location (where you unzipped the file) and click Install.
  3. From the Mambots menu, select Site Mambots.
  4. Make sure the plugin "Include Content Item" is published. If you see a cross in the Published column, just click on it. It will turn into a green tick.
  5. You are now ready to use this plugin!
  6. To include a content item, use the syntax {include_content_item 123}
    where 123 is the ID of the content item to be included.
    (Note: The ID of the respective content item is listed in the Content Items Manager.)

How to install (Joomla 1.5.x)

  1. Download the plugin and unzip it into a folder.
  2. From the Extensions menu, select Install/Uninstall. In the field "Install directory", enter the folder location (where you unzipped the file) and click Install.
  3. From the Extensions menu, select Plugin Manager.
  4. Enable the plugin (Include Content Item) - make sure there is a green tick in the Enabled column.
  5. You are now ready to use this plugin!
  6. To include a content item, use the syntax {include_content_item 123}
    where 123 is the ID of the content item to be included.
    (Note: The ID of the respective content item is listed in the Article Manager.)

How to use the "Include Content Item" plugin

  1. To include a content item, use the syntax {include_content_item 123}
    where 123 is the ID of the content item to be included.
  2. The ID of the respective content item is listed in the Content Items Manager (or Article Manager in Joomla 1.5).
  3. It is not necessary to publish the content item that will be included.
  4. If you have installed the DirectPHP plugin, you can also store frequently used PHP code snippets in a content item. This can then be included into other content items. Note: Please make sure that in the Mambot/Plugin Manager, this plugin comes before the DirectPHP plugin so that this plugin is being processed first, followed by DirectPHP.


User reviews   Average user ratings:    5.0   (from 1 user)
  1. ssnobben
    May 06, 2008 2:09am
    Excellent work

    This very nice and would be Joomla core features!

Note: You have to be a registered member to leave a comment. Free registration here.

 
< Prev   Next >

Copyright © 2006-2008. kksou.com. All Rights Reserved