Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frage wegen TMPL #58

Open
ghost opened this issue Jun 14, 2017 · 0 comments
Open

Frage wegen TMPL #58

ghost opened this issue Jun 14, 2017 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2017

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants