• Resolved dalemoore

    (@dalemoore)


    I have set up a custom template to make each entry contained within a table row, like so:

    <tr>
    	<td><?php echo $entry->getTitle() ?></td>
    	<td><?php echo $entry->getDepartment() ?></td>
            <td>...etc.</td>
    </tr>

    I then manually input the table tag within the WordPress page itself, as well as the table headers. This works great, except Connections generates many empty divs above/around the table, as well as wraps each table row in a div, resulting in malformed markup. I’m pretty sure I will just go in and edit the output class to fix this, but it would be nice if my changes wouldn’t break with updates. I hate tables as much as many people, but it makes more semantic sense to me to mark this up as a table. Any suggestions?

    http://wordpress.org/extend/plugins/connections/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dalemoore

    (@dalemoore)

    Oops, sorry, the code I just took out to make the divs disappear isn’t the output class but inc.shortcodes.php.

    Plugin Author Steven

    (@shazahm1hotmailcom)

    @dalemoore

    Sorry, but I can not remove those div as their critical for many of the advanced features for templates. I will be releasing an alternation solution soon, as a add-on. I’m calling it Connections qT. Basically you can build ‘simple’ templates from right within the post editor. Which would be ideal for what you want to accomplish. So for example, you could do this with qT:

    <table>
    [connections_qt]
    <tr>
    	<td>%title%</td>
    	<td>%department%</td>
            <td>...etc.</td>
    </tr>
    [/connections_qt]
    </table>

    Now, I said ‘simple’ because you can also use shortcodes within the qT shortcode. In my testing, I’ve been able to do some rather nifty things like tabs and accordions. Here’s a sample from my theme which has a tabs shortcode feature:

    [connections_qt]
    <h4>%name%</h4>
    [tabs]
    [tab title="Bio"]
    %bio%
    [/tab]
    [tabs]
    [tab title="Notes"]
    %notes%
    [/tab]
    [/tabs]
    [/connections_qt]

    So, as you see, the ‘simple’ template can actually be rather complex.

    Thread Starter dalemoore

    (@dalemoore)

    Ah, yes, that would be great. I look forward to it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using tables instead of divs with Connections’ is closed to new replies.