From: ajung <li...@zo...> - 2009-10-30 12:55:38
|
The template is looking fine and should render (whatever) within the main slot (look & feel) of Plone - or? -aj rvengelen wrote: > > Hi Andreas, > > Thank you for you quick response but I'm not sure what you mean. Here's > the code of my ZPT, what can you say about that? > > ----------------------------------------- > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > lang="en" > metal:use-macro="here/main_template/macros/master" > i18n:domain="plone"> > > <body> > > <div metal:fill-slot="main"> > <TABLE BORDER=2 CELLPADDING=4> > <TR> <TH CELLSPAN=1 BGCOLOR="#D2D8F9">AS</TH> > <TH CELLSPAN=1 BGCOLOR="#D2D8F9">Peer</TH> > <TH CELLSPAN=1 BGCOLOR="#D2D8F9">IX</TH> > <TH CELLSPAN=1 BGCOLOR="#D2D8F9">Status</TH> > <TH CELLSPAN=1 BGCOLOR="#D2D8F9">Prefixes</TH> > <TH CELLSPAN=1 BGCOLOR="#D2D8F9">Router</TH> > </TR> > <ul> > <li tal:repeat="records context/select_all_tables"> > <TR><TD>AS</TD> > <TD>Peer</TD> > <TD>IX</TD> > <TD>Status</TD> > <TD>Status</TD> > <TD>Router</TD> > </TR> > </li> > </ul> > </TABLE> > > </div> > > </body> > </html> > ------------------------ > > Thanks! > > Ron > > ajung wrote: >> >> Re-use the main_template and fill in your content using >> metal:fill-slot="main"..look >> at existing templates of Plone or some add-ons (or as documented in the >> ZPT docs). >> >> Andreas >> >> >> rvengelen wrote: >>> >>> Hi All, >>> >>> I'm pretty new to Plone, so I hope this question can be answered fairly >>> easily. :) >>> >>> I've created a Page Template (ZPT/TAL) to retrieve some information from >>> a MySQL database tabel and display that in HTML. When I browse to the >>> hard link of the template all information is diplayed as expected. >>> >>> I've been using this tutorial for creating the ZPT: >>> http://plone.org/documentation/tutorial/plone-and-mysql >>> http://plone.org/documentation/tutorial/plone-and-mysql >>> >>> >>> The big question (for me) is, how can I possibly use this ZPT or >>> atleast the result of the ZPT as content within Plone? >>> >>> Kind Regards, >>> >>> Ron van Engelen >>> >> >> > > -- View this message in context: http://n2.nabble.com/Using-a-ZPT-TAL-as-content-in-Plone-tp3918562p3918736.html Sent from the General Questions mailing list archive at Nabble.com. |