Forum OpenACS Development: xowiki news prototype page

Collapse
Posted by Avni Khatri on
Hi -

I am having trouble using the news prototype page in xowiki 0.60.
I went to:
/xowiki/?import_prototype_page=news
in my browser. The news page was created in /xowiki/admin/list
but when I try to view the page, I get the following error:

Cannot lookup page en:news-item
while executing
"error "Cannot lookup page $t""
(procedure "init" line 58)
::xotcl::__#0 ::xowiki::Weblog->init
::xowiki::Weblog ::xotcl::Class->create
::xowiki::Weblog ::xotcl::Class->new
invoked from within
"::xowiki::Weblog new -destroy_on_cleanup -package_id $package_id -page_size $page_size -page_number $page_number -summary $summary -date $date -..."
(procedure "content" line 24)
::1059::payload->content
invoked from within....

Has anyone encountered this?
Thanks in advance.

Avni

Collapse
Posted by Avni Khatri on
I should say - I am using Oracle 9i.

Avni

Collapse
Posted by Malte Sussdorff on
Doesn't /xowiki/news work out of the Box? And do you already have some News created (with the NewsForm). I think it is mandator that you first create the FormPage of type news-item before you can access /news, but I am not sure.
Collapse
Posted by Gustaf Neumann on
the news-item does not install itself fully automatically, when news is called (maybe it should in the future). do the following
  • type in: .../xowiki/news-item
  • type in: .../xowiki/news
alternatively, you could do in the first step xowiki/?import_prototype_page=news-item

explanation: "news" uses two prototype pages, "news" and "news-item". "news" is the summary page, "news-item" is the form to add and update news entries.

hope, this helps.

Collapse
Posted by Avni Khatri on
Gustaf -

Thanks, this works!

Avni

Collapse
Posted by Eduardo Santos on
Hi everybody,

I'm trying to use Malte's import scripts from lars-blogger package, as you can see in this post:

http://www.openacs.org/forums/message-view?message_id=1153051

I'm doing these steps to import:

1 - Go to the link /xowiki/news-item, wich creates de xowiki::Form for the news, if I'm not wrong

2 - Use the script in the ds/shell giving the package_id for the xowiki and the lars-blogger instance

The import goes without any errors, but the news content is not being exported. When I access the /xowiki/news page, I can only see the news title; its content just disappears. My XoWiki version is 0.60. Am I losing something that should be done in order to make it work?