Problems with display of News

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
bclark

Problems with display of News

Post by bclark »

Hi

Im running News 2.0.1 at phuba.com/asrc/index.php (you will need to put www at the front, dont want the site to be found by search engines yet)

Please check out how the links to the News articles simple load the articles in the same template (when i would rather they landed in a non-home page template).  They also dont seem to be going just that article, rather to all of them.

is this expected behaviour?  a bug?  or have i implemented wrong?

cheers

BClark
Last edited by bclark on Thu Mar 16, 2006 7:06 am, edited 1 time in total.
jelle

Re: Problems with display of News

Post by jelle »

You must be still fiddling with it as I see no news content on the detail pages... But I think you missed that part of extensions->modules->news....help that says:
(optional) detailtemplate="sometemplate.tpl" - Use a separate template for displaying the article detail. It have to live in modules/News/templates.
this is from 0.12, so it may be different in your case.
pishkus

Re: Problems with display of News

Post by pishkus »

from 0.12 we have a possibility in news to:
(optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.
i'm not sure if this is on 0.11 cause i haven't tried this version.
anyway, upgrading would do no harm ;)
bclark

Re: Problems with display of News

Post by bclark »

thanks.  ill upgrade.

that brings me to my next questions....how do i see which version i am currently running?

EDIT - oh, i see, its in version.php.  I am running 0.11.2
Last edited by bclark on Fri Mar 17, 2006 6:17 am, edited 1 time in total.
bclark

Re: Problems with display of News

Post by bclark »

ummmmm...

i broke something.... to upgrade to version .12 i simply copied all the files over the existing ones (i dont want to lose the stylesheets and templates etc i created) and went to install/install.php  That was fine and said all my file permissions were ok, then the next page errors -

Fatal error: Call to undefined function: getdb() in /home/bclark/public_html/asrc/lib/content.functions.php on line 638

is this the wrong way to upgrade?  what have i done? is it recoverable?  help?

every other page in /admin/ gives me the same message, but the site itself errors gracefully with 'site down for maintenance'
bclark

Re: Problems with display of News

Post by bclark »

ah, seems like im a panic merchant.  ;D

i re-ftp'd all the files up and the site is back up and running.  i chose to only upload newer files, which is obvioulsy not the way to go.  now ill have a play around with the changing the templates as suggested above.
jelle

Re: Problems with display of News

Post by jelle »

there is an upgrade file to upgrade the db too. Reinstalling might wipe your previous db...
Locked

Return to “CMSMS Core”