You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hallo. Komme mit den TMPL Sachen nicht ganz klar. Wo oder wie werden die generiert ? Ich bräuchte in der vlib.table.tmpl ab Zeile 339 (kann bei euch +/- paar sein) eine Abfrage ob der Attachment Type 1 oder 2 ist. In der Tabelle "attachements" stehen ja offensichtlich die Anlagen die dort auch mit type_id 1 oder 2 (bei mir gibt es nur 2 Typen) angelegt sind.
Man könnte beim anlegen der Typen noch eine Spalte Image dazumachen um dann in der Tabelle das Bild anzuzeigen aber derzeit zu weit.
Ich wollte nun in etwa folgendes Umbauen: <table> {TMPL_LOOP NAME="attachements"} {TMPL_IF TYPE_ID="1"} ????? <td><img src="{TMPL_VAR NAME="filename"}" title='{TMPL_VAR NAME="name"}' style="width:50px;" /></td> {TMPL_ELSE} <td><img src="img/pdf_icon_2.png" title="{TMPL_VAR NAME="filename"}" style="width:40px;"></td> {/TMPL_IF} {/TMPL_LOOP} </table>
Wäre aber zu einfach der wohl mit TYPE_ID nix anfangen kann. Wo finde ich die SQL Abfrage dafür ?
The text was updated successfully, but these errors were encountered:
Hallo. Komme mit den TMPL Sachen nicht ganz klar. Wo oder wie werden die generiert ? Ich bräuchte in der vlib.table.tmpl ab Zeile 339 (kann bei euch +/- paar sein) eine Abfrage ob der Attachment Type 1 oder 2 ist. In der Tabelle "attachements" stehen ja offensichtlich die Anlagen die dort auch mit type_id 1 oder 2 (bei mir gibt es nur 2 Typen) angelegt sind.
Man könnte beim anlegen der Typen noch eine Spalte Image dazumachen um dann in der Tabelle das Bild anzuzeigen aber derzeit zu weit.
Ich wollte nun in etwa folgendes Umbauen:
<table> {TMPL_LOOP NAME="attachements"} {TMPL_IF TYPE_ID="1"} ????? <td><img src="{TMPL_VAR NAME="filename"}" title='{TMPL_VAR NAME="name"}' style="width:50px;" /></td> {TMPL_ELSE} <td><img src="img/pdf_icon_2.png" title="{TMPL_VAR NAME="filename"}" style="width:40px;"></td> {/TMPL_IF} {/TMPL_LOOP} </table>
Wäre aber zu einfach der wohl mit TYPE_ID nix anfangen kann. Wo finde ich die SQL Abfrage dafür ?
The text was updated successfully, but these errors were encountered: