Re: [xwiki-users] Double backslahs escaping in links with macro parameters

2016-06-01 Thread Marius Dumitru Florea
On Wed, Jun 1, 2016 at 7:31 PM, Peter Müller 
wrote:

> Hi,
>
> i create a macro that renders a link by using macro parameters. The link
> name should be prefixed with double backslashs.
>
> The macro body looks like that:
>
> {{velocity}}
> [[~~\~~\ $xcontext.macro.params.name
> ">>url:file://$xcontext.macro.params.link||rel="__blank"]]
> {{/velocity}}
>
> Instead of the expected out of "\\Name of the link" I get "\\$
> xcontext.macro.params.name". The parameter is only evaluated correctly if
> I
> insert a space after the last backlash, so the last backlash prevents the
> parameter evaluation. How I have to escape the double quots correctly?
>

Backslash is an escaping character in Velocity. See
https://velocity.apache.org/engine/devel/user-guide.html#escapingvalidvtlreferences
.

Hope this helps,
Marius


>
> Best regards
>
> Peter
> ___
> 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


[xwiki-users] Double backslahs escaping in links with macro parameters

2016-06-01 Thread Peter Müller
Hi,

i create a macro that renders a link by using macro parameters. The link
name should be prefixed with double backslashs.

The macro body looks like that:

{{velocity}}
[[~~\~~\ $xcontext.macro.params.name
">>url:file://$xcontext.macro.params.link||rel="__blank"]]
{{/velocity}}

Instead of the expected out of "\\Name of the link" I get "\\$
xcontext.macro.params.name". The parameter is only evaluated correctly if I
insert a space after the last backlash, so the last backlash prevents the
parameter evaluation. How I have to escape the double quots correctly?

Best regards

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


[xwiki-users] [ANN] CKEditor Integration v1.7 Released

2016-06-01 Thread Marius Dumitru Florea
Hi all,

A new version of the CKEditor Integration extension is available. It brings
the ability to insert and edit wiki macros. See
http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration#Hv1.7
. You can install or upgrade with the Extension Manager.

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


Re: [xwiki-users] zooming on images to view them in their original size

2016-06-01 Thread Hamster
Or use the Lightbox Macro...

http://extensions.xwiki.org/xwiki/bin/view/Extension/Lightbox+Macro




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/zooming-on-images-to-view-them-in-their-original-size-tp7599746p7599750.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] zooming on images to view them in their original size

2016-06-01 Thread Eduard Moraru
Hi,

On Wed, Jun 1, 2016 at 11:32 AM, Bruno  wrote:

>
> Le 01/06/2016 09:32, Marius Dumitru Florea a écrit :
>
>> On Wed, Jun 1, 2016 at 10:09 AM, Bruno 
>> wrote:
>>
>> Hello,
>>>
>>> I use XWiki Enterprise 7.4.2.
>>>
>>>
>> I would like to be able to zoom on my images to view them in their
>>> original size.
>>>
>>> How do you display your images?
>>
>>
> I insert my images via the menu "Image" of the editor, then "External
> image".
> An image can be resized to fit in an article. But the details and the text
> may not be legible. I'd like to be able to click on the image to view it in
> its original size.
>
> I know that targeting an image via a link works. But in this case, the
> image must be accessible on a storage without authentication. Moreover, it
> must be easily accessible and usable by users. Not simple.


Just click on your image and then click on Link > Web Page and fill in
again the URL of the image. In wiki syntax it should look like image:
http://link.to/your/image.png]]>>url:http://link.to/your/image.png]]. You
are creating a link that has an image as its label. (switch to wiki
pages/attachments if you are not using URLs)

This is also documented in the syntax guide, entry "Link on an image":
http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Links

Hope this helps,
Eduard

>
>
>
> How can I do this please ?
>>>
>>> Thanks !
>>>
>>> Signature mails
>>> _
>>>
>>> Bruno Joffredo
>>>
>>> Ecole Centrale de Nantes
>>>
>>> Centre de Ressources Informatiques - Bur. D019
>>>
>>> 1 rue de la Noë
>>>
>>> BP 92101
>>>
>>> F-44321 Nantes cedex 3
>>>
>>> Tél. 02.40.37.68.06
>>> Mail : bruno.joffr...@ec-nantes.fr 
>>> _
>>>
>>>
>>> ___
>>> 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
>>
> _
>
> Bruno Joffredo
>
> Ecole Centrale de Nantes
>
> Centre de Ressources Informatiques - Bur. D019
>
> 1 rue de la Noë
>
> BP 92101
>
> F-44321 Nantes cedex 3
>
> Tél. 02.40.37.68.06
> Mail : bruno.joffr...@ec-nantes.fr 
> _
> ___
> 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] zooming on images to view them in their original size

2016-06-01 Thread Bruno


Le 01/06/2016 09:32, Marius Dumitru Florea a écrit :

On Wed, Jun 1, 2016 at 10:09 AM, Bruno  wrote:


Hello,

I use XWiki Enterprise 7.4.2.




I would like to be able to zoom on my images to view them in their
original size.


How do you display your images?



I insert my images via the menu "Image" of the editor, then "External 
image".
An image can be resized to fit in an article. But the details and the 
text may not be legible. I'd like to be able to click on the image to 
view it in its original size.


I know that targeting an image via a link works. But in this case, the 
image must be accessible on a storage without authentication. Moreover, 
it must be easily accessible and usable by users. Not simple.




How can I do this please ?

Thanks !

Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


___
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

_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] zooming on images to view them in their original size

2016-06-01 Thread Marius Dumitru Florea
On Wed, Jun 1, 2016 at 10:09 AM, Bruno  wrote:

>
> Hello,
>
> I use XWiki Enterprise 7.4.2.
>


> I would like to be able to zoom on my images to view them in their
> original size.
>

How do you display your images?


> How can I do this please ?
>
> Thanks !
>
> Signature mails
> _
>
> Bruno Joffredo
>
> Ecole Centrale de Nantes
>
> Centre de Ressources Informatiques - Bur. D019
>
> 1 rue de la Noë
>
> BP 92101
>
> F-44321 Nantes cedex 3
>
> Tél. 02.40.37.68.06
> Mail : bruno.joffr...@ec-nantes.fr 
> _
>
>
> ___
> 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


[xwiki-users] zooming on images to view them in their original size

2016-06-01 Thread Bruno


Hello,

I use XWiki Enterprise 7.4.2.
I would like to be able to zoom on my images to view them in their 
original size.

How can I do this please ?

Thanks !

Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


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