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}, 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. The latest version now supports nested include! Please refer to here for more details. Latest Version v1.0.8 (for Joomla 1.0) and v1.5.8 (for Joomla 1.5) Conforms to joomla.org guidelines. How to use the "Include Content Item" plugin
Displaying the Read More linkThere are several options to display the Read More link:
{include_content_item 123 readmore=1}
the intro text will be displayed, followed by the default "Read More" as defined by your template. Note that if there is no text in the main text, there will be no "Read More" link displayed. {include_content_item 123 readmore='[Read More]'}
Important: Please make sure you put single quotation marks surrounding the text. {include_content_item 123 readmore='View Full Article...' class=style1}
{include_content_item 123 readmore_gif='/url/of/your/image/file'}
Important: Please make sure you put single quotation marks surrounding the url of the image file. Although it says "readmore_gif", you can use any browser supported image format such as jpg or png. You can also add the parameter align=top, align=middle or align=bottom to align the image: {include_content_item 123 readmore_gif='/url/of/your/image/file' align=top}
{include_content_item 123 readmore_gif='/url/of/your/image/file' br_before=1}
Nested IncludeThe Include_Content_Item plugin now supports nested include! That is, if you have article A that includes article B, which has a include of article C, both B and C will now be included in A.
{include_content_item 123 readmore=1 nested=0}
{include_content_item 123 readmore=1 level=2}
Display of Fulltext using Fade-inIf you use the default Joomla "Read More" link, when the user clicks on the link, Joomla will divert the user away from the current page and display the full article. If you would like the user to stay on the same page, use the fade-in option. When the user clicks on the "Read More" link, the fulltext (or maintext) will be displayed as fade-in right inside the same page (without any reloading of page).
{include_content_item 123 readmore=1 fadein=1}
There are three ways to display the fadein:
Sample 1: Click the ReadMore link to display the full article...
[Read more...] You are now viewing the "fulltext" portion of the article. Here's the tag for this this one:
You can set the text label for the ReadMore links, for example, you might want to set this to your own language. Note that you need to define the text labels for both the show and hide link. The text labels are delimited by '|' (the vertical bar). Please also enclose these in single quotes (NOT double qutoes).
Sample 2: Click the ReadMore link to display the full article...
Your ReadMore Link >>> You are now viewing the "fulltext" portion of the article. Here's the tag for this this one:
To use your own style for the ReadMore link, use the following. Don't forget to define the style
{include_content_item 123 readmore='Your ReadMore Link >>>|Your HideDetails Link >>>'
Sample 3: Click the ReadMore image link to display the full article... ![]() You are now viewing the "fulltext" portion of the article. Here's the tag for this this one:
To use your own style for the ReadMore image link, use the following. Don't forget to define the style
{include_content_item 123 readmore_gif='url_of_showmore.jpg|url_of_hidetails.jpg'
Sample 4: Click the ReadMore button to display the full article... You are now viewing the "fulltext" portion of the article. Here's the tag for this this one:
As in text link, you can set the text label for the ReadMore/Hide buttons: Sample 5: Click the ReadMore button to display the full article... You are now viewing the "fulltext" portion of the article. Here's the tag for this this one:
Include Content Item moduleIf you wish to include a content item into a module (as oppose to another content item), use the following module which I've written: Include Content Item Module. Include a content item into another content item => use this plugin. Include a content item into another module => use the Include Content Item Module. Be a SponsorIf you find this plugin useful, Secure Payments by PayPal. DownloadHow to install (Joomla 1.0.x)
How to install (Joomla 1.5.x)
Version History
Released July 23, 2008 This is an enhancement contributed by Aleksandar Bogdanovic. Parameter #1: id of the content/article to be included Released July 31, 2008 This is an enhancement requested by Denis. New features: This is an enhancement contributed by Dr. J.R.Halon. The "Include Content Item" plugin now works with Joom!Fish! (a multilingual content manager for Joomla) New features: This is an enhancement requested by Rexkramer. The "Include Content Item" plugin now allows you to display the "Read More" link. Please refer to here for details of how to display the "Read More" link. Yes, the plugin now supports nested include! Please refer to here for more details. Added fadein of fulltext FAQ (Frequently Asked Questions)Q1: I want to include a content item into a module (as oppose to another content item). What should I do? A1: Use the following module which I've written: Include Content Item Module. User reviews Average user ratings: 4.0 (from 7 users) Note: You have to be a registered member to leave a comment. Free registration here. |
||
| < Prev | Next > |
|---|
Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla Plugins
Joomla Components
Joomla Gadgets
- Google Image Search
- Google News Search
- Wikipedia Search
- Google Book Search
- Google Video Search
- Google Currency Converter - AJAX version
- Yahoo Currency Converter - AJAX version
- Yahoo Stock Quote (AJAX module version)
- Yahoo Stock Quote (AJAX component/ module version)
- googleSearch_cse component
- googleSearch_cse module
- googleMaps plugin









May 06, 2008 1:09am
This very nice and would be Joomla core features!
December 28, 2008 10:47am
see title – all said!!! ;-)
February 04, 2010 6:34am
followed instructions and the front-end of my site just shows the actual code {include_content_item 43}. Any reason this is not working?
February 04, 2010 7:41am
1) Please try it on a fresh install of joomla. This will allow you to know if it works on your machine at all.
2) If it works, it could be conflicts with your other plugins.
Regards,
/kksou
p.s. Please make sure that the plugin is enabled.
February 26, 2010 10:34pm
@Buddy
That's usually caused by the plugin/component not being enabled. Check and make sure that the component/plugin is actually enabled in module/plugin manager.
April 06, 2010 5:53am
Hi kksou,
thanks for your great work! but; is it possible, that your plugin remembers if a readmore was shown/hidden after displaying another article?
I use your plugin to insert a login form (loaded via loadposition btw (; ). Now, if the user logs in, the page is reloaded and it would be great, if your plugin remembers, that it was showed the readmore content before. any ideas?
thanks,
tobi
August 13, 2010 12:51pm
ˇHi kksou, excelent work you've done here! I have a few questions, i'm a n00b to Joomla and i want to learn more about all of it. First: it is mandatory to insert a "read more..." link using the "read more" button both with Joomla! or the JCE in order to display the "read more..." link and article? when i omit the use of the "read more..." the fulltext gets inserted but no button or link appear, it looks like a full article instead of 2 articles divided by the {content_item}. Second, i want to show just a line of text instead of a button, i remove the parameter type=button but still shows as a button instead of a link of plain text, where do i change or fix that option? ˇThanks in advance!