LOOP - TABLE; repeat TR, controls placement

General discussions about WebYep

LOOP - TABLE; repeat TR, controls placement

Postby b-webyep » Sat Apr 04, 2009 4:01 pm

:?:
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.

THX!
WebYep is very cool! :mrgreen:
b-webyep
 
Posts: 8
Joined: Sat Mar 28, 2009 4:44 pm

Re: LOOP - TABLE; repeat TR, controls placement

Postby johannes » Sat Apr 11, 2009 3:49 pm

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.
johannes
Objective Development
Objective Development
 
Posts: 763
Joined: Fri Nov 10, 2006 3:39 pm

Re: LOOP - TABLE; repeat TR, controls placement

Postby AldebaranJill » Sat Mar 06, 2010 12:18 am

Just used this tip and thought posting the code would save someone else time:
<?php $webyep_oCurrentLoop->showEditButtons(); ?>
AldebaranJill
 
Posts: 1
Joined: Thu Oct 02, 2008 11:18 pm

Re: LOOP - TABLE; repeat TR, controls placement

Postby johannes » Wed Mar 10, 2010 5:03 pm

Thx Jill! :D
johannes
Objective Development
Objective Development
 
Posts: 763
Joined: Fri Nov 10, 2006 3:39 pm


Return to WebYep (english)

Who is online

Users browsing this forum: No registered users and 2 guests