Beschäftige mich erstmals mit ZOPE/PLONE.
Ich hab irgendwie was grundsätzliches noch nicht gefunden bei Plone.
Ich habe in Zope eine kurze Page geschrieben, die mir eine MySQL Tabelle ausgibt.
Das Ganze besteht aus 3 Files:
Dem Page Template parts.html:
Code: Alles auswählen
<html>
<h1>DATABASE entries</h1>
<table border="1" cellpadding="3">
<tr>
<th>ID</th>
<th>Aircraft</th>
<th>ATA</a></th>
<th>SUBATA</th>
<th>Description</th>
</tr>
<tr tal:repeat="parts container/getParts">
<td tal:content="parts/id">id</td>
<td tal:content="parts/aircraft">Aircraft</td>
<td tal:content="parts/ATA">ATA</td>
<td tal:content="parts/SUBATA">SUBATA</td>
<td tal:content="parts/DESCRIPTION">Description</td>
</tr>
</table>
</html>
Id: MySQL_connection
Title: Z MySQL Database Connection
Database Connection String: test root root
und der Z SQL Method getParts: select * from parts
In Zope funktioniert das Ganze. Wie kann ich diese Files nun in Plone darstellen lassen und auch evenentuell das Standardtabellendesign von Plone darin implementieren? Wohin in Plone muss ich diese Files kopieren?
Danke für eure Hilfe,
Johannes