XF 2.2 bbcode for items

Robert9

Well-known member
I want to add some links in a row, i do it like this:

link1 | link2 | link 3

but when such a line breaks, the "|" looks not nice.


I try link1 link2 link 3

but now the distance is too short


I think about a flex-container and divs

but who wants to type so much


finally i want to have a new bbcode like this:

items]list with \n[/items

example

items]
item 1
item2
item3
[/items

should result ins omsething like

div class=flex-container
div item1 /div
...
/div

Do we have something like this?
 
Yes, I have started an addon to have a nice tool. At the moment I am stuck while there is an array sent to my class instead of text.
I just want to do:

item]
some links
some links
some links
[/item

and transform it to
div
div link /div
...
/div

at the moment I have solved it by

div
<a
<a
<a
/div

and
div { flex ...
div > a { ...
 
Top Bottom