Looking for a simple solution here.
In D7 I need to create a content type which consists of some freeform lists. I need users to be able to create a list of ingredients for instance, where the list is displayed as one might assume:
1 cup of this
2 cups of that
I also need the users to be able to create a list of steps, using an ordered list.
1. do this
2. do this
I can use a WYSIWYG editor and simply do this with line breaks (as the current default display using a raw editor is that the line items stack horizontally "1 cup of this 2 cups of that," etc.) but I would like to provide users with a more elegant and seamless solution.
I found http://drupal.org/project/semantic_fields while poking around, but I'd like some other options here -- including staying away from a deve/alpha/beta module if possible.
Thanks so much!
Comments
Well, using the wysiwyg on
Well, using the wysiwyg on this site, you can make actual bulleted lists. Like this:
Good instructions in the node creation form should take care of it for anyone used to using a Word processor. If you don't like bullets, you can use css to hide them for this particular content type.
As far as another solution... You could use a simple text field, and allow unlimited entries. This won't give you a "list" by default, but it will put each item in a separate div, and you can set your tpl.php file to wrap the divs in li tags.
Anthony Pero
Project Lead
Virtuosic Media
http://www.virtuosic.me/
Thanks for the reply Anthony.
Thanks for the reply Anthony. Good suggestions all around.
The WYSIWYG won't work for me in this case; the functionality I really require here is for one text area to be output as an unordered list, and one as an ordered list (and I also want to control this from the system side, rather than rely on the client/user to be consistent, and diligent, while adding new pieces of content). I also used to do something close to your template file suggestion with the old CCK from D6, where I changed the output of field_names from divs to lists, but in D7 I have yet to do this (and, I guess, was hoping there was a more elegant solution). As much as possible, I like to stay away from editing tpl.php files.
.:
I too was searching for something similar and came through this post. You might have solved your issue till now but for any one else looking for an answer try... http://drupal.org/project/textformatter.
------------
Volvo, Video, Velcro. (I came, I saw, I stuck around.)