That's true in my case too. Let's create a bug? ----- Yury Katkov, WikiVote
On Tue, Feb 19, 2013 at 8:16 AM, Lists <li...@psycholutions.com> wrote: > SMW 1.8.x > > Hello, > > > semantic properties do not show up on factbox if programatically generated > via PHP. > > Someone allready commented this with the advice to invalidate the cache > without explaining how. > > I guess I do this and it seems to be a real bug not a cache problem. > > Here comes the code...every tip/hint/fix is very welcome! > > [...] > SMWDIProperty::registerProperty( '___EXIFSOFTWARE', '_str','MyNewProp'); > SMWDIProperty::registerPropertyAlias( '___EXIFSOFTWARE', 'MyNewProp' ) > [...] > > public function UpdateDataBefore($store, $data ){ > global $wgUser,$wgEnableParserCache,$wgParser; > $wgParser->disableCache(); > $wgEnableParserCache = false; > > $str = "EinTestString"; > $property = new SMWDIProperty( '___EXIFSOFTWARE' ); > $dataItem = new SMWDIString( $str ); > $data->addPropertyObjectValue($property, $dataItem); > > [...] > > PS: > > 1. The Properties show up on Special:Browse but not on the factbox! > Also the PHP-generated properties are automatically declared as special > properties...I don't know why. > > 2. If someone could provide some code snipped too, to demonstrate how to > manipulate -->$data<-- on the fly in an UpdateDataBefore-handler > this would be very very nice and open some doors to new innovations. This > doc here is not enough: > http://semantic-mediawiki.org/wiki/SMW_Hooks/SMWStore::updateDataBefore > > c u Steve > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Semediawiki-devel mailing list > Semediawiki-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/semediawiki-devel ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel