EllisLab text mark
Advanced Search
     
category archives with custom channel entry fields HOW TO?
Posted: 03 August 2012 07:33 PM   [ Ignore ]
Joined: 2006-09-06
539 posts

I am using

{exp:channel:category_archive channel="default_site" style="linear"}
    {categories}
        
<h3>{category_name}</h3>
        
{if category_description}
            
<p>{category_description}</p>
        
{/if}
    {
/categories}
    {entry_titles}
        
<a href="{path='SITE_INDEX'}">{title}</a><br />
    
{/entry_titles}
{
/exp:channel:category_archive} 

To display a series of categories in a channel.

How do I include the entries titles and custom fields instead of just the entry titles?

something like this:

{exp:channel:category_archive channel="default_site" style="linear"}
    {categories}
        
<h3>{category_name}</h3>
        
{if category_description}
            
<p>{category_description}</p>
        
{/if}
    {
/categories}
    {entries}
        
<h1>{title}</h1>
{entended_content_custom_field}
    {
/entries}
{
/exp:channel:category_archive} 


SOLVED:

{exp:channel:category_archive channel="classes" style="linear"}
    {categories}
        
<h1>{category_name}</h1>
        
{if category_description}
            
<p>{category_description}</p>
        
{/if}
    
   {exp
:channel:entries channel="classes" category="{category_id}"}
            
<h3>{title}</h3>
{class}
        {
/exp:channel:entries}

{
/categories}
{
/exp:channel:category_archive} 
 Signature 

EastwoodDesign.ca

 
Posted: 03 August 2012 11:41 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2008-11-19
777 posts

Hi Eastwood Design,

Glad to see you were able to solve your question.

If you have any more questions, feel free to post again.

Thanks!

 Signature 

18. Lover of the web. Pixel placer. Coffee Drinker. Owner of Cotter Interactive.