Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: shai on November 20, 2009, 02:44:41 AM

Poll
Question: Add "howto list inside a list" to the docs
Option 1: Yes
Option 2: No
Title: [list] with indented sub items
Post by: shai on November 20, 2009, 02:44:41 AM
Hi,

How do I indent items in a list to create "sub-lists"?

1. Item1
2. Item2
  a. Itema
  b. Itemb
    *. Item*
3. Item3
Title: Re: [list] with indented sub items
Post by: Jerry on November 20, 2009, 04:17:09 AM
Something like this?

  • Item 1

    • Sub1
    • Sub 2

      • Sub-Sub1
      • Sub-Sub 2
  • Item 2
[list type=decimal]
[li]Item 1
[list]
[li]Sub1[/li]
[li]Sub 2
[list]
[li]Sub-Sub1[/li]
[li]Sub-Sub 2[/li]
[/list]
[/li]
[/list]
[/li]
[li]Item 2[/li]
[/list]
Title: Re: [list] with indented sub items
Post by: shai on November 20, 2009, 04:19:41 AM
Thanks for the prompt response. I tried looking for this in the docs... is this type of use of lists documented anywhere?
Title: Re: [list] with indented sub items
Post by: Jerry on November 20, 2009, 04:22:56 AM
Not really, there is a page on more advanced uses of the [ list ] with different types of bullets. Here (http://docs.simplemachines.org/index.php?topic=696) However creating a list, inside of a list will give you a sub-list though :)
Title: Re: [list] with indented sub items
Post by: shai on December 22, 2009, 02:35:12 PM
Hi,

Can I add [code] and [quote] tags inside lists too?

I tried and can't quite get it working...

Your help would be appreciated once again!
Title: Re: [list] with indented sub items
Post by: Jerry on December 22, 2009, 04:56:19 PM
as long as you use the full tag [quote]My Quote Here[/quote] it should work.

  • QuoteItem 1

    • QuoteSub1
    • QuoteSub 2

      • QuoteSub-Sub1
      • QuoteSub-Sub 2
  • QuoteItem 2
Title: Re: [list] with indented sub items
Post by: shai on December 23, 2009, 01:55:31 AM
This is list with quote:

  • Quote$ bash.sh

This is list with quote:

[list]
[li][quote]$ bash.sh[/quote][/li]
[/list]


This is list with code:

$ bash.sh
    [/li]

This is list with code:

[list]
[li][code]$ bash.sh
[/li]
[/list]
[/code]

What did I do wrong in this post (here is the post code http://pastebin.com/m78f3977c)?
Title: Re: [list] with indented sub items
Post by: Jerry on December 23, 2009, 11:09:05 AM
I'm told that quote fits in the list element but code cannot. Has something to do with keeping up with the html standards.