Using CMSMS 1.9.4.3
Having trouble with the News module. I am getting the More link even though I do not fill in the Summary field. I posted this problem but no-one replied. There does not seem to be anything wrong with the template.
Can I uninstall the News Module and then re-install it? Thought I had better check first as it is a core module.
[Solved]Can core modules be uninstalled and re-installed?
[Solved]Can core modules be uninstalled and re-installed?
Last edited by jasnick on Sat Oct 08, 2011 1:26 am, edited 1 time in total.
Re: Can core modules be uninstalled and re-installed?
Did you modify your summary template? If so, post the section that deals with the summary.
Re: Can core modules be uninstalled and re-installed?
Thanks Wishbone ! Here's the whole lot just in case ...
<!-- Start News Display Template -->
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
<div class="NewsSummaryLink">
{$entry->title|cms_escape:htmlall}
</div>
{if $entry->postdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
</div>
{/foreach}
<!-- End News Display Template -->
<!-- Start News Display Template -->
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
<div class="NewsSummaryLink">
{$entry->title|cms_escape:htmlall}
</div>
{if $entry->postdate}
<div class="NewsSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
</div>
{/foreach}
<!-- End News Display Template -->
Re: Can core modules be uninstalled and re-installed?
That looks correct and yes you can uninstall News but you will lose any articles you have...
Are you sure there isn't some kind of hidden something in the summsry box?...
Are you sure there isn't some kind of hidden something in the summsry box?...
Re: Can core modules be uninstalled and re-installed?
No, there was nothing there. Will mark this one solved. I seem to recall when I didn't get an answer, I did re-install the news module and that sorted the issue.
Thanks Dr.CSS.
Thanks Dr.CSS.