Excuse the markup, its going to change - its using YUI3 grids.
What follows is my page markup, it almost works except for two things marked by **HELP**.
I am using Low seg2cat
{embed="embeds/html_header"}
<body>
<div id="container">
<div id="wrap">
<!-- hd -->
{embed="embeds/header"}
<!--//hd -->
<div class="clearfix">
<!-- bd -->
<div id="bd">
<div class="yui3-g">
<div class="yui3-u" id="side">
<div id="menu">
<ul id="treeMenu" class="menu">
{exp:channel:categories}
<li>**HELP**
<a href="/recipes/{category_url_title}">_ {category_name} _ </a>
</li>
{/exp:channel:categories}
</ul>
</div><!--//#menu -->
</div><!--// #side -->
<div class="yui3-u" id="main">
{if segment_2 == ""}
<div class="w">
<h1>Latest Recipes</h1>
</div>
<div class="w">
{exp:channel:entries channel="recipes" status="open" orderby="title" sort="asc" limit="10"}
<div class="yui-b article">
<div class="yui3-g">
<div class="yui3-u-1-5">
Image
</div>
<div class="yui3-u-4-5">**HELP**
<a href="/recipes/{category_url_title}/{url_title}">{title}</a>
{short_introduction}
</div>
</div>
</div>
{/exp:channel:entries}
</div>
{/if}
{if segment_2 != "" AND segment_3 == ""}
<div class="w">
<h1>{segment_2_category_name} Recipes</h1>
{segment_2_category_description}
</div>
<div class="w">
{exp:channel:entries channel="recipes" category="{segment_2_category_id}" orderby="title" sort="asc" limit="10"}
<div class="yui-b article">
<div class="yui3-g">
<div class="yui3-u-1-5">
Image
</div>
<div class="yui3-u-4-5">
<a href="/recipes/{segment_2_category_name}/{url_title}">{title}</a>
{short_introduction}
</div>
</div>
</div>
{/exp:channel:entries}
</div>
{/if}
{if segment_3 != ""}
<div class="w">** HELP **
{exp:channel:entries channel="recipes" limit="1"}
<h1>{title}</h1>
By {author}
{short_introduction}
{fact}
{/exp:channel:entries}
</div><!--// .w -->
{/if}
</div><!--// yui3-u -->
</div><!--// yui3-g -->
</div><!--// bd -->
</div><!--// clearfix -->
</div><!--// wrap -->
</div><!--// container -->
<div id="ft">
<div class="page">
{embed="embeds/footer"}
</div>
</div>
{google_analytics}
</body>
</html>The three errors I need help with are:
In order:
1. {category_url_title} doesn’t seem to be parsed? it shows as {category_url_title} in the URL
2. I want to use the category url not the name, as although for now these are the same (Case is different though), going forward thats going to be a problem I imagine. I need something like {segment_2_category_url}
3. I have segments 2 and 3… so I am at /recipes/british/toad-in-the-hole
I now want to load the recipe which has the url_title of “toad-in-the-hole” - how can I do that?
—-
To see what I am emulating, please take a look at:
http://www.kitchengeekery.com/recipes/
http://www.kitchengeekery.com/recipes/british/
http://www.kitchengeekery.com/recipes/british/toad-in-the-hole-a123