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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
News module 2.4 and categories picture
-
- Rank: Softmore
- Registered: Dec 10, 2003
- Last visit: May 12, 2010
- Posts: 299
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
