Page 1 of 1
[Solved]Can core modules be uninstalled and re-installed?
Posted: Tue Sep 06, 2011 1:26 am
by jasnick
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.
Re: Can core modules be uninstalled and re-installed?
Posted: Tue Sep 06, 2011 5:41 pm
by Wishbone
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?
Posted: Tue Sep 06, 2011 11:32 pm
by jasnick
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 -->
Re: Can core modules be uninstalled and re-installed?
Posted: Fri Oct 07, 2011 7:03 pm
by Dr.CSS
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?...
Re: Can core modules be uninstalled and re-installed?
Posted: Sat Oct 08, 2011 1:26 am
by jasnick
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.