in reply to Re^5: H.O.P && aXML
in thread H.O.P && aXML

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^7: H.O.P && aXML
by Corion (Patriarch) on Jul 17, 2011 at 19:29 UTC

    I'm no expert on TT, but it's basically

    <table> [% FOR filename IN walk( dir="/home/username/Desktop" ) %] <tr> <td>Filename :</td> <td>[% filename %]</td> <td>[% link( to=> $filename, "Show" ) %]</td> <td>[% link( action=>"deletefile" filename => $filename, "Delete +" )%]</td> ... </tr> [% END FOR %] </table>

    or, depending on whether the "text content" is supposed to get longer or not, a simple

    <td>[% filename %]</td> <td>[% link( to=> $filename ) %]Show</a></td>

    The second approach is worse in my opinion, as it will allow complex and long HTML to be inserted, which is quite inconvenient if the site is ever to be translated.

Re^7: H.O.P && aXML
by ikegami (Patriarch) on Jul 18, 2011 at 04:38 UTC
    [% USE dir = Directory("/home/username/Desktop") %] [% FOREACH file = dir.files %] ... [% END %]
A reply falls below the community's threshold of quality. You may see it by logging in.