Page 1 of 1

Custom formatting of ordered lists?

Posted: Sun Mar 14, 2021 4:30 am
by gpetty
I'm new to CMSMS and am now adding content to my newly created site (latest software). I'm running into a limitation of ordered lists in the default configuration, in that I'm unable to find a way to generate a nested list in which the sub-items get letters rather than numbers. For example, I might like

1. First item
2. Second item
-> a) first sub-item
-> b) second sub-item

etc. Instead, I get

1. First item
2. Second item
-> 1. first sub-item
-> 2. second sub-item

Is there a simple way to set the desired list format as the default style for nested ordered lists without writing raw HTML or CSS?

Re: Custom formatting of ordered lists?

Posted: Sun Mar 14, 2021 3:25 pm
by DIGI3
If you want that to be the default site-wide, the easiest way would be to add this to your stylesheet:

Code: Select all

ol ol {
  list-style-type: lower-alpha;
}
If you want it to be optional for the editor then you'd need to add a style or format option to the wysiwyg editor. The default MicroTiny editor has minimal options by design, so the third-party TinyMCE editor might be a better option as it's fully customizable.

Re: Custom formatting of ordered lists?

Posted: Sun Mar 14, 2021 4:25 pm
by gpetty
Thank you. I'm new enough to CMSMS that I don't know yet where that fragment would go. Is there already a top-level stylesheet that is loaded by default for all pages? Or do I need to create one? Ideally, it would be one that is preserved through software updates.

Re: Custom formatting of ordered lists?

Posted: Sun Mar 14, 2021 4:42 pm
by DIGI3
Stylesheets are attached to your design in the same way templates are. Layout > Design Manager > Stylesheets.

In Content Manager it will show which template and design a page is attached to. Any stylesheet attached to a design will be loaded by {cms_stylesheet} in the page template. There's more advanced options but that's the basic method.

Re: Custom formatting of ordered lists?

Posted: Sun Mar 14, 2021 7:08 pm
by gpetty
Worked -- thanks!