Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 21 Oct 2016, at 00:06, Jan-Paul Kleijn wrote: > > Pascal, > > I advise you not to use the style tag in HTML (or WIKI code for that matter) > - only as a last resort. It is good practice to separate structure from > presentation. W3C made a rather comprehensive explanation on this, see link > below. Indeed it’s better to set style attributes in CSS. Luckily XWiki makes this easy to do, by providing Skin Extensions, see: http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial Thanks -Vincent > > https://www.w3.org/2001/tag/doc/contentPresentation-26.html > > It may seem like a little cumbersome now, but it will help you in the end. > > Greetings, > Jan-Paul > > > Op 20-10-2016 om 11:10 schreef Vincent Massol: >>> On 20 Oct 2016, at 11:08, Pascal BASTIEN wrote: >>> >>> > Yes it is correct, but what I want to add in syntax guide (if you agree) is these 2 way: > - to close style with (%%) only for inline content and only needed if you need to style only a potion of the inlined content. >>> yes it was my intention :-) >>> > - (((…))) construct generates a DIV already documented, see http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Groups >>> hum IMO we must add an exemple with style too. Why? because on syntax page >>> I'm pretty sur everyone use Ctrl+F: "style" (search feature in web browser) >>> and next to find the correct syntax. >>> WDYT? >> Sounds good. >> >> Thanks >> -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
yes of course. I wanted add some CSS class in blog code. Anyway I will PR today and I'm pretty sure than xwiki commiters will make attention with this. :-) En date de : Ven 21.10.16, Jan-Paul Kleijn a écrit : Objet: Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax? À: "XWiki Users" Date: Vendredi 21 octobre 2016, 0h06 Pascal, I advise you not to use the style tag in HTML (or WIKI code for that matter) - only as a last resort. It is good practice to separate structure from presentation. W3C made a rather comprehensive explanation on this, see link below. https://www.w3.org/2001/tag/doc/contentPresentation-26.html It may seem like a little cumbersome now, but it will help you in the end. Greetings, Jan-Paul ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
Pascal, I advise you not to use the style tag in HTML (or WIKI code for that matter) - only as a last resort. It is good practice to separate structure from presentation. W3C made a rather comprehensive explanation on this, see link below. https://www.w3.org/2001/tag/doc/contentPresentation-26.html It may seem like a little cumbersome now, but it will help you in the end. Greetings, Jan-Paul Op 20-10-2016 om 11:10 schreef Vincent Massol: On 20 Oct 2016, at 11:08, Pascal BASTIEN wrote: Yes it is correct, but what I want to add in syntax guide (if you agree) is these 2 way: - to close style with (%%) only for inline content and only needed if you need to style only a potion of the inlined content. yes it was my intention :-) - (((…))) construct generates a DIV already documented, see http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Groups hum IMO we must add an exemple with style too. Why? because on syntax page I'm pretty sur everyone use Ctrl+F: "style" (search feature in web browser) and next to find the correct syntax. WDYT? Sounds good. Thanks -Vincent ___ 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] riddle: howto insert a simple span with xwiki syntax?
Here you are: https://github.com/xwiki/xwiki-platform/pull/543/files Thxs Vincent and Jan-Paul En date de : Jeu 20.10.16, Vincent Massol a écrit : Objet: Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax? À: "Pascal BASTIEN" Cc: "XWiki Users" Date: Jeudi 20 octobre 2016, 11h10 > On 20 Oct 2016, at 11:08, Pascal BASTIEN wrote: > > >>> >>> Yes it is correct, >> but what I want to add in syntax guide (if you agree) is >> these 2 way: >>> - to close style with >> (%%) >> >> only for inline >> content and only needed if you need to style only a potion >> of the inlined content. > > yes it was my intention :-) > >> >>> - (((…))) construct generates a DIV >> >> already documented, see >> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Groups > > hum IMO we must add an exemple with style too. Why? because on syntax page I'm pretty sur everyone use Ctrl+F: "style" (search feature in web browser) and next to find the correct syntax. > WDYT? Sounds good. Thanks -Vincent ___ 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] riddle: howto insert a simple span with xwiki syntax?
> On 20 Oct 2016, at 11:08, Pascal BASTIEN wrote: > > >>> >>> Yes it is correct, >> but what I want to add in syntax guide (if you agree) is >> these 2 way: >>> - to close style with >> (%%) >> >> only for inline >> content and only needed if you need to style only a potion >> of the inlined content. > > yes it was my intention :-) > >> >>> - (((…))) construct generates a DIV >> >> already documented, see >> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Groups > > hum IMO we must add an exemple with style too. Why? because on syntax page > I'm pretty sur everyone use Ctrl+F: "style" (search feature in web browser) > and next to find the correct syntax. > WDYT? Sounds good. Thanks -Vincent ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 20 Oct 2016, at 10:50, Pascal BASTIEN wrote: > > > > --- En date de : Jeu 20.10.16, Vincent Massol a écrit : > >> De: Vincent Massol >> Objet: Re: [xwiki-users] riddle: howto insert a simple span with xwiki >> syntax? >> À: "Pascal BASTIEN" >> Cc: "XWiki Users" >> Date: Jeudi 20 octobre 2016, 10h35 >> >>> On >> 20 Oct 2016, at 10:32, Pascal BASTIEN >> wrote: >>> >>> Ok I will >> send a PR. >>> (I didn't knew doc was >> modified through git though) >>> >>> IMO it is better here, no?: >>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HParameters >> >> The example there is >> correct. > > Yes it is correct, but what I want to add in syntax guide (if you agree) is > these 2 way: > - to close style with (%%) only for inline content and only needed if you need to style only a potion of the inlined content. > - (((…))) construct generates a DIV already documented, see http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Groups Thanks -Vincent > >> >> You need to close >> only for span, ie only in inline content. >> >> Thanks >> -Vincent >> ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 20 Oct 2016, at 10:35, Vincent Massol wrote: > > >> On 20 Oct 2016, at 10:32, Pascal BASTIEN wrote: >> >> Ok I will send a PR. >> (I didn't knew doc was modified through git though) >> >> IMO it is better here, no?: >> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HParameters > > The example there is correct. > > You need to close only for span, ie only in inline content. To be precise, if you don’t close then it’ll be auto-closed on the next block elements….. So you need to close when you need to control the extent of the span. For example: hello (% … %)some content in span(%%) outside of span here This is why the example for paragraph is not wrong but it’s also not teaching this. So it should be amended to show a span only on some portion of the paragraph content. Thanks -Vincent > Thanks > -Vincent > >> >> En date de : Jeu 20.10.16, Vincent Massol a écrit : >> >> I need to add that here: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax >>> >>> You mean here: >>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Paragraphs >>> (that’s the only place that needs fixing >> from what I see) >>> >>> >> You want to send a PR? >> >> Notes: >> * It’s in >> https://github.com/xwiki/xwiki-platform/blob/e750ba502ba3a73cec7357a4c8fbbc9894501b15/xwiki-platform-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/XWiki/XWikiSyntaxParagraphs.xml >> * It needs to be fixed in xwiki-platform for >> the EN language >> * It needs to be updated on >> l10n for other languages (French, etc). >> > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 20 Oct 2016, at 10:32, Pascal BASTIEN wrote: > > Ok I will send a PR. > (I didn't knew doc was modified through git though) > > IMO it is better here, no?: > http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HParameters The example there is correct. You need to close only for span, ie only in inline content. Thanks -Vincent > > En date de : Jeu 20.10.16, Vincent Massol a écrit : > > >>> >>> I need to add that here: >>> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax >> >> You mean here: >> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Paragraphs >> (that’s the only place that needs fixing > from what I see) >> >> > You want to send a PR? > > Notes: > * It’s in > https://github.com/xwiki/xwiki-platform/blob/e750ba502ba3a73cec7357a4c8fbbc9894501b15/xwiki-platform-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/XWiki/XWikiSyntaxParagraphs.xml > * It needs to be fixed in xwiki-platform for > the EN language > * It needs to be updated on > l10n for other languages (French, etc). > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
Ok I will send a PR. (I didn't knew doc was modified through git though) IMO it is better here, no?: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HParameters En date de : Jeu 20.10.16, Vincent Massol a écrit : >> >> I need to add that here: >> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax > > You mean here: > http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Paragraphs > (that’s the only place that needs fixing from what I see) > > You want to send a PR? Notes: * It’s in https://github.com/xwiki/xwiki-platform/blob/e750ba502ba3a73cec7357a4c8fbbc9894501b15/xwiki-platform-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/XWiki/XWikiSyntaxParagraphs.xml * It needs to be fixed in xwiki-platform for the EN language * It needs to be updated on l10n for other languages (French, etc). ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 20 Oct 2016, at 10:08, Vincent Massol wrote: > >> >> On 20 Oct 2016, at 10:05, Pascal BASTIEN wrote: >> (% >>> class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)$message))) >>> >>> First this is not fully >>> correct. You need to close the span with (%%). >> >> ha! >> It's like manage to scratch my back! so pleasurable! >> >> I need to add that here: >> http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax > > You mean here: > http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Paragraphs > (that’s the only place that needs fixing from what I see) > > You want to send a PR? Notes: * It’s in https://github.com/xwiki/xwiki-platform/blob/e750ba502ba3a73cec7357a4c8fbbc9894501b15/xwiki-platform-core/xwiki-platform-help/xwiki-platform-help-ui/src/main/resources/XWiki/XWikiSyntaxParagraphs.xml * It needs to be fixed in xwiki-platform for the EN language * It needs to be updated on l10n for other languages (French, etc). Thanks -Vincent > Thanks > -Vincent > >> >> class="plainmessage publish-message"> >> class="glyphicon glyphicon-globe">This article >>> was published on 17/10/2016 16:47:06 >>> >>> => span inserted BUT I don't want end of span at the >>> end of the $message >>> >>> Normally you should have tried this: >>> >>> (% class="plainmessage >>> publish-message" %)% class="glyphicon >>> glyphicon-globe" %)(%%)$message))) >>> >>> But it won’t work because the span is >>> empty. >>> >>> So you have 2 >>> options: >>> - option 1: you insert some >>> character in the space like a space (you’ll get >>> in the output though) >> >> yes I confirm this. I have in html output) with >> (% class="plainmessage publish-message" %)% class="glyphicon >> glyphicon-globe" %) (%%)$message))) >> >>> - option 2: you use >>> the html macro. >>> >>> It seems >>> from your need that you’re trying to output some specific >>> custom HTML so best is to use the html macro for that. >>> You’ll have better control with it. >> >> yes but I "improved" blog macro: I will commit it this week i think >> >> ty ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 20 Oct 2016, at 10:05, Pascal BASTIEN wrote: > >>> >>> (% >> class="plainmessage publish-message" %)% >> class="glyphicon glyphicon-globe" %)$message))) >> >> First this is not fully >> correct. You need to close the span with (%%). > > ha! > It's like manage to scratch my back! so pleasurable! > > I need to add that here: > http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax You mean here: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax?syntax=2.1§ion=Paragraphs (that’s the only place that needs fixing from what I see) You want to send a PR? Thanks -Vincent > > class="plainmessage publish-message"> >>> >>> > class="glyphicon glyphicon-globe">This article >> was published on 17/10/2016 16:47:06 >>> >>> >> >>> >>> >> => span inserted BUT I don't want end of span at the >> end of the $message >> >> Normally you should have tried this: >> >> (% class="plainmessage >> publish-message" %)% class="glyphicon >> glyphicon-globe" %)(%%)$message))) >> >> But it won’t work because the span is >> empty. >> >> So you have 2 >> options: >> - option 1: you insert some >> character in the space like a space (you’ll get >> in the output though) > > yes I confirm this. I have in html output) with > (% class="plainmessage publish-message" %)% class="glyphicon > glyphicon-globe" %) (%%)$message))) > >> - option 2: you use >> the html macro. >> >> It seems >> from your need that you’re trying to output some specific >> custom HTML so best is to use the html macro for that. >> You’ll have better control with it. > > yes but I "improved" blog macro: I will commit it this week i think > > ty > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
Hi Pascal, > On 20 Oct 2016, at 08:20, Pascal BASTIEN wrote: > > Ok thxs but my problem is that I can not insert a anything in > front of $message :-/ > > There are inserted I wonder why when it is a div (a bug?) or is > at the wrong place. > > I didn't manage to have this simple result: > > This article was published > on 17/10/2016 16:47:06 > > > > (% class="plainmessage publish-message" %)% class="glyphicon > glyphicon-globe" %)$message))) First this is not fully correct. You need to close the span with (%%). > > > This article was published on > 17/10/2016 16:47:06 > > > > => span inserted BUT I don't want end of span at the end of the $message Normally you should have tried this: (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)(%%)$message))) But it won’t work because the span is empty. So you have 2 options: - option 1: you insert some character in the space like a space (you’ll get in the output though) - option 2: you use the html macro. It seems from your need that you’re trying to output some specific custom HTML so best is to use the html macro for that. You’ll have better control with it. Thanks -Vincent > (% class="glyphicon glyphicon-globe" %) (% class="plainmessage > publish-message" %)((($message))) > > > > > This article was published on 20/10/2016 08:18:06 > > > => span inserted BUT I don't want between span and div . publish-message ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 19 Oct 2016, at 11:17, Vincent Massol wrote: > > >> On 19 Oct 2016, at 11:17, Jan-Paul Kleijn wrote: >> >> And for one word only you close the span with (%%). Like so: Remark: It’s not just for one word. It’s for any inline content. Thanks -Vincent >> (% class="plainmessage publish-message" %)$message(%%) >> >> Sorry vincent, did not want to seem like a wisenose :-) > > no, no, you’re perfectly right :) > > My example wasn’t good actually. We do auto closing but it’s much better to > specify it. > > Thanks > -Vincent > >> Greetings, >> Jan-Paul >> >> Vincent Massol wrote >> >>> Hi Pascal, >>> >>> (% class="plainmessage publish-message" %)((($message))) >>> >>> the (((…))) construct generates a DIV >>> >>> For a span you need: >>> >>> (% class="plainmessage publish-message" %)$message >>> >>> Thanks >>> -Vincent >>> On 19 Oct 2016, at 10:17, Pascal BASTIEN wrote: (I resend my previous message: it seem xwiki users list didn't receive it or silent reject it) sorry maybe spaming? --- En date de : Mar 18.10.16, Pascal BASTIEN a écrit : > De: Pascal BASTIEN > Objet: riddle: howto insert a simple span with xwiki syntax? > À: "XWiki Users" > Date: Mardi 18 octobre 2016, 9h07 > Hello, > > With wiki syntax I failed to insert a simple span in a > velocity macro (Blog./BlogCode): > > #macro(publishMessageBox $message) > (% class="plainmessage publish-message" %)((($message))) > #end > > display: > > This article was published on 17/10/2016 > 16:47:06 > > > and I want a span in front of $message like this: > > This article was published > on 17/10/2016 16:47:06 > > > Is it possible (I can not use {{html}} because code is > escaped)? > > Here my test and what is displayed: > (% class="plainmessage publish-message" %)% > class="glyphicon glyphicon-globe" %)((( )))$message))) > display > > > This article was published on 17/10/2016 > 16:47:06 > > > => With div instead span it is ok BUT there are > inserted :-( ! > > (% class="plainmessage publish-message" %)% > class="glyphicon glyphicon-globe" %)$message))) > > > > This article > was published on 17/10/2016 16:47:06 > > > > => span inserted BUT I don't want end of span at the end > of the $message > > (% class="plainmessage publish-message" %)% > class="glyphicon glyphicon-globe" %)((())) $message))) > > > > This article was published on 17/10/2016 > 16:47:06 > > > => With div instead span it is ok BUT there are > inserted :-( ! > > Have you got a solution? > Thxs > > Pascal B > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
> On 19 Oct 2016, at 11:17, Jan-Paul Kleijn wrote: > > And for one word only you close the span with (%%). Like so: > > > (% class="plainmessage publish-message" %)$message(%%) > > Sorry vincent, did not want to seem like a wisenose :-) no, no, you’re perfectly right :) My example wasn’t good actually. We do auto closing but it’s much better to specify it. Thanks -Vincent > Greetings, > Jan-Paul > > Vincent Massol wrote > >> Hi Pascal, >> >> (% class="plainmessage publish-message" %)((($message))) >> >> the (((…))) construct generates a DIV >> >> For a span you need: >> >> (% class="plainmessage publish-message" %)$message >> >> Thanks >> -Vincent >> >>> On 19 Oct 2016, at 10:17, Pascal BASTIEN wrote: >>> >>> (I resend my previous message: it seem xwiki users list didn't receive it >>> or silent reject it) >>> sorry maybe spaming? >>> >>> >>> --- En date de : Mar 18.10.16, Pascal BASTIEN a >>> écrit : >>> De: Pascal BASTIEN Objet: riddle: howto insert a simple span with xwiki syntax? À: "XWiki Users" Date: Mardi 18 octobre 2016, 9h07 Hello, With wiki syntax I failed to insert a simple span in a velocity macro (Blog./BlogCode): #macro(publishMessageBox $message) (% class="plainmessage publish-message" %)((($message))) #end display: This article was published on 17/10/2016 16:47:06 and I want a span in front of $message like this: This article was published on 17/10/2016 16:47:06 Is it possible (I can not use {{html}} because code is escaped)? Here my test and what is displayed: (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)((( )))$message))) display This article was published on 17/10/2016 16:47:06 => With div instead span it is ok BUT there are inserted :-( ! (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)$message))) This article was published on 17/10/2016 16:47:06 => span inserted BUT I don't want end of span at the end of the $message (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)((())) $message))) This article was published on 17/10/2016 16:47:06 => With div instead span it is ok BUT there are inserted :-( ! Have you got a solution? Thxs Pascal B >> >> ___ >> 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax?
And for one word only you close the span with (%%). Like so: (% class="plainmessage publish-message" %)$message(%%) Sorry vincent, did not want to seem like a wisenose :-) Greetings, Jan-Paul Vincent Massol wrote >Hi Pascal, > >(% class="plainmessage publish-message" %)((($message))) > >the (((…))) construct generates a DIV > >For a span you need: > >(% class="plainmessage publish-message" %)$message > >Thanks >-Vincent > >> On 19 Oct 2016, at 10:17, Pascal BASTIEN wrote: >> >> (I resend my previous message: it seem xwiki users list didn't receive it or >> silent reject it) >> sorry maybe spaming? >> >> >> --- En date de : Mar 18.10.16, Pascal BASTIEN a >> écrit : >> >>> De: Pascal BASTIEN >>> Objet: riddle: howto insert a simple span with xwiki syntax? >>> À: "XWiki Users" >>> Date: Mardi 18 octobre 2016, 9h07 >>> Hello, >>> >>> With wiki syntax I failed to insert a simple span in a >>> velocity macro (Blog./BlogCode): >>> >>> #macro(publishMessageBox $message) >>> (% class="plainmessage publish-message" %)((($message))) >>> #end >>> >>> display: >>> >>> This article was published on 17/10/2016 >>> 16:47:06 >>> >>> >>> and I want a span in front of $message like this: >>> >>> This article was published >>> on 17/10/2016 16:47:06 >>> >>> >>> Is it possible (I can not use {{html}} because code is >>> escaped)? >>> >>> Here my test and what is displayed: >>> (% class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)((( )))$message))) >>> display >>> >>> >>> This article was published on 17/10/2016 >>> 16:47:06 >>> >>> >>> => With div instead span it is ok BUT there are >>> inserted :-( ! >>> >>> (% class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)$message))) >>> >>> >>> >>> This article >>> was published on 17/10/2016 16:47:06 >>> >>> >>> >>> => span inserted BUT I don't want end of span at the end >>> of the $message >>> >>> (% class="plainmessage publish-message" %)% >>> class="glyphicon glyphicon-globe" %)((())) $message))) >>> >>> >>> >>> This article was published on 17/10/2016 >>> 16:47:06 >>> >>> >>> => With div instead span it is ok BUT there are >>> inserted :-( ! >>> >>> Have you got a solution? >>> Thxs >>> >>> Pascal B >>> > >___ >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] riddle: howto insert a simple span with xwiki syntax?
Hi Pascal, (% class="plainmessage publish-message" %)((($message))) the (((…))) construct generates a DIV For a span you need: (% class="plainmessage publish-message" %)$message Thanks -Vincent > On 19 Oct 2016, at 10:17, Pascal BASTIEN wrote: > > (I resend my previous message: it seem xwiki users list didn't receive it or > silent reject it) > sorry maybe spaming? > > > --- En date de : Mar 18.10.16, Pascal BASTIEN a > écrit : > >> De: Pascal BASTIEN >> Objet: riddle: howto insert a simple span with xwiki syntax? >> À: "XWiki Users" >> Date: Mardi 18 octobre 2016, 9h07 >> Hello, >> >> With wiki syntax I failed to insert a simple span in a >> velocity macro (Blog./BlogCode): >> >> #macro(publishMessageBox $message) >> (% class="plainmessage publish-message" %)((($message))) >> #end >> >> display: >> >> This article was published on 17/10/2016 >> 16:47:06 >> >> >> and I want a span in front of $message like this: >> >> This article was published >> on 17/10/2016 16:47:06 >> >> >> Is it possible (I can not use {{html}} because code is >> escaped)? >> >> Here my test and what is displayed: >> (% class="plainmessage publish-message" %)% >> class="glyphicon glyphicon-globe" %)((( )))$message))) >> display >> >> >> This article was published on 17/10/2016 >> 16:47:06 >> >> >> => With div instead span it is ok BUT there are >> inserted :-( ! >> >> (% class="plainmessage publish-message" %)% >> class="glyphicon glyphicon-globe" %)$message))) >> >> >> >> This article >> was published on 17/10/2016 16:47:06 >> >> >> >> => span inserted BUT I don't want end of span at the end >> of the $message >> >> (% class="plainmessage publish-message" %)% >> class="glyphicon glyphicon-globe" %)((())) $message))) >> >> >> >> This article was published on 17/10/2016 >> 16:47:06 >> >> >> => With div instead span it is ok BUT there are >> inserted :-( ! >> >> Have you got a solution? >> Thxs >> >> Pascal B >> ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] riddle: howto insert a simple span with xwiki syntax?
Hello, With wiki syntax I failed to insert a simple span in a velocity macro (Blog./BlogCode): #macro(publishMessageBox $message) (% class="plainmessage publish-message" %)((($message))) #end display: This article was published on 17/10/2016 16:47:06 and I want a span in front of $message like this: This article was published on 17/10/2016 16:47:06 Is it possible (I can not use {{html}} because code is escaped)? Here my test and what is displayed: (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)((( )))$message))) display This article was published on 17/10/2016 16:47:06 => With div instead span it is ok BUT there are inserted :-( ! (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)$message))) This article was published on 17/10/2016 16:47:06 => span inserted BUT I don't want end of span at the end of the $message (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)((())) $message))) This article was published on 17/10/2016 16:47:06 => With div instead span it is ok BUT there are inserted :-( ! Have you got a solution? Thxs Pascal B ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users