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 Kleijna é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?
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 Massola é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=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 BASTIENwrote: > > >>> >>> 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=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
[xwiki-users] Fw : Re: riddle: howto insert a simple span with xwiki syntax?
--- En date de : Jeu 20.10.16, Vincent Massola é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 (%%) - (((…))) construct generates a DIV > > 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 Massolwrote: > > >> 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=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 BASTIENwrote: > > 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=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 Massola é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=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 Massolwrote: > >> >> 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=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
[xwiki-users] Fw : Re: riddle: howto insert a simple span with xwiki syntax?
> > > > (% > 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 > > > 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 BASTIENwrote: > > 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
[xwiki-users] Fw : Re: riddle: howto insert a simple span with xwiki syntax?
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))) 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="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