Posted by wpixels on December 14, 2012 at 2:09am
I'm a fairly basic Drupal user and I'm hoping someone can shed some light on how I might approach this problem.
I have a list of items that I would like to 1.) be able to add items in the database 2.)dynamically generate and format a list based on the items in the table.
Coming from a .Net / PHP web development background -- I would typically just input the items in a table in the DB and then write some code to read in the list of items and loop through it and format it -- e.g. four items per row. This is really easily accomplished with full control of code. Now, how can I tranlsate this into Drupal code in the Drupal world?
Any guidance would be greatly appreciated!
Comments
The straightforward way is to
The straightforward way is to use a content type to represent one item and views to make the listing. And I would recommend using Drupal 7 (not 6) at this point.
Use views with html list formatter
Hello,
You can use views and create block with views.
In views choose fields then choose only the fields that you want to show in list (most probably the title, and the body). Then you can theme this view according to your desire (see how to theme views).
most of the things can be done through views in drupal7.
View is similar to generating queries by click, click.
Excel the world with the drupalway
Thanks for pointing the way!
Thanks for pointing the way! I'll take a look at these solutions.