Actually this is indeed a generic problem with MediaWiki. The factbox (or the category box) is created by the parser, but the data is only saved on a page edit.
I usually solve this problem by using the touch-Script from the PyWikipediaBot, as described on the link below, and run it on the imported pages. Or, if there are not many, you can just open the page, change anything, save, and then it's OK. <http://meta.wikimedia.org/wiki/Touch.py> <http://meta.wikimedia.org/wiki/Pywikipedia> If someone finds a general solution that does not include an external script, I would be grateful to hear it! cheers, denny Fernando Correia wrote: > An update: this may not be related to SMW. I was able to verify that a > category defined on the template is not applied to the page even tough > it is shown on the page footer. > > I will try to get some help on the general MediaWiki list, but if anyone > on this list can also help me I'd be grateful. > > 2007/1/30, Fernando Correia <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>: > > On my wiki we use attributes inside templates. This is working well > for pages that are edited manually. > > Now I need to import pages from text files into the wiki. All is > working well, except for SMW attributes inside templates. > > The code that creates the article is like this: > > function editPage(&$title, $text, $comment) > { > $article=new Article($title); > $article->doEdit($text, $comment); > return "OK"; > } > > If $text contains attributes, they are created and the inline query > for this attribute will show the new page. > > But if $text contains a template that defines attributes, the > attributes are shown on the fact box on the page footer, but the > page is not shown when I click on the query icon inside the fact box. > > I was able to verify that some important hook functions are being > called during $article->doEdit, specifically smwfParserHook and > smwfSaveHook. I also searched the SMW documentation and mailing list > but I couldn't find any new information on how to solve this problem. > > I'd be very grateful if someone could help me. After all, importing > pages is a common need that may happen to other users in the future. > > Thanks! > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Semediawiki-user mailing list > Semediawiki-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-user ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Semediawiki-user mailing list Semediawiki-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-user