Content Item Module

Filed under: Uncategorized — Tags: , , , , — Eike @ August 6, 2007 7:37 pm

module for Joomla 1.0.x www.joomla.orgsee this thread in the forum: http://forum.joomla.org/index.php/topic,36326.msg201327.html#msg201327
and here: http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,498/Itemid,35/

“This modules allows for publishing content items or articles in areas other than mainBody(). Choose if you want to display a single item, all items from a category, all items from a section, or a number of content items/categories/sections specified by a comma separated list of ids. Simply enter the content item ID in the module’s parameters field, assign a position to the module, and publish it. You can copy the module and assign a different name, position and contentitem id to the copy. Also includeds a “Read more” link option. With the “merge items” option you can merge multiple content items (/categories/sections) into one document for print and pdf. It will also create a table of contents for merged items (if you want to).”

Download: Content Item Module for Joomla 1.0.xx

Oct. 18/07:

Download: mod_contentitem – the same as above, but should fix the problem from comment #18. If no complaints turn up within the week this will replace This replaces the above download.

Dec 15/07

Download: mod_contentitem.zip – in this version the ordering system has been changed and improved (I hope). This ist not fully compatible with the previous versions, if you overwrite an existing installation of the module you’ll have to re-enter the ordering information for the items. Update: There was a typo in the XML-File (see comments) which could result in wrong ordering results, should be fixed now. Update: Added a parameter to order by Item id (which should have been there in the first place). Update: Added a parameter “trim introtext” to trim the text down to a specified number of characters. Caveat: This will remove any HTML Code from the trimmed text (so it doesn’t break tags in the middle). (30/12/07 Some people have reported problems after ths update, so you might wait a little with the download until the problem is resolved). There was problem for people who have open_basedir enabled on their servers, this should be fixed now.

    187 Comments »

    1. Hi again,

      I found I had to deal with mod_placehere.xml to declare the existence of a new tpl.

      Also, the raw tpl output mode is the key to manage specific hardcoded content where are injected a user article content without messing up with clean html code.

      Comment by Eric — December 3, 2009 @ December 3, 2009 12:05 pm

    2. Hi,

      I’d like to manage my own Placehere output template.
      I created a new one from the default.php code.
      But my new one is not listed in the module parameters, so I can choose it.
      What is wrong ?
      Thank you

      Comment by Eric — December 3, 2009 @ December 3, 2009 11:38 am

    3. Hey Eike,

      Ofcourse first of all, thanks for this great module, you’ve helped a lot of fellow developers save a lot of time!

      I do got a problem though, i’m totally not a Joomla developer but do got this Joomla project now..

      I installed everything smoothly, i created an article, add the module instance and entered the corresponding article_id.

      In the menu selector I chose the a section page, but as it happends, the item show up at all underlying pages as well, but it should only be displayed on the one i selected in Joomla at the module instance.

      I hope someone had this earlier and knows how to pinpoint me in that direction..

      Thanks a lot!

      Comment by Martin — November 25, 2009 @ November 25, 2009 11:47 am

    4. You choose “category” as type, enter the category id in ID and enter a arbitrarily large number in “Number of items displayed” (5000 or something like that, it#s improbable that you will have more articles in a category).

      Comment by Eike — October 30, 2009 @ October 30, 2009 12:00 am

    5. How do I display all items from a category?

      Comment by Doug — October 29, 2009 @ October 29, 2009 2:11 am

    6. Hi Dennis,

      make sure “run plugins” is set to yes in the module settings (emails scrambled via a plugin and those are disabled by default for module content).

      Comment by Eike — September 13, 2009 @ September 13, 2009 11:11 am

    7. I’ve used your module for my website, and many thanks for making it! I was wondering though, I’m using your module to publish my adress etc. on top of the page, but I also would like to put my emailadress in this item. But then it appears “unscrabbled” in the sourcecode, which I dont’ want. Is there a way to avoid this?

      Comment by Dennis — September 13, 2009 @ September 13, 2009 12:55 am

    8. Thanks! I’ll give it a try!!

      Comment by Trevor Gauntlett — August 11, 2009 @ August 11, 2009 8:03 pm

    9. Hi Trevor,

      here: http://diebesteallerzeiten.de/blog/10x-itemid-fix/ is a patch to override the Itemid in module content. However this doesn’t work with SEF-Urls, so I’m not sure this will help you. I don’t know a way to change the Itemid with SEF-Urls.

      Comment by Eike — August 11, 2009 @ August 11, 2009 7:22 pm

    10. Oh and my last comment refers to Joomla 1.0.15

      Comment by Trevor — August 11, 2009 @ August 11, 2009 12:18 am

    11. Hi,

      I’ve been looking for something like this as I need two articles displayed on the Front Page, and control over which ones they will be. I think this is the solution.

      Only problem is that I need to be able to force the Itemid to goto a specific page. Let’s say that I have this mod on the front page. When I click on the link to the title it takes me to the page decided upon by Joomla, which isn’t where I want to go. I have two menus that point to the same content, but with different layouts, which is causing the problem. It defaults to the incorrect one according to me.

      How would I or could you add a preference to for the Itemid?

      Thanks!
      -Trevor

      Comment by Trevor — August 11, 2009 @ August 11, 2009 12:17 am

    12. Thanks, but please help!

      When I use this module as “Intro text” od article and click on this article, the name of page is “bb” (always)

      code: bb

      What´s wrong?

      Many Thanks

      Comment by Pavel — August 3, 2009 @ August 3, 2009 8:18 pm

    13. Comment by platiuser — July 26, 2009 @ July 26, 2009 3:22 pm

    14. See your extension in action whit phoca gallery plugin. In module obras at the bottom-rigth colum.

      http://www.agbranca.com.br

      Thanks

      Comment by Christian Q. Spoto — July 23, 2009 @ July 23, 2009 8:56 pm

    15. Hi Joel, I thought I had already fixed that (but obviously not). Can you please check if this happens with uncategorized content only (because then I know at least where the problem is) or if it happens with all content ?

      Comment by Eike — July 22, 2009 @ July 22, 2009 9:29 am

    16. Eieke,

      That is the version I have installed. Reinstalled from your link to make sure.
      This problem only happens when logged in as administrator.
      Works fine when not logged in.
      All icons display, error message is between the pdf,email,print icons and the edit icon.
      With no icons selected to show I get no icons not even the edit icon.

      Any help would be greatly appreciated.

      Comment by Joel — July 22, 2009 @ July 22, 2009 2:53 am

    17. I think you used the wrong version – with Joomla 1.5 use this download adress: http://diebesteallerzeiten.de/blog/wp-content/uploads/2008/03/mod_placehere_v122.zip. Hope that helps.

      Comment by Eike — April 5, 2009 @ April 5, 2009 10:03 am

    18. I’ve tried to use this module in –Add new article — page after installing it I got this”

      Warning: require_once() [function.require-once]: Filename cannot be empty in /home/mogucha/public_html/Getpaidstore/modules/mod_contentitem/mod_contentitem.php on line 15

      Fatal error: require_once() [function.require]: Failed opening required ” (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/mogucha/public_html/Getpaidstore/modules/mod_contentitem/mod_contentitem.php on line 15

      I’m not a programmer. Please help me.

      Comment by Natasha — April 5, 2009 @ April 5, 2009 3:45 am

    19. This is really great. Thanks.

      ps- Joomla Day East NYC is on 10/12/2009
      watch http://joomlanyc.org/ for details…

      Comment by compustretch — April 1, 2009 @ April 1, 2009 5:16 pm

    20. Sorry for flooding…. I forgot something !
      I’m using an old version of your module. I tried to upload new php files, but it was rendering a white page.
      I uploaded my “module” files here, if you need :
      http://www.domaines-lapalu.com/media/download/contentitem.zip
      Best regards

      Olivier

      Comment by Zitoon — March 27, 2009 @ March 27, 2009 6:53 am

    21. Hello Eike !
      Thanks in advance for your work.
      I noticed that it was stopping rendering items at the 4th one.

      Comment by Zitoon — March 27, 2009 @ March 27, 2009 6:44 am

    22. Olivier, this is certainly a bug within the module (and not an configuration issue), I will look into it over the weekend.

      Comment by Eike — March 26, 2009 @ March 26, 2009 9:42 pm

    23. Hello !
      First Thank you for this excellent module.
      I use it on my company website, with 40 different modules, in a tab and slide plug-in.
      I have a little problem with it :
      On some pages…. ? when displaying in blog with 2 columns, some articles are missing.
      If I display the same category content in 1 column, all is ok..
      On some pages, all is OK too with 2 columns…
      I didn’t understood where the problem was coming from.
      Here is a page where I have the two cases :
      http://www.domaines-lapalu.com/presentation-patache-d-aux/patache-d-aux.html
      In tab “Press” all is ok : 42 items
      In tab “Tasting” 1 item is missing…
      I tried to add an item in this category (pair / unpair numbers of item problem ?) but it didn’t work. Only 4 items displayed.
      Thank you for your help !

      Olivier

      Comment by Zitoon — March 26, 2009 @ March 26, 2009 8:11 am

    24. Hi,

      Thanks the module works great! One minor fix I’ve added is to add the module suffix to .mod_placehere_leading as well as .mod_placehere

      Are there any disadvantages to doing this?

      thanks again

      Adam

      Comment by Adam smith — March 14, 2009 @ March 14, 2009 9:20 pm

    25. Hi Eike!

      I discovered an important difference in your wonderfull Content Item Module. In 1.0.x it was possible to edit the module in frontend. In 1.5 I can’t find that. Can you make it or do you know other possibilities to edit modules in general in the frontend?

      Comment by Frans — March 14, 2009 @ March 14, 2009 2:14 pm

    26. WAAUWWW… Awsome! With “Run plugins” just what I need to display a 360 panorama in a module.
      Great!

      Frans

      Comment by Frans — January 24, 2009 @ January 24, 2009 1:29 pm

    27. Hi Frans,

      Download for 1.5 is here

      Comment by Eike — January 24, 2009 @ January 24, 2009 10:43 am

    28. Hello Eike,

      In the Joomla Extensions Directory (#498) your very usefull Content Item Module is mentioned for 1.0 and also for 1.5. Is that wrong, because I can’t find a 1.5 version.

      Comment by Frans — January 24, 2009 @ January 24, 2009 8:29 am

    29. You have by far made the most useful module for Joomla out there. This expands the use ability of Joomla and makes a great tool for web developers. I am very impressed by this module and the time and skills that you have taken to implement such a wonderful tool.

      THANK YOU SO VERY VERY MUCH.

      Dan

      Comment by Daniel Canivet — January 22, 2009 @ January 22, 2009 6:07 pm

    30. Great, thanks!
      Maurits

      Comment by Maurits — December 15, 2008 @ December 15, 2008 10:28 am

    31. Hi Maurits,

      if you use the module for 1.0.x I’m at a loss ,the mail adress should be scrambled. If you are using the place here module with Joomla 1.5.x you need to check that “run plugins” is set to “run” in the the module settings tab.

      Comment by Eike — December 14, 2008 @ December 14, 2008 10:27 pm

    32. Hello,

      I’ve used your module for my website, and many thanks for making it! I was wondering though, I’m using your module to publish my adress etc. on top of the page, but I also would like to put my emailadress in this item. But then it appears “unscrabbled” in the sourcecode, which I dont’ want. Is there a way to avoid this?

      Thanks again- Maurits

      Comment by Maurits — December 14, 2008 @ December 14, 2008 10:17 pm

    33. Hi Khurram,

      you do _not_ upload the module a second time; this will make Joomla fail since functions cannot be defined twice under the same name (so you can’t have two files that define the same functions).

      Upload the module once (and delete all copies in die module dir). Go to the module manager. Check the checkbox in front of the module. Look at the top right toolbar of the admin panel, there is a button labeled “copy”. This will create a second instance of the module that can be configured independently.

      Hope that helps.

      Comment by Eike — December 5, 2008 @ December 5, 2008 11:40 am

    34. I have rename module zip file, xml file and main php file, uploaded through admin, and every thing went okay, but when i enable the second module admin panel still works fine, but frontend goes blank.

      Comment by khurram — December 5, 2008 @ December 5, 2008 10:48 am

    35. Hi Eike,

      Do you know if Content Item Module will work with JCE Editor to allow front end editing of articles in a module?

      thanks

      Comment by christina — December 4, 2008 @ December 4, 2008 4:40 pm

    36. oh thank you Eike i think i got it now.

      Comment by water — November 30, 2008 @ November 30, 2008 7:06 am

    37. Hi water ,

      sorry for the late answer – but here we go.

      If you are running 1.5.8 you need the version from here http://diebesteallerzeiten.de/blog/module-15/.

      Install it via the admin interface. Go to the module manager. You will find the module by looking for mod_placehere. Open the settings tab.

      The relevant settings are in the right column. Choose the “type” (do you want to display articles, all articles from a category or all articles from a section). Then you need to know the ID of your article/category/section and enter it in the “ID”-Field. Save settings. Publish the module.

      You will find a bit more documentation here : http://diebesteallerzeiten.de/blog/category/manual/

      Hope that helps.

      Comment by Eike — November 27, 2008 @ November 27, 2008 8:24 pm

    38. Hello i downloaded the place hold im running joomla 1.5.8 but i don’t know how to use it. im trying to show a content item on my front page on one of the position and its now showing. i don’t even have and option to select the content item (article) on the menu select. can somebody help me on this problem

      Comment by water — November 26, 2008 @ November 26, 2008 4:25 am

    39. Please would you add an edit article button on the front end, for ‘publishers’ and ‘managers’? That would be very helpful indeed. thanks

      Comment by captain — November 25, 2008 @ November 25, 2008 10:46 am

    40. Hi Phil,

      no, this is not possible, at least not yet – but I can see that this would be you a useful feature, so I guess I will use your idea. However this will come first for the place here module (which has better code and is much easier to modify). The only timeline I can give for new features is “possibly by the end of the year”, not sure how much this helps.

      Comment by Eike — November 20, 2008 @ November 20, 2008 11:33 pm

    RSS feed for comments on this post. TrackBack URL

    Leave a comment