Hi Yaron!

I think that for SiteSettings this patch could make sense although I'm strongly against such interdependencies between extensions (after trying to contribute to PageSchemas)

Is AdminLinks mentioned in SMW? That's really strange and surprising - I thought it's just a header button and the predefined wikipage for the content (well, maybe it can also check, which extensions are installed).

-----
Yury Katkov


On Wed, Jul 16, 2014 at 4:25 AM, Yaron Koren <yaron@wikiworks.com> wrote:
Hi,

There are three extensions of mine that take a similar approach, where they provide a generic framework and other extensions add their own specific functionality in via hooks: Admin Links, Page Schemas and Site Settings. Semantic MediaWiki already hooks into the first two: Admin Links via a function, and Page Schemas with a class. [1] Site Settings [2] is the newest of these three, and SMW doesn't connect to it yet, but I would like to add code in to SMW to do that, most likely via another class, that would be called "SMWSiteSettings".

The code that interfaces with Page Schemas caused some controversy before on this mailing list (though the Admin Links code never did), so I thought I'd ask about it here before trying to send in a patch. I'm not planning on adding any testing code for this new code, just like there isn't for the Admin Links and Page Schemas code in SMW; but my philosophy, as I explained before when we talked about Page Schemas, is that, even in the worst case where the code crashes completely, it will not affect any of the other SMW functionality, so it can safely be ignored by SMW developers.

I certainly hope to be able to add such a patch in, but I look forward to any questions or comments.

[1]https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/includes/SMW_PageSchemas.php
[2]https://www.mediawiki.org/wiki/Extension:Site_Settings

-Yaron

--
WikiWorks MediaWiki Consulting http://wikiworks.com

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel