ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

showing category entries

July 31, 2012 12:22pm

Subscribe [2]
  • #1 / Jul 31, 2012 12:22pm

    javier vilchis

    9 posts

    i’m having issues showing the thumnails of the entries, maybe someone can help me to show the thumnail of each entry. This is the code:

    {exp:channel:categories channel="shield" paginate="bottom" limit="3" style="linear"}   
                  
                  
                        <div class="spark-img">
                            {spark_thumbnail}
                        </div>
                     <div class="tmain-caption">
                     {category_name}
                            
    
                           
                           <a href="/about/shield/{category_url_title}" title="{url_title}">Read More →</a>                                             
                        </div>
                    </div>
                    
                    {paginate}
                    <div class="paginate">
                        {pagination_links}
                    </div>
                    {/paginate}
           
                     {/exp:channel:categories}
  • #2 / Jul 31, 2012 12:39pm

    javier vilchis

    9 posts

    I took out a <div> of the original script.
    The issue is that it is actually showing me all the post entries for channel shield which is ok. However, each item is showing me the current entry thumnail for all of the entries. Is there a way that I can say to show thumnails of each category entry.

  • #3 / Jul 31, 2012 12:44pm

    Boyink!

    5011 posts

    I’m a bit confused by your terminology.

    Do you want to show category thumbnails? If so, you need to use the right variable (see http://ellislab.com/expressionengine/user-guide/modules/channel/categories.html/#variables).

    Or are you trying to show thumbnails from entries assigned to categories?

  • #4 / Jul 31, 2012 12:46pm

    javier vilchis

    9 posts

    i’m trying to show thumnails from entries assignetd to categories. I’m sorry for the confusion.

  • #5 / Jul 31, 2012 12:51pm

    Boyink!

    5011 posts

    Then you need to be using a channel:entries loop - as it will return content from an entry.  Your code is using a category loop, designed to pull category content.

    You might review this tutorial on working with categories:
    http://www.train-ee.com/courseware/free-tutorials/comments/working-with-categories

  • #6 / Jul 31, 2012 1:50pm

    javier vilchis

    9 posts

    thank you Boyink!  I will take that tutorial.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases