News + Archive
Posted: Thu Dec 14, 2006 1:08 pm
Hi,
i could use some help with the news module.
First some Infos about my System:
Ok, now for my problem or my nonunderstanding
I have a couple news with different categories. What i want to do is the following:
I have a page containing some graphics menu etc, the normal things. In the center i have a content block and on the right side i have a column where i can put stuff. Now i want to make something like a news archive in the following way.
In the center block the current news entry is visible. In the column to the right are all current news entries as a list. If i click on an older entry, the content in the center gets updated with the news entry which i just clicked on.
So far i have the list of nesentries on the right column with the following code:
newsletter_archiv_summ.tpl looks like this:
The content block in the center looks like this:
newsletter_archiv_main.tpl:
newsletter_archiv_detail.tpl
It looks good so far, but if i click on a link on the right column nothing really happens. The url changes but the center content is still the last added news entry of the specified category.
Any help here is realy appreciated.
Oh and CMS Made Simple is a great tool, i defenitely like it
Greetings
i could use some help with the news module.
First some Infos about my System:
- CMS Made Simple 1.0.2
- PHP Version 4.3.10-16
- MySQL 4.0.24
- Apache/2.0.54 (Debian GNU/Linux)
Ok, now for my problem or my nonunderstanding
I have a couple news with different categories. What i want to do is the following:
I have a page containing some graphics menu etc, the normal things. In the center i have a content block and on the right side i have a column where i can put stuff. Now i want to make something like a news archive in the following way.
In the center block the current news entry is visible. In the column to the right are all current news entries as a list. If i click on an older entry, the content in the center gets updated with the news entry which i just clicked on.
So far i have the list of nesentries on the right column with the following code:
Code: Select all
<td class="infoColumn">
{news category="cat" summarytemplate="newsletter_archiv_summ.tpl" detailtemplate="newsletter_archiv_summ.tpl"}
</td>
Code: Select all
<div class="arcNewsletterSummary">
<h3>Newsletter Archiv</h3>
{if $count>0}
<ul>
{foreach from=$items item=entry}
<li>{$entry->titlelink}</li>
{/foreach}
</ul>
{/if}
</div>
Code: Select all
<td class="contentColumn">
<div class="breadcrumbs">
{breadcrumbs delimiter="|"}
</div>
{news number="1" category="firmenbrief" summarytemplate="newsletter_archiv_main.tpl" detailtemplate="newsletter_archiv_detail.tpl"}
</td>
Code: Select all
{foreach from=$items item=entry}
<div class="arcNewsletterWrapper">
<h4>{$entry->title}</h4>
<p>Die Themen:</p>
{eval var=$entry->summary}
<div class="printLink">
{$entry->printlink}
</div>
</div>
{/foreach}
Code: Select all
<div class="arcNewsletterDetail">
<h4>{$entry->title}</h4>
<p>Die Themen:</p>
{eval var=$entry->summary}
<div class="printLink">
{$entry->printlink}
</div>
</div>
Any help here is realy appreciated.
Oh and CMS Made Simple is a great tool, i defenitely like it
Greetings