Hi,
I’m trying to link various headlines from the home page of a site to different templates, based on the category assigned to that entry. e.g. if if an entry is assigned the category of “Press Release” I want the page link to go to the Press release template. if the entry is assigned “Featured Article”, I want it to go to the Features template.
This is my code:
{exp:weblog:entries site="mysite" weblog="mymedia" disable="member_data|pagination|trackbacks|comments"}
{categories}
{if category_id == "1"}<a href="http://{path=%27news/index%27}" class="box">_ {if:else}_ <a href="{path='core/featured'}" class="box">_ {/if}_{/categories}_<div class="box-image">_ {asset_image}{asset_image_file}{/asset_image} _</div>_<span class="box-holder"><strong>{title}</strong></span>_</a>
{/exp:weblog:entries}..and it ain’t working. Everything is just going to the ‘core/featured’ template. I’ve also tried
{title_permalink='blah/blah'}and that doesn’t work either. Not sure what I’m doing wrong here :-(
EE 1.7.0 Build 20101018
Nik