Steven Heynderickx wrote on 29 Dec 2009 11:28
Remember the difficulties with inline includes?
With the Listusers I found the same difficulty… Of course a LISTUSERSSSS is normaly a list and it would not make a lot of sense to render it as inline items… but if I use users="." I only get the current one… And I wish to use it inline.
I know I can solve this by doing
[[module listusers users="."]]
Dear %%title%%,
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Duis ante lorem, fringilla vel accumsan non, laoreet non
nunc. Donec porta enim id lorem eleifend dapibus.
Quisque nisi odio, dignissim sit amet Your profile:%%title_linked%%
bibendum sit amet neque. Aenean porta faucibus tincidunt.
Suspendisse et purus magna. Aliquam in erat turpis,
[[/module]]
default attribute : display="block" wich renders a surrounding <p>
exceptional attribute : display="inline" no surrounding <p>
A new design extention for al List-modules?
This is a little like the ListPages attribute "separate", right?
All List modules should use the same approach for formatting. So can we define what we actually need?
Portfolio
I would probably not use a list as an inline-thing. So removing the <p> from the result is what I need…but like I say probably. Since the ListPages can not select just a simple page YET… I use Listpages to select a certain contentblock from a certain page. And sometimes I wish to use it as an inline thing… For example Popup's… the info of the popup is inside the popup-page and the trigger, the actual word to hover is a word inside a sentense (so inline). But you could imagine a list of %%title%%s that would make up your nav:top… So the listitems of the listpages should also be able to be "inline".
Would it not make sense to integrate [[p]] or [[br]] as a wikidot-syntax and leave the paragraphbreaks to the users?
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
I think the paragraph break between each item that is currently being used is a good idea. That said, being able to use separate="false" with all modules that could show more than one result… would be very useful. I find myself using the 'separate' attribute when including ListPages content in tables, and keeping it at the default value it almost all other situations.
Thanks for the ListUsers implementation. I hadn't noticed it was working now :)
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)