EllisLab text mark
Advanced Search
     
Trying to display channel:entries categories one per group of entries
Posted: 26 September 2010 06:37 AM   [ Ignore ]
Avatar
Joined: 2006-02-14
107 posts

Hi there,


I am building a company intranet with list of files available…

What i need to do is group the document entries into categories.

Here is my EE code:

{exp:channel:entries channel="documents" disable="member_data|trackbacks" orderby="title" sort="asc"}
                
                {categories}
<a href="{path=/intranet/documents}">{category_name}</a{/categories}
                
<div id="file_list_large">
                    <
h5><a href="{document_file}">{document_title} <span>View download document</span></a></h5>
                    </
div>
           
                
{/exp:channel:entries} 

But for every file, this shows the category that the file is in. I only want to display the category one for each group of entries or files.

Can anyone help…

Ian

 Signature 

http://www.ianryde.co.uk

 
Posted: 26 September 2010 07:32 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2008-03-05
1341 posts

http://expressionengine.com/wiki/Category_Archives_with_Custom_Fields/

 Signature 

ModeTen Designs - @ModeTen - Stock Photos & Vectors

 
Posted: 27 September 2010 03:29 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2004-03-22
12298 posts

Thanks for the link nevsie. Low actually posted an updated better performing version of this method here recently

Ian, does this help?

 Signature 

John Henry’s Website | Follow me on Twitter