NAVIGATION
This shows you the differences between two versions of the page.
deutsch:phpwcms-system:artikel:contentparts:dateiliste:vorlage [2009/08/28 14:47] Knut Heermann (flip-flop) |
deutsch:phpwcms-system:artikel:contentparts:dateiliste:vorlage [2018/06/03 18:08] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Vorlage ====== | ====== Vorlage ====== | ||
- | ===== Ausgabe der Infofeldes aus der Dateizentrale im CP Dateiliste ===== | + | ===== Ausgabe des Copyright- und Infofeldes aus der Dateizentrale im CP Dateiliste ===== |
**Forum:** [[http://forum.phpwcms.org/viewtopic.php?p=115474#p115474]] | **Forum:** [[http://forum.phpwcms.org/viewtopic.php?p=115474#p115474]] | ||
Line 16: | Line 16: | ||
bitte folgendes einsetzen: | bitte folgendes einsetzen: | ||
- | <code php |h snipped |h > | + | <code php > |
<!--FILE_ENTRY_START//--> | <!--FILE_ENTRY_START//--> | ||
[PHP] | [PHP] | ||
foreach($GLOBALS['content']['files_result'] as $_files_x => $value) { | foreach($GLOBALS['content']['files_result'] as $_files_x => $value) { | ||
- | $_longinfo = $value['f_name'] == '{FILE_NAME}' ? $value['f_longinfo'] : ''; | + | $_longinfo = ($value['f_name'] == '{FILE_NAME}') ? $value['f_longinfo'] : ''; |
+ | $_copyright = ($value['f_name'] == '{FILE_NAME}') ? $value['f_copyright'] : ''; | ||
echo $_longinfo; | echo $_longinfo; | ||
+ | echo $_copyright; | ||
} | } | ||
Line 32: | Line 34: | ||
Mache auch einen Test mit | Mache auch einen Test mit | ||
<code php>dumpVar($GLOBALS['content']['files_result']);</code> | <code php>dumpVar($GLOBALS['content']['files_result']);</code> | ||
- | Alle Variablen werden anschaulich ausgegeben. | + | Alle Variablen werden anschaulich ausgegeben. :!: |
\\ | \\ | ||
- | ** Seit der V1.4.2 r352: kann die Zeile ** (empfohlen) | + | <note tip> |
- | <code php>$_longinfo = $value['f_name'] == '{FILE_NAME}' ? $value['f_longinfo'] : '';</code> | + | **Seit der V1.4.2 r352**: |
- | getauscht werden gegen\\ | + | |
- | <code php>$_longinfo = $value['f_id'] == '{FILE_ID}' ? $value['f_longinfo'] : '';</code> | + | |
+ | <code php > | ||
+ | <!--FILE_ENTRY_START//--> | ||
+ | |||
+ | [PHP] | ||
+ | foreach($GLOBALS['content']['files_result'] as $_files_x => $value) { | ||
+ | $_longinfo = ($value['f_id'] == '{FILE_ID}') ? $value['f_longinfo'] : ''; | ||
+ | $_copyright = ($value['f_id'] == '{FILE_ID}') ? $value['f_copyright'] : ''; | ||
+ | echo $_longinfo; | ||
+ | echo $_copyright; | ||
+ | } | ||
+ | |||
+ | // dumpVar($GLOBALS['content']['files_result']); | ||
+ | [/PHP] | ||
+ | </code> | ||
+ | </note> | ||
\\ | \\ | ||
===== Infofeld und Downloadschalter ===== | ===== Infofeld und Downloadschalter ===== | ||
- | Ausgabe des Infofeldes und Reaktion auf den Downloadschalter, Z.B. ausblenden der Anzeige mit ##<div style="display: none;">## | + | Ausgabe des Infofeldes und Reaktion auf den Downloadschalter aus der Dateizentrale, z.B. ausblenden der Anzeige mit \\ |
+ | ##<div style="display: none;">## | ||
<code php |h snipped |h > | <code php |h snipped |h > |