<p>OP solved it with using the correct block names.</p>

CC BY-SA 3.0
2016-03-05T19:28:27.680Z
2016-03-05T19:28:27.680Z
carlcs
<p>I am using structure type entries for navigation with three fields for navigation that uses either: 
-customlink field (plain text) or 
-category
entry
as the source for links.</p>

<p>I have product categories setup like in this post: <a href="https://craftcms.stackexchange.com/questions/353/how-do-i-add-a-subcategory-to-the-url-slug-for-a-channel-entry/372#372">How do I add a subcategory to the URL slug for a channel entry?</a></p>

<p>This gives me the display of products I want from each category. My nav output template for category navigation looks like this:</p>

<pre><code>            {% if entry.menulink|length %}

            &lt;a  href="{{ entry.menulink.first.slug }}"&gt;{{ entry.title }}&lt;/a&gt;

            {% elseif entry.customMenuUrl %}

            &lt;a  href="{{ entry.customMenuUrl }}"&gt;{{ entry.title }}&lt;/a&gt;


            {% elseif entry.productCategoryLink|length %}

            &lt;a  class="{{ activeclass }}" href="{{ entry.productCategoryLink.first | lower }}"&gt;{{ entry.title }}&lt;/a&gt;


            {% endif %}
</code></pre>

<p>My category links work to display my nice list of products.
My products section is set like: <a href="https://www.dropbox.com/s/o4ia62jo7i8yo38/Screenshot%202016-03-04%2017.29.35.png?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/o4ia62jo7i8yo38/Screenshot%202016-03-04%2017.29.35.png?dl=0</a>
with the section entry urls set to render an entry in the template 'flowers/_entry.html''</p>

<p>SO thats the setup for navigation and templates.</p>

<p>Two problems are occurring which I cannot resolve yet.</p>

<ol>
<li>The entry links in my category template produce nothing. When clicking on an entry from the category  I get my base and site templates but the output at 'flowers/_entry.html' is never rendered. I cant work out where craft thinks the entry template for the category should be. </li>
</ol>

<p>2 . My navigation links are inheriting the current url 
So if on the page 'mysite.com/category1' and i click on 'category1' in my navigation the url becomes ''mysite.com/category1/category1'</p>

<p>Have been round the houses for 2 days on 1 above. I don't mind a learning curve but I am in circles and not ascending the curve :)</p>

CC BY-SA 3.0
2016-03-05T00:40:58.367Z
Solved: so silly - my twig templates were using the wrong block name
joomkit
<categories><navigation>
Navigation structure and uri problems
# Navigation structure and uri problems

(Asked by: username_0 on 2016-03-04)

I am using structure type entries for navigation with three fields for navigation that uses either: 
-customlink field (plain text) or 
-category
entry
as the source for links.
I have product categories setup like in this post: How do I add a subcategory to the URL slug for a channel entry?
This gives me the display of products I want from each category. My nav output template for category navigation looks like this:
            {% if entry.menulink|length %}

            {{ entry.title }}

            {% elseif entry.customMenuUrl %}

            {{ entry.title }}


            {% elseif entry.productCategoryLink|length %}

            {{ entry.title }}


            {% endif %}

My category links work to display my nice list of products.
My products section is set like: https://www.dropbox.com/s/o4ia62jo7i8yo38/Screenshot%202016-03-04%2017.29.35.png?dl=0
with the section entry urls set to render an entry in the template 'flowers/_entry.html''
SO thats the setup for navigation and templates.
Two problems are occurring which I cannot resolve yet.

The entry links in my category template produce nothing. When clicking on an entry from the category  I get my base and site templates but the output at 'flowers/_entry.html' is never rendered. I cant work out where craft thinks the entry template for the category should be. 

2 . My navigation links are inheriting the current url 
So if on the page 'mysite.com/category1' and i click on 'category1' in my navigation the url becomes ''mysite.com/category1/category1'
Have been round the houses for 2 days on 1 above. I don't mind a learning curve but I am in circles and not ascending the curve :)

**Tags:** categories, navigation

> **Comments:**
> **username_0**: Solved: so silly - my twig templates were using the wrong block name  

---

## 1 answers

### Answer by username_1 on 2016-03-05. Score: 2

OP solved it with using the correct block names.


---

