Re: [xwiki-users] Automatically creating links in wiki pages because of specific wiki syntax

2013-09-11 Thread Daniel Isenmann

Am 11.09.2013 21:46, schrieb Sergiu Dumitriu:

On 09/11/2013 08:37 AM, Vincent Massol wrote:

Hi Daniel,

On Sep 11, 2013, at 2:32 PM, Daniel Isenmann  wrote:


Hi everybody,

I want to know if there is something similar in xwiki like in for example 
dokuwiki. There exists a plugin which creates automatically links in wiki pages if 
you write the following wiki syntax: [[bug>7884]] This will generates a link to 
bugzilla to the following URL:
https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just have this 
small piece of text and you will get a perfect link to bugzilla with the text:  
Bug 7884. It als renders the small bugzilla icon before the text, but that's 
not necessary. Would be nice, but isn't that important.

Now is there something similar or can I achieve this with the help of a macro 
or script in xwiki?

This can be achieved with the notion of Rendering Transformation, see:
http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations

And also:
http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransformation


Actually those are called "interwiki links" and it's something XWiki
always supported.

To enable:

1. edit WEB-INF/xwiki.properties and add something like:

rendering.interWikiDefinitions = bug =
https://bugzilla.mozilla.org/show_bug.cgi?id=

Replace "bug" with a better name if you want, and of course the correct
URL to Bugzilla

2. Restart XWiki

3. Use the following syntax:

[[interwiki:bug:123]]
[[See bug #123>>interwiki:bug:123]]
[[See bug #123>>interwiki:bug:123||class="bugzilla"]]



Hi Vincent,

thanks for this hint. It works great and is absolutely that what I have 
been looking for.


Thanks
Daniel
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatically creating links in wiki pages because of specific wiki syntax

2013-09-11 Thread Vincent Massol

On Sep 11, 2013, at 9:46 PM, Sergiu Dumitriu  wrote:

> On 09/11/2013 08:37 AM, Vincent Massol wrote:
>> Hi Daniel,
>> 
>> On Sep 11, 2013, at 2:32 PM, Daniel Isenmann  wrote:
>> 
>>> Hi everybody,
>>> 
>>> I want to know if there is something similar in xwiki like in for example 
>>> dokuwiki. There exists a plugin which creates automatically links in wiki 
>>> pages if you write the following wiki syntax: [[bug>7884]] This will 
>>> generates a link to bugzilla to the following URL:
>>> https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just have 
>>> this small piece of text and you will get a perfect link to bugzilla with 
>>> the text:  Bug 7884. It als renders the small bugzilla icon before the 
>>> text, but that's not necessary. Would be nice, but isn't that important.
>>> 
>>> Now is there something similar or can I achieve this with the help of a 
>>> macro or script in xwiki?
>> 
>> This can be achieved with the notion of Rendering Transformation, see:
>> http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations
>> 
>> And also:
>> http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransformation
>> 
> 
> Actually those are called "interwiki links" and it's something XWiki
> always supported.
> 
> To enable:
> 
> 1. edit WEB-INF/xwiki.properties and add something like:
> 
> rendering.interWikiDefinitions = bug =
> https://bugzilla.mozilla.org/show_bug.cgi?id=
> 
> Replace "bug" with a better name if you want, and of course the correct
> URL to Bugzilla
> 
> 2. Restart XWiki
> 
> 3. Use the following syntax:
> 
> [[interwiki:bug:123]]
> [[See bug #123>>interwiki:bug:123]]
> [[See bug #123>>interwiki:bug:123||class="bugzilla"]]

Indeed, thanks Sergiu, I replied in a bit too generic manner :)

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatically creating links in wiki pages because of specific wiki syntax

2013-09-11 Thread Dmitry Bakbardin
 Hi, Daniel,

IMHO, it's better to use macro in such a case:
- it is more flexible
- you can use it via WYSIWYG editor
- you're not dependent on "external" XWiki configuration from server side, so 
it will just work on other XWiki instance from the scratch
- you're at the safe side if Development Team once will change smth in 
interwiki engine :-)

Kind regards,

Dmitry

Среда, 11 сентября 2013, 15:46 -04:00 от Sergiu Dumitriu :
>On 09/11/2013 08:37 AM, Vincent Massol wrote:
>> Hi Daniel,
>> 
>> On Sep 11, 2013, at 2:32 PM, Daniel Isenmann < daniel.isenm...@gmx.de > 
>> wrote:
>> 
>>> Hi everybody,
>>>
>>> I want to know if there is something similar in xwiki like in for example 
>>> dokuwiki. There exists a plugin which creates automatically links in wiki 
>>> pages if you write the following wiki syntax: [[bug>7884]] This will 
>>> generates a link to bugzilla to the following URL:
>>>  https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just have 
>>> this small piece of text and you will get a perfect link to bugzilla with 
>>> the text:  Bug 7884. It als renders the small bugzilla icon before the 
>>> text, but that's not necessary. Would be nice, but isn't that important.
>>>
>>> Now is there something similar or can I achieve this with the help of a 
>>> macro or script in xwiki?
>> 
>> This can be achieved with the notion of Rendering Transformation, see:
>>  http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations
>> 
>> And also:
>>  
>> http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransformation
>> 
>
>Actually those are called "interwiki links" and it's something XWiki
>always supported.
>
>To enable:
>
>1. edit WEB-INF/xwiki.properties and add something like:
>
>rendering.interWikiDefinitions = bug =
>https://bugzilla.mozilla.org/show_bug.cgi?id =
>
>Replace "bug" with a better name if you want, and of course the correct
>URL to Bugzilla
>
>2. Restart XWiki
>
>3. Use the following syntax:
>
>[[interwiki:bug:123]]
>[[See bug #123>>interwiki:bug:123]]
>[[See bug #123>>interwiki:bug:123||class="bugzilla"]]
>
>-- 
>Sergiu Dumitriu
>http://purl.org/net/sergiu
>___
>users mailing list
>users@xwiki.org
>http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatically creating links in wiki pages because of specific wiki syntax

2013-09-11 Thread Sergiu Dumitriu
On 09/11/2013 08:37 AM, Vincent Massol wrote:
> Hi Daniel,
> 
> On Sep 11, 2013, at 2:32 PM, Daniel Isenmann  wrote:
> 
>> Hi everybody,
>>
>> I want to know if there is something similar in xwiki like in for example 
>> dokuwiki. There exists a plugin which creates automatically links in wiki 
>> pages if you write the following wiki syntax: [[bug>7884]] This will 
>> generates a link to bugzilla to the following URL:
>> https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just have 
>> this small piece of text and you will get a perfect link to bugzilla with 
>> the text:  Bug 7884. It als renders the small bugzilla icon before the text, 
>> but that's not necessary. Would be nice, but isn't that important.
>>
>> Now is there something similar or can I achieve this with the help of a 
>> macro or script in xwiki?
> 
> This can be achieved with the notion of Rendering Transformation, see:
> http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations
> 
> And also:
> http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransformation
> 

Actually those are called "interwiki links" and it's something XWiki
always supported.

To enable:

1. edit WEB-INF/xwiki.properties and add something like:

rendering.interWikiDefinitions = bug =
https://bugzilla.mozilla.org/show_bug.cgi?id=

Replace "bug" with a better name if you want, and of course the correct
URL to Bugzilla

2. Restart XWiki

3. Use the following syntax:

[[interwiki:bug:123]]
[[See bug #123>>interwiki:bug:123]]
[[See bug #123>>interwiki:bug:123||class="bugzilla"]]

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Search box in Add Macro.

2013-09-11 Thread Marius Dumitru Florea
See http://jira.xwiki.org/browse/XWIKI-8613 . It's not easy to
implement a generic solution (the WYSIWYG editor needs more
information from the Rendering / server side about the macro parameter
type, not just it's Java type as it gets now, in order to know which
widget to display as input). As for a custom solution, you need to
modify the editor code, but that's not trivial either..

On Wed, Sep 11, 2013 at 9:19 AM, shashidhar patil
<1.more.shashid...@gmail.com> wrote:
> Hey,
>
> I have created a macro which helps me to point to another page. I would
> like to implement a feature where in the WYSIWYG editor mode in the add
> macro tab, I wanted to be able to type the page name in a search box
> instead of a normal text box. This way the user can search for a given page
> and it could directly help to validate the page.
>
> Thanks and Regards,
> Shashidhar P
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Category/Topic with with + symbol in name get created with wrong page names (e.g. C++Programming becomes CProgramming)

2013-09-11 Thread Vincent Massol
Hi Jim,

On Sep 11, 2013, at 2:41 PM, jimcherian  wrote:

> Can someone help? It seems to be a fundamental issue.
> 
> Even no one has responded to the JIRA post
> (http://jira.xwiki.org/browse/XBB-10). Is there some procedure I have to
> follow or some extra information to be mentioned, so that someone could
> start checking that.

Sorry about that. You should understand that the Bulletin Board extension is an 
extension contributed by some individuals (Guillaume Lerouge and Oana Tabaranu 
mostly) who are not part of the XWiki Development Team. This is indicated on 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application 
in the "Developed By" field.

I've pinged Guillaume since I know him personally but I don't know if he'll 
have the time to look at this.

So basically someone in the community needs to find some interest about this 
and fix the issue… It could be you looking at fixing this too if you have 
time/dev knowledge! :)

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Category/Topic with with + symbol in name get created with wrong page names (e.g. C++Programming becomes CProgramming)

2013-09-11 Thread jimcherian
Can someone help? It seems to be a fundamental issue.

Even no one has responded to the JIRA post
(http://jira.xwiki.org/browse/XBB-10). Is there some procedure I have to
follow or some extra information to be mentioned, so that someone could
start checking that.

Thanks,
Jim



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Category-Topic-with-with-symbol-in-name-get-created-with-wrong-page-names-e-g-C-Programming-becomes--tp7586848p7586988.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatically creating links in wiki pages because of specific wiki syntax

2013-09-11 Thread Vincent Massol
Hi Daniel,

On Sep 11, 2013, at 2:32 PM, Daniel Isenmann  wrote:

> Hi everybody,
> 
> I want to know if there is something similar in xwiki like in for example 
> dokuwiki. There exists a plugin which creates automatically links in wiki 
> pages if you write the following wiki syntax: [[bug>7884]] This will 
> generates a link to bugzilla to the following URL:
> https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just have 
> this small piece of text and you will get a perfect link to bugzilla with the 
> text:  Bug 7884. It als renders the small bugzilla icon before the text, but 
> that's not necessary. Would be nice, but isn't that important.
> 
> Now is there something similar or can I achieve this with the help of a macro 
> or script in xwiki?

This can be achieved with the notion of Rendering Transformation, see:
http://rendering.xwiki.org/xwiki/bin/view/Main/Transformations

And also:
http://rendering.xwiki.org/xwiki/bin/view/Main/Extending#HAddinganewTransformation

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Automatically creating links in wiki pages because of specific wiki syntax

2013-09-11 Thread Daniel Isenmann

Hi everybody,

I want to know if there is something similar in xwiki like in for 
example dokuwiki. There exists a plugin which creates automatically 
links in wiki pages if you write the following wiki syntax: [[bug>7884]] 
This will generates a link to bugzilla to the following URL:
https://bugzilla-server/show_bug.cgi?id=7884 So in wiki code you just 
have this small piece of text and you will get a perfect link to 
bugzilla with the text:  Bug 7884. It als renders the small bugzilla 
icon before the text, but that's not necessary. Would be nice, but isn't 
that important.


Now is there something similar or can I achieve this with the help of a 
macro or script in xwiki?


Thanks in advance
Daniel
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users