Page 2 of 2

Re: Displaying news articles in different ways

Posted: Mon Sep 24, 2007 12:37 pm
by aidank
Hi Ronny,

OK I might try an upgrade but I have never done one before!!

I have read through the steps on the CMSMS site and I was wondering when you complete the upgrade does it remove the template/stylesheet changes you made and replace them with the default settings?

So for example you changed the Navigation simple vertical stylesheet to have a different look and feel and you complete an upgrade, do you lose these new look and feel edits and you get back the default look and feel? I know I can create backups of the stylesheets but just wondering?

Tks

Aidan

Re: Displaying news articles in different ways

Posted: Mon Sep 24, 2007 12:44 pm
by RonnyK
Aidan,

when you perform an upgrade, make sure to BACKUP before you do.

An upgrade exists of files only, and if a DB-change needs to happen, install/upgrade.php needs to run, but the data inside the DB, content/stylesheets/templates etc.... aren't touched.

Ronny

Re: Displaying news articles in different ways

Posted: Mon Sep 24, 2007 2:08 pm
by aidank
Hi Ronny,

I just upgraded my version so when I go to Content > News > Summary Template, I can add a new summary template. I will try creating a new summary template called hp_summary and call it with the following code

{news number='2' category='general' detailpage='news' summarytemplate="hp_summary.tpl"}

They are the correct steps yeah?

Just an aside, in the upgrade guide on CMSMS, it tells users to update the robots.txt file. What do I need to do here? Apologies if this is a really basic question but just want to be sure I take all the correct steps.

Thanks
Aidan

Re: Displaying news articles in different ways

Posted: Mon Sep 24, 2007 2:14 pm
by aidank
Actually when I try the code:

{news number='2' category='general' detailpage='news' summarytemplate="hp_summary.tpl"}

I get the following error

string(81) "Smarty error: unable to read resource: "module_db_tpl:News;summaryhp_summary.tpl""

Re: Displaying news articles in different ways

Posted: Mon Sep 24, 2007 2:57 pm
by aidank
Read through some of the old posts on the forum and found a resolution. Sorry for the redundant question.