We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Better relationship between File Entries Tag and Channel Categories Tag?

How Do I?

jaasum's avatar
jaasum
36 posts
10 years ago
jaasum's avatar jaasum

I think it’s great that you can organize files by directories and categories, and then use the meta information about files in your templates.

However, the Channel Categories Tag seems to only be aware of channels, not files associated with it. Meaning, if I just want to use a category group to organize files there is NO WAY I can use the Channel Categories Tag in my templates to organize and display the related files because the Channel Categories Tag requires the channel parameter (unless you only have one channel.)

Is the only way to truly relate files to channels to create a redundant “files” channel so I can relate different channels to those files instead of just associating entries with the files themselves?

This is what I’d love to do:

{exp:channel:categories category_group="3" directory_id="2" show_empty="no"}
<h2>{category_name}</h2>
{exp:file:entries category="{category_id}" directory_id="2"}
<a href="http://{file_url}">{title}</a>
{/exp:file:entries}
{/exp:channel:categories}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.