Seattle Web Design
Blog > Adding WebYep to Tables to Create Repeating Rows

Meet the author:
Jill Olkoski

Jill has a MA in Clinical Psychology, a BS in Computer Science, and a BS in Mechanical Engineering.

She currently owns Aldebaran Web Design in Edmonds (near Seattle WA) and enjoys educating her clients on topics related to small business website design.

In Jill's previous life, she spent 17 years in the engineering and quality organizations of a Fortune 100 tech company.

 


Adding WebYep to Tables to Create Repeating Rows

April 27th, 2010

This is a solution that I use often, and wanted to capture it here in my blog in the event that the Web Yep form is down.

The question was:

1. Where is the best placement of OPEN and CLOSE loop elements for a repeating table row?
– Inside the TR tags?
– outside TR tags?
2. Where is the best placement of the LOOP controls?
– Whether the controls are placed AUTOMATIC or MANUALLY they display inline at the top of the table, which is confusing to the user.

And the answer was:

ad 1.: Outside the TR tags – the loop should surround the table row

ad 2.: When placing the loop start in a position where now content HTML is allowed (like between the TABLE and TR tags) then you should set the control flag to MANUALLY and insert the little PHP code snippet for the controls (as listed in the Menu Element’s reference) elsewhere – e.g. at the beginning or end of the table cell (right after the TD or before the /TD). You might want to enclose that in a DIV and give that a nowrap via CSS so the buttons are kept in a separate line.

And I added:

Just used this tip and thought posting the code would save someone else time:
<?php $webyep_oCurrentLoop->showEditButtons(); ?>

Original Forum Article is here: LOOP – TABLE; repeat TR, controls placement

Jill
--------------
J. Olkoski
Aldebaran Web Design, Seattle
Jill Olkoski has a BS in Engineering, a BS in Computer Science and an MA in Clinical Psychology. She delights in using her advanced technical and psychological skills to help small business owners develop cost-effective and successful websites.



2 Responses to “Adding WebYep to Tables to Create Repeating Rows”

  1. Xaby Web Design Says:

    Thanks for sharing 🙂 Been looking for this for awhile. Will try this out now. Thanks for your effort !

  2. gahiowww Says:

    Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your web site is great, let alone the content!. Thanks For Your article about Adding WebYep to Tables to Create Repeating Rows | Aldebaran Web Design Blog – Seattle Website Design – Small Business Web Design .




Our Preferred Website Hosting Company:

Need A Logo?


99Designs.com

Our Favorite Website Traffic Analysis Tool:

Web-Stat hit counters
 ©2006 - © Aldebaran Web Design Seattle, A DBA of Aldebaran Services LLC
Blog Email Subscription:
Search Blog Articles: