[xwiki-devs] [Proposal] Add InterWiki link support
Hi, I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1. I'm proposing to add the interwiki definitions to xwiki.properties using the format: rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/ Then it's used like this for XWiki Syntax 2.1: [[interwiki:alias1:path]] For XWiki Syntax 2.0: [[path@alias1]] This generates in HTML: http://url1/path I have this already implemented, waiting to commit. Thanks -Vincent
Hi, On Tue, 28 Sep 2010 10:32:21 +0200, Vincent Massol <[email protected]> wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Please, what do we get with this? In a farm, being in a doc1 in subwiki1, could we get a doc2 created/existing in subwiki 2 included in doc1? If this is possible, how will access rights be managed? Could group1 defined in subwiki1 be a subgriup of group2 defined in subwiki2? Thanks! Ricardo
On 09/28/2010 10:45 AM, ricardo.rodriguez wrote:
Hi,
On Tue, 28 Sep 2010 10:32:21 +0200, Vincent Massol<[email protected]> wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Please, what do we get with this? In a farm, being in a doc1 in subwiki1, could we get a doc2 created/existing in subwiki 2 included in doc1?
If this is possible, how will access rights be managed? Could group1 defined in subwiki1 be a subgriup of group2 defined in subwiki2?
Interwiki links are not about links between two virtual wikis on the same XWiki farm, but about links to other external wikis. For example, you can make it easier to link to wikipedia using [[interwiki:wikipedia:XWiki]] which will point to http://en.wikipedia.org/wiki/XWiki , or to the main XWiki.org site using [[interwiki:devxwiki:Community/LogoChallenge]] which will point to http://dev.xwiki.org/xwiki/bin/view/Community/LogoChallenge . -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks. Sergiu Dumitriu wrote:
Interwiki links are not about links between two virtual wikis on the same XWiki farm, but about links to other external wikis. For example, you can make it easier to link to wikipedia using [[interwiki:wikipedia:XWiki]] which will point to http://en.wikipedia.org/wiki/XWiki , or to the main XWiki.org site using [[interwiki:devxwiki:Community/LogoChallenge]] which will point to http://dev.xwiki.org/xwiki/bin/view/Community/LogoChallenge .
Considering a wiki farm as an excellent metaphor for "ecosystem" of groups with crossed interests, it will is feasible to expect that cases will arise where contents on an given subwiki would be welcome in another one. I'm currently using a 2.4.1 XE/XEM installation. Provided I'm I in a controller, should I be able to see all subwiki documents when creating links in the WYSIWYG editor? Must I be able to see documents in the controller or other subwikis when I am in a given subwiki? Is there a way of set the scope of visibility? Please, accept my apologies in advance if this questions are already answered or the answer is tied to some work in progress! I'm just trying to get a general idea about how inter-subwiki (within a XWiki farm) relations work. Thanks for your help! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
On Wed, Sep 29, 2010 at 17:43, [Ricardo Rodriguez] eBioTIC. <[email protected]> wrote:
Thanks.
Sergiu Dumitriu wrote:
Interwiki links are not about links between two virtual wikis on the same XWiki farm, but about links to other external wikis. For example, you can make it easier to link to wikipedia using [[interwiki:wikipedia:XWiki]] which will point to http://en.wikipedia.org/wiki/XWiki , or to the main XWiki.org site using [[interwiki:devxwiki:Community/LogoChallenge]] which will point to http://dev.xwiki.org/xwiki/bin/view/Community/LogoChallenge .
Considering a wiki farm as an excellent metaphor for "ecosystem" of groups with crossed interests, it will is feasible to expect that cases will arise where contents on an given subwiki would be welcome in another one. I'm currently using a 2.4.1 XE/XEM installation. Provided I'm I in a controller, should I be able to see all subwiki documents when creating links in the WYSIWYG editor? Must I be able to see documents in the controller or other subwikis when I am in a given subwiki? Is there a way of set the scope of visibility?
Sergiu forgot to say that your use case is already covered and since a long time: the real full reference of a document include the wiki identifier as in "wikiid:Space:Page" and is supported everywhere you manipulate document references: - in a link: [[wiki1:Space.Page]] tagets the page "Page" in space "Space" and wiki "wiki1" - in include macro: {{include document="wiki1:Space.Page"/}} include the content of page "Page" in space "Space" and wiki "wiki1" in your page etc.
Please, accept my apologies in advance if this questions are already answered or the answer is tied to some work in progress! I'm just trying to get a general idea about how inter-subwiki (within a XWiki farm) relations work.
Thanks for your help!
Ricardo
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi! Thomas Mortagne wrote:
Considering a wiki farm as an excellent metaphor for "ecosystem" of groups with crossed interests, it will is feasible to expect that cases will arise where contents on an given subwiki would be welcome in another one. I'm currently using a 2.4.1 XE/XEM installation. Provided I'm I in a controller, should I be able to see all subwiki documents when creating links in the WYSIWYG editor? Must I be able to see documents in the controller or other subwikis when I am in a given subwiki? Is there a way of set the scope of visibility?
Sergiu forgot to say that your use case is already covered and since a long time: the real full reference of a document include the wiki identifier as in "wikiid:Space:Page" and is supported everywhere you manipulate document references:
I've not used this kind of references yet, but I guessed it must work as it also exists global visibility for users. After all, a "type" of document. What I don't see that clear is if there will be an "extra" system to control the scope of visibility (for instance, being in a given subwiki A, we only able to reference documents in B and C but not in D), or if this will be controlled by trustees right assignments as in search.
- in a link: [[wiki1:Space.Page]] tagets the page "Page" in space "Space" and wiki "wiki1" - in include macro: {{include document="wiki1:Space.Page"/}} include the content of page "Page" in space "Space" and wiki "wiki1" in your page etc.
As said in a previous message, I see some incongruences between the actual pages and the pages offered by the create link window in the WYSIWYG editor. Or, even Firefox hangs when I go to All Pages tab. Search gives me results on any subwiki, but search within create a link window, doesn't. We are on the go to update to 2.4.3, so perhaps I must try again when the migration is done. Hope this makes some sense for you. Greetings, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Hi Ricardo, On 09/30/2010 12:32 AM, [Ricardo Rodriguez] eBioTIC. wrote:
Hi!
Thomas Mortagne wrote:
Considering a wiki farm as an excellent metaphor for "ecosystem" of groups with crossed interests, it will is feasible to expect that cases will arise where contents on an given subwiki would be welcome in another one. I'm currently using a 2.4.1 XE/XEM installation. Provided I'm I in a controller, should I be able to see all subwiki documents when creating links in the WYSIWYG editor? Must I be able to see documents in the controller or other subwikis when I am in a given subwiki? Is there a way of set the scope of visibility?
Sergiu forgot to say that your use case is already covered and since a long time: the real full reference of a document include the wiki identifier as in "wikiid:Space:Page" and is supported everywhere you manipulate document references:
I've not used this kind of references yet, but I guessed it must work as it also exists global visibility for users. After all, a "type" of document.
What I don't see that clear is if there will be an "extra" system to control the scope of visibility (for instance, being in a given subwiki A, we only able to reference documents in B and C but not in D), or if this will be controlled by trustees right assignments as in search.
- in a link: [[wiki1:Space.Page]] tagets the page "Page" in space "Space" and wiki "wiki1" - in include macro: {{include document="wiki1:Space.Page"/}} include the content of page "Page" in space "Space" and wiki "wiki1" in your page etc.
As said in a previous message, I see some incongruences between the actual pages and the pages offered by the create link window in the WYSIWYG editor. Or, even Firefox hangs when I go to All Pages tab.
Search gives me results on any subwiki, but search within create a link window, doesn't.
That's normal because the WYSIWYG editor searches only in the current wiki. Marius
We are on the go to update to 2.4.3, so perhaps I must try again when the migration is done.
Hope this makes some sense for you.
Greetings,
Ricardo
Marius Dumitru Florea wrote:
Search gives me results on any subwiki, but search within create a link window, doesn't.
That's normal because the WYSIWYG editor searches only in the current wiki.
That's clear, and that's the reason why I said it could be useful to have a switch there allowing/disallowing to search all wikis. Something similar to the switch available in the Add user to group option when editing groups in a subwiki allowing to look for Local or Global users. In the case of user management, I think it is logic that when at controller level you can only see users defined at that level, but when you are in a subwiki, you can add global users to local groups. But when dealing with documents, I think it would be useful to list available documents in each/some subwikis to establish links in documents created in the controlled. Even thinking about users, it would be nice that an user defined in a subwiki would be able to access some controller's contents, but I have no idea about the possibility of implementation of this feature considering the current architecture. I see this like a huge mess! Coming back to your statement: "the WYSIWYG editor searches only in the current wiki". In our current farm running XE/XEM 2.4.1, the WYSIWYG editor search doesn't show all current wiki pages. Raluca and Thibaut are working there. You could even check on your own that behaviour. Thanks! -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
On 09/30/2010 12:05 PM, [Ricardo Rodriguez] eBioTIC. wrote:
Marius Dumitru Florea wrote:
Search gives me results on any subwiki, but search within create a link window, doesn't.
That's normal because the WYSIWYG editor searches only in the current wiki.
That's clear, and that's the reason why I said it could be useful to have a switch there allowing/disallowing to search all wikis. Something similar to the switch available in the Add user to group option when editing groups in a subwiki allowing to look for Local or Global users.
In the case of user management, I think it is logic that when at controller level you can only see users defined at that level, but when you are in a subwiki, you can add global users to local groups.
But when dealing with documents, I think it would be useful to list available documents in each/some subwikis to establish links in documents created in the controlled.
Even thinking about users, it would be nice that an user defined in a subwiki would be able to access some controller's contents, but I have no idea about the possibility of implementation of this feature considering the current architecture. I see this like a huge mess!
Coming back to your statement: "the WYSIWYG editor searches only in the current wiki". In our current farm running XE/XEM 2.4.1, the WYSIWYG editor search doesn't show all current wiki pages.
Which pages are not shown? Can you give me an example? What do you search for and which page is not matched by the search although it should? Marius
Raluca and Thibaut are working there. You could even check on your own that behaviour.
Thanks!
Marius Dumitru Florea wrote:
Coming back to your statement: "the WYSIWYG editor searches only in the current wiki". In our current farm running XE/XEM 2.4.1, the WYSIWYG editor search doesn't show all current wiki pages.
Which pages are not shown? Can you give me an example? What do you search for and which page is not matched by the search although it should?
I'm explaining wrongly the problem: search works fine, what is doing bad is "All pages" tab which hangs. Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
On 09/30/2010 12:43 PM, [Ricardo Rodriguez] eBioTIC. wrote:
Marius Dumitru Florea wrote:
Coming back to your statement: "the WYSIWYG editor searches only in the current wiki". In our current farm running XE/XEM 2.4.1, the WYSIWYG editor search doesn't show all current wiki pages.
Which pages are not shown? Can you give me an example? What do you search for and which page is not matched by the search although it should?
I'm explaining wrongly the problem: search works fine, what is doing bad is "All pages" tab which hangs. Thanks!
Ah.. the XWiki Explorer tree is a bit heavy and doesn't behave nicely when you have lots of pages ( http://jira.xwiki.org/jira/browse/XWIKI-5484 ). Additionally, it retrieves the list of spaces and pages using REST and there have been some issues with access rights in multiwiki ( http://jira.xwiki.org/jira/browse/XWIKI-5542 ). Marius
Ricardo
Marius Dumitru Florea wrote:
Ah.. the XWiki Explorer tree is a bit heavy and doesn't behave nicely when you have lots of pages ( http://jira.xwiki.org/jira/browse/XWIKI-5484 ). Additionally, it retrieves the list of spaces and pages using REST and there have been some issues with access rights in multiwiki ( http://jira.xwiki.org/jira/browse/XWIKI-5542 ).
I see... thanks and sorry for the noise! Voted both Jira issues. But I think you must remove "when you have a lot of pages" :-) This wiki is almost empty! Greetings! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
+1 Caleb Vincent Massol wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Then it's used like this for XWiki Syntax 2.1: [[interwiki:alias1:path]]
For XWiki Syntax 2.0: [[path@alias1]]
This generates in HTML: http://url1/path
I have this already implemented, waiting to commit.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
+1 On Tue, Sep 28, 2010 at 10:32, Vincent Massol <[email protected]> wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Then it's used like this for XWiki Syntax 2.1: [[interwiki:alias1:path]]
For XWiki Syntax 2.0: [[path@alias1]]
This generates in HTML: http://url1/path
I have this already implemented, waiting to commit.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
+1 Thanks, Marius On 09/28/2010 11:32 AM, Vincent Massol wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Then it's used like this for XWiki Syntax 2.1: [[interwiki:alias1:path]]
For XWiki Syntax 2.0: [[path@alias1]]
This generates in HTML: http://url1/path
I have this already implemented, waiting to commit.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 09/28/2010 10:32 AM, Vincent Massol wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Then it's used like this for XWiki Syntax 2.1: [[interwiki:alias1:path]]
For XWiki Syntax 2.0: [[path@alias1]]
This generates in HTML: http://url1/path
+1. It doesn't bring much value over direct URLs, but it could be useful once the WYSIWYG provides some extended support for creating interwiki links. An idea would be to use OpenSearch to get suggestions for page names from the external wiki, if it's supported.
I have this already implemented, waiting to commit.
-- Sergiu Dumitriu http://purl.org/net/sergiu/
On Sep 28, 2010, at 1:30 PM, Sergiu Dumitriu wrote:
On 09/28/2010 10:32 AM, Vincent Massol wrote:
Hi,
I'd like to add interwiki support in XWiki Syntax 2.0 and 2.1.
I'm proposing to add the interwiki definitions to xwiki.properties using the format:
rendering.interWikiDefinitions = alias1=http://url1/ rendering.interWikiDefinitions = aliasN=http://urlN/
Then it's used like this for XWiki Syntax 2.1: [[interwiki:alias1:path]]
For XWiki Syntax 2.0: [[path@alias1]]
This generates in HTML: http://url1/path
+1. It doesn't bring much value over direct URLs, but it could be useful once the WYSIWYG provides some extended support for creating interwiki links. An idea would be to use OpenSearch to get suggestions for page names from the external wiki, if it's supported.
It also allows us to support a "standard" feature of wikis. Since we had put on wikimatrix that we support interwiki links we had to have it... ;) Side note: if we want we could have an "iw" alias as the link type to provide a shorthand. Not sure it's required though. BTW there were 2 votes for this feature so at least 2 persons were waiting for it ;) Thanks -Vincent
I have this already implemented, waiting to commit.
participants (7)
-
[Ricardo Rodriguez] eBioTIC. -
Caleb James DeLisle -
Marius Dumitru Florea -
ricardo.rodriguez -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol