Hi Everyone,
I’m wondering if anyone could help clarify something for me.
I have a category archive loop here, that is spitting out the title of each document I have assigned to a category from my ‘document’ channel.
Just wondering how I can link the title to the actual document.
I’ve tried using…
{entry_titles}
<a href="http://{document_file}">{title}</a>
{/entry_titles}, but that doesnt work.
{document_file} being the custom field that connects a file to its upload directory.
loop:
{exp:channel:category_archive
channel="document"
style="linear"
}
<!-- spit out the category title & description -->
{categories}
<h3>{category_name}</h3>
<p>{if category_description}{category_description}{/if}<br />
{/categories}</p>
<p><!-- spit out any documents associated to this category --><br />
{entry_titles}<br />
<a href="http://{path=SITE_INDEX}">{title}</a><br />
{/entry_titles}</p>
<p>{/exp:channel:category_archive}Thanks in advance