Thanks that you're willing to help..
Ok here it comes....
The link to my site (in Dutch),
http://da.stylique.nl
If you go to the page
'Onderwijs' (Education), you'll get submenu. I only made the first two with the category list. So if you click on these. You'll see all the blocks which should contain items in it. Not all of em tho, i havnt had time yet, and first want I to sort out this problem.
If you look at the 2nd boxes for each page, you'll see that it contains the item 'Schilderen' (painting) twice. This is because I both added it to the category 'Activiteiten | Basis Onderwijs | Creatief ' & to 'Activiteiten | Jongeren | Creatief '. However when you click on the button 'Meer' (MORE) on the bottom of those blocks, you'll only see the orginal containing Item.
So this is the big main issue.
The structure of my News category is as following
This is the browse category template
Code: Select all
{if $count > 0}
{foreach from=$cats item=node}
<div class="smallBlock">
<div class="blockHeader"><h2>{$node.news_category_name}</h2></div>
<div class="blockContent">
{if $node.count > 0}
{capture assign='temp'}{$node.news_category_name}{/capture}
{news number='3' action="default" summarytemplate="categorie_list" detailpage="detail-bo" category=$temp}
{/if}
</div>
<p class="blockFooter"><a href="bo/bo-{$node.news_category_name|replace:' ':'-'}">meer...</a></p>
</div>
{/foreach}
{/if}
This is the corresponding summarytemplate
Code: Select all
{foreach from=$items item=entry}
<div class="item" onclick="location.href='{$entry->moreurl}'"><div class="title">{$entry->title|cms_escape:htmlall}</div><img src="http://da.stylique.nl//uploads/images/small/{$entry->small_image}.jpg" /></div>
{/foreach}
These two templates make up the Main pages. and they get called by the tags
Code: Select all
{news action="browsecat" browsecat="1" category="Activiteiten | Basis Onderwijs | *" sortby="random"}
Code: Select all
{news action="browsecat" browsecat="1" category="Activiteiten | Jongeren | *" sortby="random"}
The code for the summary view once you click on MORE is :
Code: Select all
<div class="blockColumn">
{foreach from=$items item=entry}
<div class="smallBlock">
<div class="blockHeader"><h2>{$entry->title|cms_escape}</h2></div>
<div class="blockContent">
<img src="uploads/images/small/{$entry->small_image}.jpg" />
<p> {eval var=$entry->content|truncate:350}</p>
</div>
<div class="blockFooter"><a href="{$entry->moreurl}">meer...</a></div>
</div>
{/foreach}
</div>
and the Detailed template is :
Code: Select all
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
{assign var='detail_title' value=$entry->title}
<div class="xLargeContent">
<div class="xLargeBlock">
<div class="blockHeader">
<ul>
<li><h1 class="cufon">{$entry->title}</h1></li>
<li class="crumbs"><a href="{$entry->category}">{$entry->category}</a></li>
</ul>
</div>
<div class="blockContent">
<p>{$entry->content}</p>
</div>
<p class="blockFooter"></p>
</div>
</div>
<div class="xLargeContent">
<div class="xLargeBlock">
<div class="blockHeader"><h2 class="cufon">Meer informatie aanvragen</h2></div>
<div class="blockContent">
<p>{startExpandCollapse id="name" title="Vraag meer informatie aan"}{capture assign='defaultval'}{title}{/capture}{cms_module module='FormBuilder' form='contact' value_fld2='$defaultval'}{stopExpandCollapse}
</p>
</div>
<p class="blockFooter"></p>
</div>
</div>
I'm bumping in to another issue tho. As you can see, i made a page title in the Detail Template, with a 'breadcrumb to the category' next to it. I think i fix stuff with the smarty replace tag, but i was wondering if it's possible to replace multiple things in one tag. Since I have to replace the SPACE for a -, and sometimes i'll have to replace the ' & ' for a stripe. Do you know if this is possible, that would help me out alot, because I need to keep my category names like this, but they dont always match the page alias I want to link it to.
Well I hope this is enough info for ya,
Thanks alot for your time and effort, i hope this can be solved
tnx mate
DJ.