This may be a part EE and part CSS question.
On the index page of a template group (customer_support), I want to create links to categories that appear on another page in the same template group. On the index template I am using the following:
{exp:channel:category_archive channel="channel_name1" style="linear"}
{categories}
<h2>{category_name}</h2>
<p> {/categories}<br />
{/exp:channel:category_archive}On the “downloads” template I am using the following:
{exp:channel:entries channel="{channel_name1}" category="1" limit="1"}
{categories}
<h2>{category_name}</h2>
<p> {/categories}<br />
{/exp:channel:entries}</p>
<p>{exp:channel:entries channel="{channel_name1}" category="1"}<br />
{download_description}<br />
{/exp:channel:entries}</p>
<p>{exp:channel:entries channel="{channel_name1}" category="2" limit="1"}<br />
{categories}<br /></p><h2>{category_name}</h2>
<p> {/categories}<br />
{/exp:channel:entries}</p>
<p>{exp:channel:entries channel="{channel_name1}" category="2"}<br />
{download_description}<br />
{/exp:channel:entries}Because of the number of entries in category 1, category 2 and its entries may be out of sight down the page.
How do I set an anchor ID to each category_name on the “downloads” template and a link to that anchor ID in the index template? It seems like the anchor should use the category ID, since it is unique. But I haven’t figured out how to configure it.