From: Legault, P. [ITSUS] <PLEGAULT@ITS.JNJ.COM> - 2014-04-08 10:10:12
|
I tried to move to 1.9.1.1 however I have the 4store issues with sub objects. I'm not getting any specific error other than the information does not display. So I'm stuck on MW 1.21.2 SMW 1.8.0.5. -----Original Message----- From: James HK [mailto:jam...@gm...] Sent: Monday, April 07, 2014 4:40 PM To: Legault, Phillip [ITSUS] Cc: leo...@ho...; Hans Oleander; SMW User mailinglist Subject: Re: [Semediawiki-user] CURRENTYEAR Hi, Starting with SMW 1.9.2, you can use the rebuildData (SMW_refreshData) script with option --query [0, 1] to run a refresh on specific conditions (e.g. [2]) which might solve your issue to have only pages being updated on a scheduled basis. [0] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/243 [1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/244 [2] php rebuildData.php --query='[[Has End Date::+]]' or php SMW_refreshData.php --query='[[Has End Date::+]]' Cheers On 4/8/14, Legault, Phillip [ITSUS] <PLE...@it...> wrote: > > I’m using these pages for technology roadmaps. > We have a few thousand it employees who look at support timelines for > their application heat maps. > Our engineers need to maintain their roadmaps and not supported will > continue to be not supported forever. > So for not supported end dates we asked them to leave it empty and > allow this function to extend it out. > > Does not allow image > > > > > > > > From: Leonard Wallentin [mailto:leo...@gm...] > Sent: Monday, April 07, 2014 3:35 PM > To: Legault, Phillip [ITSUS] > Cc: Ad Strack van Schijndel; Hans Oleander; SMW User mailinglist > Subject: Re: [Semediawiki-user] CURRENTYEAR > > Not an answer to you question, but out of curiousity: Why on earth do > you need to set a property to the current date like that? Can't you > just get the date whenever you are using the information? > > /Leo > > _______________ > Leonard Wallentin > http://leowallentin.se > me...@le...<mailto:me...@le...> > > 2014-04-07 21:23 GMT+02:00 Legault, Phillip [ITSUS] > <PLE...@it...<mailto:PLE...@it...>>: > OK now that I have set in the template > |Has End Date={{{end date|{{#time: m-d-Y | now + 5 years}} }}} > > I need the data to be refreshed every day. > > I can run php runJobs.php that works for the first day you setup the > template or modifying a page will update the end date. > These pages are only referenced once they are set, however this date > needs updating each day. > > > > > From: Leonard Wallentin > [mailto:leo...@gm...<mailto:leo...@gm...>] > Sent: Thursday, April 03, 2014 6:09 AM > To: Ad Strack van Schijndel > Cc: Legault, Phillip [ITSUS]; Hans Oleander; SMW User mailinglist > Subject: Re: [Semediawiki-user] CURRENTYEAR > > If used in a template, I would highly recommend {{#time: Y | now + 4 > years}}, like Ad suggested. The result of {{CURRENTYEAR}} depends on > the content language of the page, and while {{#expr: 2014 + 4}} works > perfectly fine, {{#expr: ٢٠١٤ + 4}} will produce an error. > > The behaviour is a bit different depending on your MW version, if I > recall correctly, but you can try it on your own wiki by editing e.g. > MediaWiki:Test/ar or MediaWiki:Test/hi, and adding both variants: > *{{#expr: {{CURRENTYEAR}} + 4}} > *{{#time: Y | now + 4 years}} > > The second line will always work, the first will give an error on > recent MW versions. > > /Leo > > _______________ > Leonard Wallentin > http://leowallentin.se > me...@le...<mailto:me...@le...> > > 2014-04-03 9:20 GMT+02:00 Ad Strack van Schijndel > <ad....@gm...<mailto:ad....@gm...>>: > And what about this: {{#time: Y | now + 4 years}}. That works fine also. > And you can add month and day to the date as well. > > Ad > > Op 2 apr. 2014, om 19:36 heeft Legault, Phillip [ITSUS] > <PLEGAULT@ITS.JNJ.COM<mailto:PLEGAULT@ITS.JNJ.COM>> het volgende > geschreven: > > That was easy > Thank you > > From: Hans Oleander > [mailto:han...@gm...<mailto:han...@gm...>] > Sent: Wednesday, April 02, 2014 1:05 PM > To: Legault, Phillip [ITSUS] > Cc: > sem...@li...<mailto:semediawiki-user@lists.s > ourceforge.net> > Subject: Re: [Semediawiki-user] CURRENTYEAR > > {{#expr: {{CURRENTYEAR}} + 4 }} > cheers, > Hans > > 2014-04-02 18:59 GMT+02:00 Legault, Phillip [ITSUS] > <PLE...@it...<mailto:PLE...@it...><mailto:PLE...@it...<mailto:PLE...@it...>>>: > Is there a way set a date field to CURRENTYEAR plus 4 years? > > I can set it to 2014 CURRENTYEAR > Can I add 4 years to the current year to be 2018? > > > Thank You! > Phil > > > > ---------------------------------------------------------------------- > -------- _______________________________________________ > Semediawiki-user mailing list > Sem...@li...<mailto:Semediawiki-user@lists.s > ourceforge.net><mailto:Sem...@li...<mailto:S > eme...@li...>> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > ---------------------------------------------------------------------- > -------- _______________________________________________ > Semediawiki-user mailing list > Sem...@li...<mailto:Semediawiki-user@lists.s > ourceforge.net> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > ---------------------------------------------------------------------- > -------- _______________________________________________ > Semediawiki-user mailing list > Sem...@li...<mailto:Semediawiki-user@lists.s > ourceforge.net> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > > ---------------------------------------------------------------------- > -------- > Put Bad Developers to Shame > Dominate Development with Jenkins Continuous Integration Continuously > Automate Build, Test & Deployment Start a new project now. Try Jenkins > in the cloud. > http://p.sf.net/sfu/13600_Cloudbees > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > |