Fork me on GitHub

News module 2.4 and categories picture  Bottom

  • Is there a way to have just the category name show without a picture under a news item? I want to keep it simple without a picture and when I do this, in Firefox, it looks great, but when I view it in IE there is an " X " that appears where there should be a picture. I would like to get rid of this " X ".

    You can see this on http://www.EarlyMusicNews.org
  • Hi, it seems like the image with the first news article:
    http://www.musiqueancienne.org/images/topics/concert4thumb.jpg is missing. Do you have the catimagepath variable set to images/topics?

    What template for news_user_index.htm are you using now. Is there a template in your theme? (yourtheme/teplates/modules/News/news_user_index.htm)? Otherwise the regular News modules user_index template would be used. The regular News module user_index template does not contain the category image in the News overview page.

    You can get rid of the image of course, that is just styling of the news messages.
    You can use for example

    Code

    <!--[foreach from=$preformat.categories item="categorylink" name="articleCatsLoop"]-->
    <!--[$categorylink]-->
    <!--[if $smarty.foreach.articleCatsLoop.last ne true]--> | <!--[/if]-->
    <!--[/foreach]-->


    If you compare that with the news_user_articlecontent template in the News module

    Code

    <!--[if $links.searchtopic neq '' AND $info.topicimage neq '']-->
    <p id="news_topic" class="news_meta"><a href="<!--[$links.searchtopic]-->"><img src="<!--[$catimagepath]--><!--[$info.topicimage]-->" alt="<!--[$info.topicname]-->" title="<!--[$info.topicname]-->" /></a></p>
    <!--[/if]-->

    you see that that one contains the code for displaying the category image as well.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • 0 users

This list is based on users active over the last 60 minutes.