Include Content Item plugin

Notice: Undefined variable: url in /var/http://www.zjjv.com//public_html/php-gtk2/templates/xero/html/com_content/article/default.php on line 51

Notice: Undefined variable: prefix in /var/http://www.zjjv.com//public_html/php-gtk2/templates/xero/html/com_content/article/default.php on line 51

" />

Last Updated: 22 June 2015

Hits: 231935

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).

General

Documentation

User Reviews

Powered by JoomlaGadgets

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.

Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x, 1.7.x, 2.5.x and 3.0.x!

The latest version now supports nested include!


Latest Version

v1.0.11 (for Joomla 1.0), v1.5.11 (for Joomla 1.5), v1.6.11 (for Joomla 1.6), v1.7.11 (for Joomla 1.7), v2.5.11 (for Joomla 2.5), v3.0.12 (for Joomla 3.0)

Released Jun 3, 2014

Native version of the plugin for Joomla 3.3.0 is now available!

Special thanks to Jrgen @ Kreativ Fotografi for contributing to the code. .

Also touched up some codes so that jQuery functions work with Joomla 3.3 (used in the readmore/fadein function)

How to use the "Include Content Item" plugin

Displaying the Read More link

There are several options to display the Read More link:

    When you use the tag

    {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.

    If you do not like the default "Read More" link, you can specify your own text to be displayed for the "Read More" link with the tag

    {include_content_item 123 readmore='[Read More]'}

    Important: Please make sure you put single quotation marks surrounding the text.

    If you have specified you your own text to be displayed for the "Read More" link, you can set the css style to be used with the tag

    {include_content_item 123 readmore='View Full Article...' class=style1}

    Instead of text, you can also specify an image to be displayed for the "Read More" link with the tag

    {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}

    For some template (e.g. the default Joomla 1.5 template rhuk_milkyway), it is necessary to have a <br clear=all> after the Read More link. For such cases, add the parameter br=1:





    {include_content_item 123 readmore=1 br=1}



    {include_content_item 123 readmore='[Read More]' br=1}



    If you need a <br clear=all> before displaying a "Read More" image (for example, if you want to have the image aligned to the left), add the parameter br_before=1:

    {include_content_item 123 readmore_gif='/url/of/your/image/file' br_before=1}

Nested Include

The 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.

There is also a safety check for cyclic include, i.e. if article A includes article B, which has a include of article A. In this case, all duplicate entries will not be displayed.

If you do not want any nested include, use the following:





{include_content_item 123 readmore=1 nested=0}



If you want the nested include to stop at level 2, use the following:





{include_content_item 123 readmore=1 level=2}



Allow Multiple Includes of the Same Article

The Include_Content_Item plugin now allows you to include the same article for more than once.

In the previous version, by default, an article will be allowed to include only ONCE per article.

With this version, to include, say article id 123, 3 times in the same article, use the following:





{include_content_item 123}



{include_content_item 123 allow_multiple=1}



{include_content_item 123 allow_multiple=1}



Note the use of the flag allow_multiple=1 for the 2nd and 3rd time - otherwise these 2 tags will be ignored.

Display of Fulltext using Fade-in

If 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}




You are now viewing the "fulltext" portion of the article.

Here's the tag for this this one:

{include_content_item 123 readmore_gif='url_of_readmore_img.gif|url_of_hide_img.gif' fadein=1}

To use your own style for the ReadMore image link, use the following. Don't forget to define the style your_style in your template.





{include_content_item 123 readmore_gif='url_of_showmore.jpg|url_of_hidetails.jpg'
fadein=1 class=your_style}



As a button:

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:

{include_content_item 123 readmore=1 type=button fadein=1}

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 123 readmore='Your ReadMore Link >>>|Your HideDetails Link >>>' fadein=1 type=button}

Include Content Item module

If 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.

Download

Joomla 1.0.x: include_content_item_v1.0.11.zip
Joomla 1.5.x: include_content_item_v1.5.11.zip
Joomla 1.6.x: include_content_item_v1.6.11.zip
Joomla 1.7.x: include_content_item_v1.7.11.zip
Joomla 2.5.x: include_content_item_v2.5.11.zip
Joomla 3.0.x: include_content_item_v3.0.12.zip

How to install (Joomla 1.0.x)

How to install (Joomla 1.5.x)

Version History

version: 1.01/1.51

released: June 21, 2008

Main update: now works with PHP4!

version: 1.02/1.52

Released July 23, 2008

This is an enhancement contributed by Aleksandar Bogdanovic.

Parameter #1: id of the content/article to be included

Parameter #2: 1 means show title, 0 or ignore means don't show title.

Parameter #3: 1 means show title and link. 0 or ignore means don't show title and link.

version: 1.03/1.53

Released July 31, 2008

This is an enhancement requested by Denis.

New features:

v1.0.4 (for Joomla 1.0) and v1.5.4 (for Joomla 1.5)

Released August 17, 2008

This is an enhancement contributed by .

The "Include Content Item" plugin now works with Joom!Fish! (a multilingual content manager for Joomla)

New features:

v1.0.5 (for Joomla 1.0) and v1.5.5 (for Joomla 1.5)

Released December 25, 2008

This is an enhancement requested by .

The "Include Content Item" plugin now allows you to display the "Read More" link.

Please refer to for details of how to display the "Read More" link.

v1.0.6 (for Joomla 1.0) and v1.5.6 (for Joomla 1.5)

Released May 5, 2009

Yes, the plugin now supports nested include!

Please refer to for more details.

v1.0.7 (for Joomla 1.0) and v1.5.7 (for Joomla 1.5)

Released June 14, 2009

Added fadein of fulltext

v1.0.8 (for Joomla 1.0) and v1.5.8 (for Joomla 1.5)

Released Jun 30, 2009

v1.0.10 (for Joomla 1.0), v1.5.10 (for Joomla 1.5), v1.6.10 (for Joomla 1.6)

Released July 8, 2011

v1.0.11 (for Joomla 1.0), v1.5.11 (for Joomla 1.5), v1.6.11 (for Joomla 1.6), v1.7.11 (for Joomla 1.7)

Released October 16, 2011

v1.0.11 (for Joomla 1.0), v1.5.11 (for Joomla 1.5), v1.6.11 (for Joomla 1.6), v1.7.11 (for Joomla 1.7), v2.5.11 (for Joomla 2.5)

Released January 26, 2012

Native version of the plugin for Joomla 2.5 is now available!

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.

Prev

Next

Comments

This plugin doesn't work in Joomla 2.5
I would like to display the article in my content and hide it with 'readmore':
{include_content_item 123 readmore=1 fadein=1}
But the article is always shown and no 'read more' link is displayed.
Please help!

| |

Hi,

Have you tried this on a fresh install of Joomla 2.5 using standard Joomla template?

It might be a conflict with your Joomla template or other plugins/modules. Conflicts between different pluginsm modules and templates are very common in Joomla.

Can you email me the URL of your page so that I can do a view source to gather more clues as to where might be the problem.

Regards,
/kksou

| |

I have tried with template "Beez2 - Default". The same problem.

I have not installed any other plugins, because I'm still at the beginning of the development of my website.

The website is only on my local webserver.

Have you testet the plugin with joomla 2.5?

Thank you for your help.

| |

Of course I've tested with Joomla 2.5.

By the way, in the Joomla editor, did you tell Joomla which portion belongs to the intro and which is the rest of the article? Did you click the "Read More" button at the bottom of the editor to add a "red dotted line" across your article?

Regards,
/kksou

| |

Thank you for your tip. I didn't click the "Read More" Button in my article.
The "Read More" Link now is shown.
But...When I click the "Read More..."-link, the article opens as new site. The fade in doesn't work.

| |

Fade in works with the standard joomla template, but not with my template.
What should I do? Any idea?

Thanks!

| |

Dear sir i have installed the plugin but fadein=1 doesnt work, if i put {include_content_item 25 readmore=1 fadein=1} the full article shows and readmore link also shows (after intro).fadein=1 doesnt work.my website is http://www.zjjv.com/ , i am using in zoo component. but i have tested in normal joomla companent it doest work, also i want Include Content Item Module, the link above doesnt work,my email=impulseindia

@

yahoo.com

| |

Hi is it possible to edit the article within the include_content_item module? Is there a command that I can use to do this?

| |

Hi,

No. This plugin only displays the content of another article. It does not allow you to edit the content.

Regards,
/kksou

| |

hi, I tried to use this plugin.
The component of weblinks which is included by was not available.what was the syntax?
I've done with following:
{include_content_item 1 readmore=1 fadein=1}
or
{index.php?option=com_weblinks&view=weblink&layout=view&id=1}
What's wrong with me?

| |

Hi,

Please just try {include_content_item 123}
where 123 is the ID of the article you want to include.

For your 2 tags above,
1) This is ok if article ID 1 is the one you want to include. For testing purpose, would suggest you don't include readmore=1 and fadein=1 first. Just use {include_content_item 1} and see if it works. If it works, then add in readmore=1. If it still works, then add in fadein=1. This will allow you to find out which part is the one giving problem.

2) Please take a look at the sample tags on this page. There's no tags like this.

Please give it a try one more time and let me know what you see on the screen.

Regards,
/kksou

| |

yup, I have already done it.
{include_weblinks_item 1}
this does not work.
And I am using under J!2.5.3.
Would be the thing around SEO??? Joomla automatically remove the url to the native language. hmm...

| |

Hi,

1) You wrote {include_weblinks_item 1}
It should be {include_content_item 1}
unless you are using other plugins.

2) Please log on to your backend as administrator. Go to Article Manager. Please check there's indeed an article of ID=1. It could be that there's no article of ID=1.

Regards,
/kksou

| |

1) done it -> disappeared raw code.but does not show up link item.

2)Article and Weblink had an ID of 1 each other...

| |

For your (2), may I know what is the Weblink that you're referring to?

Also, can you give me the URL of the article 1 that you refer to? Just want to do a view source to get more clues as to where might be the problem.

Regards,
/kksou

| |

I wanted to do like that
include
an article component

| |

this is url that due to be Administrator.

index.php?option=com_content&view=article&layout=edit&id=1

The url of frontend has renamed by alias. I just would like to include from the weblinks component to the Article component.

| |

Please note that this is a content plugin. As the name suggests, a Joomla content plugin is for us within a Joomla article.

The "Include Content Item" plugin allows you to include one Joomla article into another Joomla article - both are Joomla articles.

A content plugin will not work with the weblinks component. It's designed to be use within Joomla articles only.

Regards,
/kksou

| |

I want create content in joomla became dynamic how do i can?

| |

Do you want to elaborate a bit more so that I know how to help.

Regards,
/kksou

| |

Hi kksou,

Is it possible that the plugin show only articles published and not display the articles expired or pending?

Thank you for your answer.

| |

Yuju

:eek:

..... Is there anybody there?...

:-*

Quoting soscar:

Hi kksou,

Is it possible that the plugin show only articles published and not display the articles expired or pending?

Thank you for your answer.

| |

Hi,

For those questions that I have the answers, I will always reply immediately.

For your case, I didn't reply because I really don't know how to help you.

If you take a look at the history, starting from v1.5.10 (for Joomla 1.5), the article will only be included if it is published. If you unpublish the included article, the article will NOT be displayed.

I've just tested the plugin again. It does indeed test for whether an article is published or not. If it's not published, the article will not be included.

I do not have access to your backend. There's no way I can do any debugging. That's why I didn't reply anything...

Regards,
/kksou

| |

Hi kksou,

thanks for your clear answer. I know that the plugin works well when an article is published. The problem is that Joomla has MORE STATES than published or unpublished. Are EXPIRED or PENDING and not displaying them, Joomla works fine but the plugin does display and that's not right.

You can do a test by changing the dates on an article to expire.

Regards

| |

Hi,

Yes, the current version of the include content item tests for only the status of published and unpublished. It tested no other fields. I thought by right when your article is in the EXPIRED or PENDING mode, the Joomla system should automatically set it to be in the unpublished mode (it makes sense, right), but apparently this is not the case.

This plugin has been released for almost 4 years. And you are the first one with this request!

If you have used some of my other plugins, you would know that most of my plugins are light-weight plugins. I prefer simplicity and less codes (e.g. the googleMaps plugin). There are many other competing plugins out there with a lot more features - but heavier codes and usually more difficult to use.

Do you know a bit of PHP? If yes, you can modify the code to test the articles for EXPIRED or PENDING. Let me know if you need any help in this and I'll see what I can do.

Regards,
/kksou

| |

Hello,

I made ??the modifications to check dates and control articles expired or pending. If you want, I put it them here. Not pose much overload code.

Regards

| |

Hi,

That's great!

If you're willing to share with others, please email me your modified codes. I will incorporate your codes into the new version - and make any modification so that it will work with all versions of Joomla (Joomla 1.0, 1.5, 2.5, etc.)

Warm Regards,
/kksou

| |

Of course,
tell me your email address and I will be happy to send it.

I take this opportunity to say that this plugin is very useful for me.

Thank you very much
Quoting kksou:

Hi,

That's great!

If you're willing to share with others, please email me your modified codes. I will incorporate your codes into the new version - and make any modification so that it will work with all versions of Joomla (Joomla 1.0, 1.5, 2.5, etc.)

Warm Regards,
/kksou

| |

Hi! Thanks for the plugin.

Is there a way that I can modify the plug-in so that other content plugins in the linked article are called?

| |

hi,love your plugin but one question. what if i just want to display the title without the intro text how do i go about it.

| |

Hi,

Please refer to the section "How to use the "Include Content Item" plugin" above:
http://http://www.zjjv.com///php-gtk2/Joomla/Include-Content-Item-plugin.php#how_to_use

To include only the fulltext (or maintext) of a content item, use the syntax {include_fulltext 123}

Regards,
/kksou

| |

Hi KKsou!

Thanks for your work but it doesn't work on joomla 1.5.22

I tried the simple 123 it did't work.

Ciao!

| |

Hi,

You can use 123 if there's an article ID of 123 in your joomla database.

To test the plugin, create a new article and take note of the article ID from the Article Manager. Suppose the new article ID is 567, then you use
include_content_item 567

to include that article.

Please give it a try and let me know if it works, ok?

Regards,
/kksou

| |

Hi KKsou!

Thanks for your quick reply, I like you!

I do not have any article with the ID "123" should I create one? And how?I fund a temporary solution with Iframe code, but I'd like to try your.

Thanks!

| |

Hi,

Yes, you need to create a new article. Then in the Article Manager, you should be able to find the article ID associated with your new article (usually it's on the rightmost column).

Just replace 123 with the article ID of your new article and the plugin should work.

Regards,
/kksou

| |

Thanks for your reply. i have ID article from 1 to 55, so when I created a new article it's ID won't be 123 but 56. My question :
- how can I create an article with his ID= 123 (should I do that from the database?, joomla give an auto. ID I can't modify it).

(I understood 105% that when I m using the code I have to change 123 with the ID of the article I want to load.)

| |

Hi,

You do not need to create an article of ID=123.

If you create a new article with ID=56, to include this article, you use:
include_content_item 56

It's not necessary change the ID to 123.

To make things clearer, you can try the following:
1) Create a new article. Suppose the ID of this article is 56. Put in this article a string such as "This is from article 56".

2) Create another new article. Suppose the ID of this article is 57. Put in this article the following:
This is article 57.
{include_content_item 56}

Now load article 57. You should see the following:
This is article 57.
This is from article 56

Regards,
/kksou

| |

Actually I understood it before, but it did not work but I gave another try today, and it is working! I guess I did confuse itemid ID with content ID. Thanks for your patience and your work!

Ciao

| |

Thank you! This is a great simple plugin.

| |

I have added a article displaying text to another article displaying a background image. Both are showing on the front end, however the text cannot be seen because it is located behind the article with the background image and I would like it to be on top of the image. Any suggestions on how I can accomplish this?

| |

Hi,

Sorry for the late reply, as I don't have a direct solution for you.

But I think it can be done using CSS positioning. Put some CSS styles in your included article so that the z-position is the first in the layer.

Try to ask one of your friends who are good at CSS, and they should be able to help you with this in less than 5 minutes.

Regards,
/kksou

| |

Hi,

I am using this plugin in Joomla 1.5 and it installed and worked just fine for the first page I tried it on. But I noticed that any article that uses a plugin breaks and just displays that plugin call in plain text. Any ideas on what is needed to render other plugins?

| |

Loving the plugin, but need help with one thing.

I have Joomla 2.5 and have installed the include content plugin. Everything works, but I need to reduce the padding (appx 2 spaces) between the title and the content when I use the {include...123 1} code. It shows up correctly, the title is just too far above the content.

Any solutions or tips?

| |

Hi,

Enclose the paragraphs to be included with some CSS tags, then add or modify corresponding css in your joomla template to adjust the padding.

Regards,
/kksou

| |

:D

Hello, I've just tested your plugin can also use a menu-id? wants to view a blog post perhaps {include_menu id xyz} ? Greetings from Berlin

| |

Hi,

No. As the name suggests, it's for including a content article by specifying the content id.

Regards,
/kksou

| |

Hi

I have tried your extension and for some reason have had no luck. I would like to use the fadein=1 feature but I have not been able to make it work. Here are a few details: Using latest version of Joomla, Artisteer template. I insert the syntax {include_content_item 61 readmore=1 fadein=1} What I see when I view the article is the intro text, a read more button (which is not my default), and all the text after the read more button. I have tried to use readmore='read more' and I still get the button. I have uninstalled and re-installed. I would appreciate any advice you can offer. Thanks

| |

Hi,

I suspect it's due to conflicts with your Artisteer template.

1) The only way to ascertain this is to install a fresh install of Joomla somewhere on your site and then install only the Include Content Item plugin. This will allow you to test if the plugin works on your machine at all.

2) If (1) works, then try change the default template to your Artisteer template. If it now doesn't work, you know it's a conflict.

3) Check (or ask the author) if Artisteer template uses the jQuery library.

If (3) is yes, let me know.

Regards,
/kksou

| |

Thanks for your quick reply. I will check into what you suggested. Do you know of any other extensions that will allow me to fade the article in in case it is a conflict with Artisteer?

| |

Hi KKsou
Excellent plugin

:lol:

, I need one help please

:sad:

.

The plugin is working perfectly in 2.5 we have included below code and it works perfectly.

{include_content_item 16}
{include_content_item 113}

But in our articles we have used another content plugin called "Tabs & Sliders" from Joomla Works. The tabs plugin code {tab}some content{tab}some content{/tabs} is not working after your plugin is enabled. Can you please help. Is it a bug or is there any way we can solve this. Please help.

Thanks in advance your plugin is great.

Regards
Amit Patekar

| |

Quoting kksou:

Hi,

I suspect it's due to conflicts with your Artisteer template.

1) The only way to ascertain this is to install a fresh install of Joomla somewhere on your site and then install only the Include Content Item plugin. This will allow you to test if the plugin works on your machine at all.

2) If (1) works, then try change the default template to your Artisteer template. If it now doesn't work, you know it's a conflict.

3) Check (or ask the author) if Artisteer template uses the jQuery library.

If (3) is yes, let me know.

Regards,
/kksou

Hi,

Yes they do use the Jquery library. If I an unable to get your extension to work with their template to you know of any alternative ways to accomplish the fadein?

| |

Hi,

1) Go to the folder:
[Joomla Root Folder]/plugins/content/include_content_item/include_content_item

2) Edit the file include_content_item.lib.php

3) Goto line: 316. You should see something like this:
if ($has_readmore && preg_match('/fadein=1/', $matches[2])) $output .= $this->add_jquery_lib();

4) Comment this line by adding a # in front:
#if ($has_readmore && preg_match('/fadein=1/', $matches[2])) $output .= $this->add_jquery_lib();

5) Save and close the file.

Reload the page to see if the plugin works ok now.

The problem for your case is that jQuery is being loaded twice. The above comment is to make sure that jQuery is loaded only once by your template. The Include Content Item plugin will just use the jQuery from your template.

Let me know if it works, ok?

Regards,
/kksou

| |

Hi,

As for your other questions, not familiar with other plugins. You may need to check them out in joomla.org.

Regards,
/kksou

| |

Hi KKsou:
I got the solution, the problem was content plugin called "Tabs & Sliders" from Joomla Works was not working after using your plugin. But just reordering the plugins priority in Plugin manager solved the problem. Both the plugins are great.

Thank you very much

| |

I tried your solution but unfortunately it did not work. I also tried it using another template. There is another module that I tried that is not working so it must be some thing to do with my settings or the install itself.

Thanks for your help I will keep looking for a solution.

| |

When retrieving article for joomfish language you must set also state = 1

if ($num_rows>0) {
$rows = $database->loadObjectList();
$r = new stdClass();
foreach($rows as $item) {
$field = $item->reference_field;
$r->$field = $item->value;
}
$r->state=1;
$use_default = 0;
}
Because there is this control after:
if ($state==0) return '';

| |

Hi Fabio,

Thanks much for sharing!

Will incorporate your codes in the new version.

Thanks and Regards,
/kksou

| |

At the end of the method Plugin_IncludeContentItem just before the line "return $output;" include the line "$output = JHTML::_('content.prepare', $output);" like:

$output = JHTML::_('content.prepare', $output);
return $output;

This allow to use other plugins inside the included article like jumi, pocha plugin slideshow, ...

Visit for example:
http://www.oshotao.it/index.php/en/photo-gallery-new/category/9-singing-into-silence-2012.html

Best regards!

Fabio Vitale

| |

Quoting Fabio Vitale:

At the end of the method Plugin_IncludeContentItem just before the line "return $output;" include the line "$output = JHTML::_('content.prepare', $output);" like:

$output = JHTML::_('content.prepare', $output);
return $output;

This allow to use other plugins inside the included article like jumi, pocha plugin slideshow, ...

Visit for example:
http://www.oshotao.it/index.php/en/photo-gallery-new/category/9-singing-into-silence-2012.html

Best regards!

Fabio Vitale

Sorry I forget that this works for Joomla 1.5.23

| |

Hi! Plugin works fine just "out of the box" (J! 2.5.6). Just one question - can I display _result_ article with pagebreak?

| |

What do you mean by "pagebreak"? Could you please elaborate?

Regards,
/kksou

| |

Hello, your plugin works perfectly!
I would include several items side by side in my article, but they move one below the other! How?
Thank you for your help!

| |

Hi,

1) First find a plugin from joomla.org that allows you to enter HTML.

2) Then use the standard HTML table to create 2 or 3 columns (depending on what you want), and put each include_content_item tag within each column.

Please give it a try and let me know if it works.

Regards,
/kksou

| |

Quoting EO_Dev:

Hi,

I am using this plugin in Joomla 1.5 and it installed and worked just fine for the first page I tried it on. But I noticed that any article that uses a plugin breaks and just displays that plugin call in plain text. Any ideas on what is needed to render other plugins?

It is a very good point. Any changes in this ability for joomla 1.5?

| |

I use {youtube} includes a lot and unfortunately it doesn't work within {include_content_item}
reordering plugins doesn't help either

| |

Hi,

Please try Fabio's tips below.

Also, by default, if you put the order of Include Content Item plugin as 1 (DO NOT put 0), and then your youtube plugin as 2, 3 or higher, it should work.

Please give it a try one more time and let me know if it works, ok?

Regards,
/kksou

| |

By the way, if you're using some cache system, please make sure you clear the cache.

Otherwise, it might appear that it's not working because you're using the cached version.

Regards,
/kksou

| |

Quoting vladimir22:

I use {youtube} includes a lot and unfortunately it doesn't work within {include_content_item}
reordering plugins doesn't help either

Sorry if I enter in your discussion, but I have manually modify a plugin to work with others plugin, belowe the solution:

I use Joomla 1.5.13

At the end of the method Plugin_IncludeC ontentItem just before the line "return $output;" include the line "$output = JHTML::_('content.prepare', $output);" like:

$output = JHTML::_('content.prepare', $output);
return $output;

This allow to use other plugins inside the included article like jumi, pocha plugin slideshow, ...

Visit for example:
http://www.oshotao.it/index.php/en/photo-gallery-new/category/9-singing-into-silence-2012.html

Best regards!

Fabio Vitale

| |

Hi Fabio,

Thanks much for sharing the tips.

By default, all plugins are processed sequentially according to the orders as listed in the Plugin Manager.

So if you order the Include Content Item plugin before that of other plugins (e.g. put this as 1. DO NOT put as 0. And make sure the other plugins that you want to process is 2, 3 or bigger.) In this way, the article will be included first, then followed by processing by your other plugins.

Regards,
/kksou

| |

Quoting kksou:

By the way, if you're using some cache system, please make sure you clear the cache.

Otherwise, it might appear that it's not working because you're using the cached version.

Regards,
/kksou

Ok, thank a lot for the tip.

When I try it let you know

Regards

| |

Quoting Fabio Vitale:

Quoting kksou:

By the way, if you're using some cache system, please make sure you clear the cache.

Otherwise, it might appear that it's not working because you're using the cached version.

Regards,
/kksou

Ok, thank a lot for the tip.

When I try it let you know

Regards

It works.

Thanks

| |

Quoting kksou:

Hi,

Please try Fabio's tips below.

Also, by default, if you put the order of Include Content Item plugin as 1 (DO NOT put 0), and then your youtube plugin as 2, 3 or higher, it should work.

Please give it a try one more time and let me know if it works, ok?

Regards,
/kksou

Thanks a lot! That was the reason - include_content_item was set to 0! After I had changed it to 1 everything clicked in to place!

| |

Hello there,
I have trouble getting your plugin to work. I really hope you can help me, this plugin is exactly what I need.
Someone else on this page commented about it, but I'm using a different version of Joomla and it is not clear to me how he did get it to work.

The plugin installed succesfull, but when I insert a code (I've tried several different ones) it will not show a 'read more' button, but the whole text/article directly.
Any ideas? I'm using Joomla 1.5.25; trying it on a fresh install is not an option (too many customizations, would take weeks to rebuild).

Thanks in advance!
-S

| |

Hi,

Sorry for the late reply. Didn't answer anything because you did not provide enough info. There are so many possibilities and I do not have a good answer for you.

There's one thing you might want to take a look. You might have entered everything into the Intro text area and nothing into the Readmore text area.

For details, please refer to here: Joomla 1.5 Intro text and Readmore text

Regards,
/kksou

| |

Hi,

I tried this nice plugin in Joomla 3.0 with the following multilangual setup: http://http://www.zjjv.com///multi-lingual-steps-by-steps.html

This did not work because of wrong database queries. The solution for me was as follows: modify /plugins/content/include_content_item/include_content_item/include_content_item.lib.php

* remove lines 159 if($lang!='') {
till line 189 if ($use_default) {

* change line 190
$query = "SELECT catid, title, introtext,`fulltext`, state"
==>
$query = "SELECT sectionid, catid, title, introtext,`fulltext`, state"

* change line 219
$link = JRoute::_(ContentHelperRoute::getArticleRoute($content_id, $r->catid, $r->sectionid));
==>
$link = JRoute::_(ContentHelperRoute::getArticleRoute($content_id, $r->catid));

Now the plugin works just fine!

:roll:

Kind Regards from the Netherlands,

NL8

| |

SORRY the second one just the other way around!..

* change line 190
$query = "SELECT sectionid, catid, title, introtext,`fulltext`, state"
==>
$query = "SELECT catid, title, introtext,`fulltext`, state"

Quoting NL8:

* change line 190
$query = "SELECT catid, title, introtext,`fulltext`, state"
==>
$query = "SELECT sectionid, catid, title, introtext,`fulltext`, state"

| |

Hi, KKsou.
Very useful plugin and works fine. But there was a problem. This is in Joomla 1.7. We have used another plugin {loadposition ...} (it substitutes module) in Article 123.
After processing plug {include_fulltext 123} line "{loadposition ...}" remains in the text of article.
How to make a full integration (and the module as well)?
Or how to make a plugin to {include_fulltext 123} did not leave the line "{loadposition ...}" in the article?

| |

Hi,

Please refer to the article "Ordering of Joomla plugins"

What you need to do is to switch the order of the 2 plugins in the Plugin Manager and it should work.

Please give it a try one more time and let me know if it works.

Regards,
/kksou

| |

Many thanks for your quick help! The plugin now works correctly, the module in the article substitutes.

| |

Hi, KKsou.
Again need your help.
This is in Joomla 1.7. We have used another plugin {loadposition ...} (it substitutes module) in Article 123.
The site is in three languages.
In two languages plugin works fine. But in the third - the bad. After processing plug {include_fulltext 123} - he cuts {loadposition ...}. Article is identical in all three languages.
Help please.

| |

Sorry to bother you. Your plugin works fine. It was in the settings of the module, and it is - in its binding to the item language menu.

| |

hi,
i've upgraded my site from 2.5.8 to 2.5.9 and now it doesnt seem to work any longer.. instead of actually including the item it just puts the text "{include_content item }". More detail: I have an article with multiple include_content_item lines. Previously all I had to do was to add another line and then save the article. But now any line I add is ignored and instead it just puts the text "{include_content_item ".

| |

Quoting andres22:

hi,
i've upgraded my site from 2.5.8 to 2.5.9 and now it doesnt seem to work any longer.. instead of actually including the item it just puts the text "{include_content item }". More detail: I have an article with multiple include_content_item lines. Previously all I had to do was to add another line and then save the article. But now any line I add is ignored and instead it just puts the text "{include_content_item ".

sorry forgot..
Thanks for having a look, this really puzzles me..

| |

Quoting andres22:

Quoting andres22:

hi,
i've upgraded my site from 2.5.8 to 2.5.9 and now it doesnt seem to work any longer.. instead of actually including the item it just puts the text "{include_content item }". More detail: I have an article with multiple include_content_item lines. Previously all I had to do was to add another line and then save the article. But now any line I add is ignored and instead it just puts the text "{include_content_item ".

sorry forgot..
Thanks for having a look, this really puzzles me..

OOPS... somehow the include_content_item plugin got disabled (sorry about this), so go to plugin manager and enable. problems solved. Thanks.

| |

Hi,

Thanks for the update. Glad it works now.

Yes, when you see the tag appearing on screen, it means that the tags have not been processed at all. In this case, the first thing I'll look is to go to the Plugin Manager to make sure that it's enabled.

Regards,
/kksou

| |

Hi kksou,
I am using your plugin for while on web page based on Joomla 1.5. One of the instance is to show the artickl with Terms of Service in the Virtuemart Component.
Now I try to develop new site based on Joomla 2.5 and realized that your plugin does't work in the way described above. In Virtuemart I can see the raw code only instead of artickle.
Have you got any idea how to force the plugin to work with Joomla 2.5 and Virtuemart?
Regards, kbo

| |

It does not work within the additional information field of contacts.

Do you know why, have a solution?

| |

Hi,

This is a content plugin. As the name suggests, it's supposed to work within a Joomla article.

That's why it does not work with contacts.

Regards,
/kksou

| |

Hi, I have the web site www.sgsuderwich.de and I would like to have the page http://sgsuderwich.de/index.php/was-passiert-diese-woche-in-der-sg/eventsnachwoche/2013/03/08/-.html at the start page. How do I have to make this? The link has ID 677.

| |

Hi,

From the error message, "Warning >>> there is no article with id = 677"

It means there's no article with ID=677.

When you say "The link has ID 677", what do you mean by "the link".

Note that this is a "Include Content Item" plugin - it's purpose is to include one content article into another. It can only include a content article. And the ID refers to the ID of that content article.

To be sure, you can go into your backend mysql "jos_content" table to check if there's an article with ID=677.

Regards,
/kksou

| |

Quoting kksou:

Hi,

From the error message, "Warning >>> there is no article with id = 677"

It means there's no article with ID=677.

When you say "The link has ID 677", what do you mean by "the link".

Note that this is a "Include Content Item" plugin - it's purpose is to include one content article into another. It can only include a content article. And the ID refers to the ID of that content article.

To be sure, you can go into your backend mysql "jos_content" table to check if there's an article with ID=677.

Regards,
/kksou

I only want to display the calendar at the start page with the text at the start page. Joomla says the calendar has the ID 677.

| |

Hi,

You said "Joomla says the calendar has the ID 677".

So, from where did Joomla tell you the ID? If you take a look, I believe it's not from the Article Manager or jos_content (if you're looking at the mysql database directly).

If it's not from Article Manager or jos_content, then it won't work with this plugin. This plugin will only include content articles.

Regards,
/kksou

| |

Hi ,

I have a problem with this plug in I use hotjoomlatemplates and read more and hide function is not working correctly. include_content _item shows all article with read more button but function itself not working didn't hide what is efter the redmore button :)..do you have any idea ?

Prob

| |

if I use just simple {include_content_item 5}
I get error - 0 0 - SQL=SELECT sectionid, catid, title, introtext,`fulltext`, state FROM jm_content WHERE id=5

how to solve? Joomla 3.0

| |

Hi,

The 5 is the item ID as indicated in the Article Manager.

Please double check in the Article Manager if there is an article with ID=5.

Regards,
/kksou

| |

Quoting kksou:

Hi,

The 5 is the item ID as indicated in the Article Manager.

Please double check in the Article Manager if there is an article with ID=5.

Regards,
/kksou

yes, the article is defnetly there, I read on some forum, maybe here but i can not find it that this is due to "section" listing or something, I dont have table in my DB called section, i guess it has been removed. I dont know why it can not find article though i have it there... I have article assigned to category that is not assigned to menu item (is hidden) but article is visible... is it OK?

| |

Hi,

I re-read your post again and realize where's the problem: you're using Joomla 3.0 which no longer uses section_id.

I have not release include_content_item plugin for Joomla 3.0. I will try to do it this month. Currently it supports only up to Joomla 2.5.

Will let you know when the version for Joomla 3.0 is ready, ok?

Regards,
/kksou

| |

Quoting kksou:

Hi,

I re-read your post again and realize where's the problem: you're using Joomla 3.0 which no longer uses section_id.

I have not release include_content_item plugin for Joomla 3.0. I will try to do it this month. Currently it supports only up to Joomla 2.5.

Will let you know when the version for Joomla 3.0 is ready, ok?

Regards,
/kksou

AWESOME!

| |

Hi, thanks for your job with this great tool.
I'm having problems to include in an article the following:
{include_content_item 77}
{include_content_item 74}
{include_content_item 76}
Only the first appears.

| |

Hi,

Can you please double check what's in article ID 74 and 76? Is there anything in there that prevents the article from appearing?

For testing purpose, try change article 74 to something simple, like 'test 74' and see if the string appears.

Regards,
/kksou

| |

Quite a very usefull plug-in !

but it seems that it's does not manage access permission.
example :
A -> public article
B -> restricted article (to registered member only)
A include B

I want all people to access article A, but only raegistered can see the B content inside. But B article is always shown.
(when I show the list of article as visitor, B is not displayeed, but thru the inclusion, yes).

| |

Hi,

For the case that you've described, I think there are many other plugins in joomla.org that can achieve what you have in mind.

What I need at that time is just a simple, super light-weight plugin that allows me to include a footer message to be displayed in every page of my article. I couldn't find one in joomla.org - all those are too complicated. That's why I wrote this plugin. I thought this would be useful to others too, that's why I decide to share this in joomla.org.

I want a super light-weight one - that's why this does not check anything - it just displays the article indicated by you.

There are many other complicated ones in joomla.org. I'm sure you can find one that suits your need.

Regards,
/kksou

| |

Quoting Duncan74:

Quite a very usefull plug-in !

precisions : Joomla 2.5.9

| |

I need a functionality that allows me to embed an article (with borders, author, date/time etc.) into another article page. I need it to appear as a forum ONLY accessed by admin to be able to post periodic updates on each page pushing down the previous. As a forum. Can this assist? Please advise. Many many thanks in advance. Rob

| |

Love the plugin, I'm using joomla 2.5. Is there a way to make the plugin show the intro image when it pulls through the intro text?

| |

Hi kksou,
I'm using this plugin in K2 articles Joomla 2.5 and I'm very sattysfied with it

:-)

Now I want to start new website on Joomla 3.1.5 and also use this plugin.
Do you have any solution yet?
In April you mentioned about Joomla 3.0...
Best regards

| |

Great plugin. PROBLEM TO BE SOLVED, PLEASE: I need to display the name of the article and the intro in Joomla 1.7/2.5, I don't need the intro picture. It shows the picture, no mater whaat line I write. How can I get rid of the article intro picture?

| |

Hi,

This is a very simple plugin that simply grab everything in the "intro" field and display it.

So if your intro includes the intro picture, it will display it. If you do not want the picture to be displayed, then you have to move the picture from the "intro" field to the "fulltext" field.

Regards,
/kksou

| |

We were using your plugin extensively in Joomla 2.5, but after upgrading to 3.4 we're finding that this plugin doesn't seem to work with K2 Items anymore...is there a way to get the plugin to pull form a K2 Item?

| |

Hi Mark,

Would like to help. But I don't use K2 and not familiar with the internal table structure of K2.

May I know how you use Include Content Item with K2 when you're using Joomla 2.5?

By the way, I used this plugin for my own website. I thought it's quite useful, so I decide to share it with others via joomla.org. Did you try other plugins in joomla.org that might work with K2?

Warm Regards,
/kksou

| |

Hello kksou,

First congratulations for this great product.

I installed the plugin on Joomla 3.4.4 and it performs well, BUT I have a problem. My PHP code is running normally and the article requested is displayed, but the plugin (Shortcode Ultimate) inserted in Article refuses to work. It should display a video on Vimeo. I tried with others (AllVideos, etc.) and the problem is the same. Do you have an idea of the problem?

Warm regards

Pierre

| |

Quoting Pierre:

Hello kksou,

First congratulations for this great product.

I installed the plugin on Joomla 3.4.4 and it performs well, BUT I have a problem. My PHP code is running normally and the article requested is displayed, but the plugin (Shortcode Ultimate) inserted in Article refuses to work. It should display a video on Vimeo. I tried with others (AllVideos, etc.) and the problem is the same. Do you have an idea of the problem?

Warm regards

Pierre

Where did you get the download? The latest I see is 3.0, and the 'Details' link for 3.3 just gives me an SQL error. Would you happen to have the ZIP?

| |

I've make 2 fixes for use include_content_item on other components, and to fix on non joomfish multilingual sites, Can I send it to the author?

| |

Dear Agostino,

Yes, that would be great! I'm sure many people will benefit from your sharing!

You can email them to me. (Note: have just sent you an email to. So you can reply direct to that email.)

Thanks in advance for your sharing!

Warm Regards,
/kksou

| |

RSS feed for comments to this post

Add comment

JComments