OK, then try this code in that test template with the same two URLs:
{if segment_2 == "category"}
The entire weblog tag WITHOUT category_group
{if:elseif segment_1 == "cars"}
The entire weblog tag with category_group
{/if}
That is! Brandon!
I try in the past with if:elseif but now with your code example make the difference, I think in the past I don’t use entire weblog tag, now segments works! and sort entries by categories well
Thanks a lot!!! I appreciate it!
just curious why is not possible of this way:
{if segment_2 == "category"}
{exp:weblog:entries weblog="{my_weblog}" status="open" limit="18" disable="category_fields|member_data|trackbacks"}
{if:elseif segment_1 == "cars"}
{exp:weblog:entries weblog="{my_weblog}" category_group="2" status="open" limit="18" disable="category_fields|member_data|trackbacks"}
{/if}
{switch="<ul class='item'>|<ul class='item'>|<ul class='item'>|<ul class='item'>|<ul class='item'>|<ul class='item-last'>"}
<li><a href="http://{url_title_path=%22class=%22item-hover" title="{title}" class="item-hover"></a>{media_img}</li>
<li class="h2"><a href="http://{url_title_path=">{exp:char_limit total="20"}{title}{/exp:char_limit}</a></li>
<li class="h3">{categories}<a href="http://{path=">{category_name}</a>{/categories}</li>
</ul>
{paginate}
<div id="page">
{if previous_page}
<a href="http://{auto_path}">« Anterior</a>
{/if}
{pagination_links}
{if next_page}
<a href="http://{auto_path}">Siguiente »</a>
{/if}
</div>
{/paginate}
{/exp:weblog:entries}