Hi,
How do you make EE display category name? I can’t seem to get that tag to work.
I have a slider which displays an image, slide title and slide category. Image and title show up fine, but category name doesn’t.
Here’s my current slider code:
{exp:channel:entries channel="frontpage_slider" sort="desc" dynamic="no" limit="3" disable="member_data|pagination"}
<div class="slide-section item {if count == 1}active{/if}">
<a href="http://{url_title_path=news}">_ {excerpt_image}_ </a>
<div class="carousel-caption">
<div class="carousel-item-category"><span class="icon awe-tags"></span>
{exp:channel:category_heading}
<a href="http://{url_title_path=news/category}">{category_name}</a>
{/exp:channel:category_heading}
</div>
<h3><a href="#">{title}</a></h3>
<p> </div><br />
</div><br />
{/exp:channel:entries}And also, what is the best approach regarding URL structure.
Let’s say I have 3 first-level menu elements: Home, Products and Contact us.
Products and Contact us contains second-level elements too.
I would like the URL to reflect the menu element the customer is currently browsing.
Eg. http://www.mydomain.com/products/memory or www.mydomain.com/contact-us/sales-departement.
Both of those menus use the same template. Would I still need to create a new template group for each main menu element (‘products/index.html’ and ‘contact-us/index.html’), and then just copy the template, or is there an easier and better way to do it?
I’m working on a real website, with about 7 top-level menu elements, all with the same template, and would like to keep my code and templates as DRY as possible, but still retain unique URLs that reflect to the customer where he is currently.
Regards
Kristoffer