Re: [xwiki-users] Question regarding changing default format of Numbered Lists
np, here my SSX code: /* - numbering.css */ #xwikicontent { counter-reset: mynum-h1 !important; } #xwikicontent h1 { counter-reset: mynum-h2 !important; } #xwikicontent h1:before { content: counter(mynum-h1, upper-alpha) ". " !important; counter-increment: mynum-h1 !important; } #xwikicontent h2:not(.blogdate) { counter-reset: mynum-h3 !important; } #xwikicontent h2:not(.blogdate):before { content: counter(mynum-h1, upper-alpha) "." counter(mynum-h2) " " !important; counter-increment: mynum-h2 !important; } #xwikicontent h3 { counter-reset: mynum-h4 !important; } #xwikicontent h3:before { content: counter(mynum-h1, upper-alpha) "." counter(mynum-h2) "." counter(mynum-h3) " " !important; counter-increment: mynum-h3 !important; } #xwikicontent h4 { counter-reset: mynum-h5 !important; } #xwikicontent h4:before { content: counter(mynum-h1, upper-alpha) "." counter(mynum-h2) "." counter(mynum-h3) "." counter(mynum-h4) " " !important; counter-increment: mynum-h4 !important; } #xwikicontent h5 { counter-reset: mynum-h6 !important; } #xwikicontent h5:before { content: counter(mynum-h1) "." counter(mynum-h2) "." counter(mynum-h3) "." counter(mynum-h4) "." counter(mynum-h5) " " !important; counter-increment: mynum-h5 !important; } #xwikicontent h6 { } #xwikicontent h6:before { content: counter(mynum-h1, upper-alpha) "." counter(mynum-h2) "." counter(mynum-h3) "." counter(mynum-h4) "." counter(mynum-h5) "." counter(mynum-h6) " " !important; counter-increment: mynum-h6 !important; } /* Redimensionnement des titres */ /* Rajout de la balise des posts du blog */ #xwikicontent > H1:not(.xapp), #xwikicontent .entry-content > h1 { overflow:hidden; line-height:1.2em; } /* Numérotation des titres */ #xwikicontent > H1:not(.xapp):after, #xwikicontent .entry-content > h1:after { content:""; vertical-align:top; display:inline-block; width:100%; height:0.8em; border-bottom:1px solid black; margin:0 -1 0 0.9em; } #xwikicontent > H3 > span { font-style: italic; } #xwikicontent > H1, #xwikicontent .entry-content > h1 { font-size: 30px; } #xwikicontent > H2, #xwikicontent .entry-content > h2 { font-size: 26px; } #xwikicontent > H3, #xwikicontent .entry-content > h3 { font-size: 20px; } ** En date de : Lun 8.8.16, Ryan D. Larkin a écrit : Objet: Re: [xwiki-users] Question regarding changing default formatof Numbered Lists À: "Pascal BASTIEN" Date: Lundi 8 août 2016, 17h34 If you don't mind I would love to see your code, that sounds like exactly what I am looking for. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Question regarding changing default format of Numbered Lists
Hi, The code you wrote should work just fine. Just add it to your custom skin or to a global SSX. Thanks, Caty On Fri, Aug 5, 2016 at 7:06 PM, rlarkin wrote: > Hello- > > I am a new user and I have a question regarding changing the default method > of numbering used for numbered lists. I am attempting to use xwiki to store > our company policy, which as of now is kept in a series of individual > documents. The difficulty is that management is insistent that I maintain > the current numbering schema used for numbered lists which is in the > format: > > A. Item One > 1. Sub-Item 1 > a. Sub-Sub Item 1 > > While I can do so manually using the xwiki syntax this is a great deal of > work when dealing with dozens of lists within hundreds of policies. In > addition I would like to make it as easy as possible for whomever comes > after me. I believe that the css code for something like this would be > something along the lines of: > > ol {list-style-type:upper-alpha;} > ol ol {list-style-type:decimal;} > ol ol ol {list-style-type:lower-alpha;} > > but I am uncertain as to whether this is the proper method of implementing > this change, and if so am uncertain as to where that code would go. Any > help > would be appreciated. > > > > > -- > View this message in context: http://xwiki.475771.n2.nabble. > com/Question-regarding-changing-default-format-of- > Numbered-Lists-tp7600593.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 > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Question regarding changing default format of Numbered Lists
Hi, You can use a SSX object to overwriting CSS instruction: http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMinimalStyleSheeteXtension On my xwiki I use this extension: http://extensions.xwiki.org/xwiki/bin/view/Extension/Numbered+Headings I modified the SSX object to displaynumbered lists like this: A. Item One A.1. Sub-Item 1 A.1.1 Sub-Sub Item 1 If you want I can send you my CSS code. Pascal B En date de : Ven 5.8.16, rlarkin a écrit : Objet: [xwiki-users] Question regarding changing default format of Numbered Lists À: users@xwiki.org Date: Vendredi 5 août 2016, 18h06 Hello- I am a new user and I have a question regarding changing the default method of numbering used for numbered lists. I am attempting to use xwiki to store our company policy, which as of now is kept in a series of individual documents. The difficulty is that management is insistent that I maintain the current numbering schema used for numbered lists which is in the format: A. Item One 1. Sub-Item 1 a. Sub-Sub Item 1 While I can do so manually using the xwiki syntax this is a great deal of work when dealing with dozens of lists within hundreds of policies. In addition I would like to make it as easy as possible for whomever comes after me. I believe that the css code for something like this would be something along the lines of: ol {list-style-type:upper-alpha;} ol ol {list-style-type:decimal;} ol ol ol {list-style-type:lower-alpha;} but I am uncertain as to whether this is the proper method of implementing this change, and if so am uncertain as to where that code would go. Any help would be appreciated. -- View this message in context: http://xwiki.475771.n2.nabble.com/Question-regarding-changing-default-format-of-Numbered-Lists-tp7600593.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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Question regarding changing default format of Numbered Lists
Hello- I am a new user and I have a question regarding changing the default method of numbering used for numbered lists. I am attempting to use xwiki to store our company policy, which as of now is kept in a series of individual documents. The difficulty is that management is insistent that I maintain the current numbering schema used for numbered lists which is in the format: A. Item One 1. Sub-Item 1 a. Sub-Sub Item 1 While I can do so manually using the xwiki syntax this is a great deal of work when dealing with dozens of lists within hundreds of policies. In addition I would like to make it as easy as possible for whomever comes after me. I believe that the css code for something like this would be something along the lines of: ol {list-style-type:upper-alpha;} ol ol {list-style-type:decimal;} ol ol ol {list-style-type:lower-alpha;} but I am uncertain as to whether this is the proper method of implementing this change, and if so am uncertain as to where that code would go. Any help would be appreciated. -- View this message in context: http://xwiki.475771.n2.nabble.com/Question-regarding-changing-default-format-of-Numbered-Lists-tp7600593.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