Page 1 of 1

Problems with display of News

Posted: Thu Mar 16, 2006 7:04 am
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

Re: Problems with display of News

Posted: Thu Mar 16, 2006 8:51 am
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.

Re: Problems with display of News

Posted: Thu Mar 16, 2006 9:13 am
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 ;)

Re: Problems with display of News

Posted: Fri Mar 17, 2006 6:15 am
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

Re: Problems with display of News

Posted: Fri Mar 17, 2006 6:34 am
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'

Re: Problems with display of News

Posted: Fri Mar 17, 2006 6:52 am
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.

Re: Problems with display of News

Posted: Fri Mar 17, 2006 8:36 am
by jelle
there is an upgrade file to upgrade the db too. Reinstalling might wipe your previous db...