N'abend,
Ich muss / will auf einer Übersichtsseite Daten aus unterschiedlichen Tabellen abfragen. Wie gehe ich da am besten vor?
Auf der Übersichtsseite hab ich zum einen Buttons, deren Anzahl und verlinkung von den erstellten Seiten ausgeht... Im ACP erstelle ich meine Seite
Auf der gleichen Seite sollen mir die Daten ausgegeben werden, die der User zuvor eingegeben hat.
Hier mein Template, um es verständlicher zu machen
Code
{include file='documentHeader'}
<head>
<title>{lang}app.application.headline{/lang}</title>
{include file='headInclude'}
</head>
<body id="tpl{$templateName|ucfirst}">
{include file='header' sidebarOrientation='right'}
<header class="boxHeadline">
<h1>{lang}app.application.headline{/lang}</h1>
</header>
{include file='userNotice'}
<div class="container">
{if $objects|count}
{foreach from=$objects item=phase}
<div class="row">
<div class="col s12">
<div class="left">
<a href="{link application='app' controller='appRequirement'}{/link}{@$phase->phaseID}" class="waves-effect waves-light btn">{@$phase->phase}</a>
</div>
</div>
</div>
{/foreach}
{else}
<p class="info">{lang}app.application.noPhase{/lang}</p>
{/if}
{if $objects|count}
<div class="tabularBox tabularBoxTitle marginTop">
<header>
<h2>{lang}app.acp.application.list{/lang} <span class="badge badgeInverse">{#$items}</span></h2>
</header>
<table class="table">
<thead>
<tr>
<th class="columnID"> {lang}app.application.id{/lang}</th>
<th class="columnTime"> {lang}app.application.time{/lang}</th>
<th class="columnPhase"> {lang}app.application.phase{/lang}</th>
<th class="columnState"> {lang}app.application.state{/lang}</th>
<th class="columnAction"> {lang}app.application.action{/lang}</th>
{event name='columnHeads'}
</tr>
</thead>
<tbody>
{foreach from=$objects item=application}
<tr class="Row">
<td class="columnID">#{@$application->appID}</td>
<td class="columnTime">{$application->time}</td>
<td class="columnPhase">{$application->phase}</td>
<td class="columnState">{$application->state}</td>
<td class="columnAction"><a href="{link application='app' controller='app'}{/link}{@$application->appID}" class="waves-effect waves-light btn"><i class="fa fa-eye"></i></a></td>
{event name='columns'}
</tr>
{/foreach}
</tbody>
</table>
</div>
{else}
<p class="info">{lang}wcf.application.noApps{/lang}</p>
{/if}
</div>
{include file='footer'}
</body>
</html>
Display More
Ich müsste theoretisch in meiner Klasse 2x public $objectListClassName =, Praktisch geht es ja aber nicht, weil sich das sonst gegenseitig überschreibt. Irgendwelche Ideen?
~LG