[SMW-devel] DisplayTitle and Wikibase

2019-10-10 Thread Olivier Rossel
Hi everyone.

Not sure it is the correct place to discuss that, but I am working on the
installation of Wikibase alongside SMW.

To allow human-readable links from SMW pages to Wikibase pages, I plan to
reuse the DisplayTitle extension.
I would need Wikibase to have an additional feature when saving the
(english) label of a page: also save it as the 'displaytitle' of that page
in the 'page_props' table.
The question is: how can I add this hook in Wikibase saving process?

Any help is welcome.
(and if I need to go and ask on the wikibase ML instead, feel free to tell)
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Need hook for page property changes

2019-10-10 Thread Krabina Bernhard
and you should look in to https://github.com/SemanticMediaWiki/SemanticTasks
which is maintained an can do that.

cheers,
Bernhard

PS: There is also a somewhat unmaintained extension that did somethink like 
that:
https://www.mediawiki.org/wiki/Extension:Semantic_Watchlist

- Am 10. Okt 2019 um 12:00 schrieb Sebastian Trueg tr...@truegeex.de:

> Hello SMW experts,
> 
> I am currently working on a simple extension that allows to send email
> notifications when a property of a page changes to a certain value.
> 
> To that end I need to check the new property value after a page
> modification.
> 
> Since SMW seems to use the Mediawiki hook PageContentSaveComplete itself
> I figured using that would not be safe.
> 
> Is the "AfterUpdateDispatcherJobComplete" hook a sensible place to queue
> jobs that would check those changes?
> 
> Thanks in advance.
> 
> Regards,
> Sebasian
> 
> --
> Sebastian Trueg
> Managing Director
> TrueGeeX UG (haftungsbeschränkt)
> tr...@truegeex.de
> http://www.linkedin.com/in/trueg
> Mobile: 0049 1762 3244 664
> 
> 
> ___
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


Re: [SMW-devel] Need hook for page property changes

2019-10-10 Thread Jeroen De Dauw
Hey Sebastian,

I suspect this hook is the most appropriate for your use case:
https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/6d3ce63cbeb3d2b881dfe6c255375c2b07e1b75d/src/Store.php#L240-L243

Cheers

--
Jeroen De Dauw | www.EntropyWins.wtf  |
www.Professional.Wiki 
Entrepreneur | Software Crafter | Speaker | Open Souce and Wikimedia
contributor
~=[,,_,,]:3
___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel


[SMW-devel] Need hook for page property changes

2019-10-10 Thread Sebastian Trueg
Hello SMW experts,

I am currently working on a simple extension that allows to send email
notifications when a property of a page changes to a certain value.

To that end I need to check the new property value after a page
modification.

Since SMW seems to use the Mediawiki hook PageContentSaveComplete itself
I figured using that would not be safe.

Is the "AfterUpdateDispatcherJobComplete" hook a sensible place to queue
jobs that would check those changes?

Thanks in advance.

Regards,
Sebasian

-- 
Sebastian Trueg
Managing Director
TrueGeeX UG (haftungsbeschränkt)
tr...@truegeex.de
http://www.linkedin.com/in/trueg
Mobile: 0049 1762 3244 664


___
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel