• Steven

    (@spstieng)


    I need to make list of employees where I have a image to the left, and some text to the right.

    What is the best way of making this table without writing HTML?
    (My customer does not know HTML)

Viewing 4 replies - 1 through 4 (of 4 total)
  • MichaelH

    (@michaelh)

    Thread Starter Steven

    (@spstieng)

    Yeah, that’s an alternative.

    But I was hoping to find something that allows to user to create a table “on-the-spot”, and not having to pre-create the table.

    syncbox

    (@syncbox)

    Try using something like Custom Field Templates, where you can create a custom form for each type of data (eg.employee-pic and employee-bio or whatever) and then you client simply writes into those fields….

    Then, in your page template, you can generate the html and css around calling the custom field data. I use coffeetocode.com’s excellent get_cutom_fields plugin to echo the data from the key field, wrapping the before and after html around it. This plugin only writes that html code IF the key and value are present… though there are many functions and methods available in the plugin…. inside AND outside the loop.

    That way, the client is simply supplying the data, not formatting the markup at all… a far better method, imho, than trusting someone without much skill in html to write it, irregardless of WHAT that html structure is.

    You (as the template developer) could write table code around the data retrieved… or write a list (that’s what I would do, frankly) and float the image left of the text content using your preferred method of float clearing for each list item’s block. This is all hidden from the editor of the content.

    MichaelH

    (@michaelh)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I add tables in posts?’ is closed to new replies.