Differences

This shows you the differences between two versions of the page.

deutsch:andere-erweiterungen:hacks:cp-als-standardauswahl-definieren [2010/08/17 08:37]
Knut Heermann (flip-flop)
deutsch:andere-erweiterungen:hacks:cp-als-standardauswahl-definieren [2018/06/03 18:09] (current)
Line 30: Line 30:
---- ----
 +
 +\\
==== conf.inc.php ==== ==== conf.inc.php ====
Line 37: Line 39:
In der config/phpwcms/conf.inc.php wird eingefügt z.B. für den CP "Bilder = Nr 2" In der config/phpwcms/conf.inc.php wird eingefügt z.B. für den CP "Bilder = Nr 2"
<code php> <code php>
-$phpwcms['custom_cp_select']  = '2'; // set selected cp no, list in "include/inc_lib/article.contenttype.inc.php" - default = '' - +KH170810+$phpwcms['custom_cp_select']  = 2; // set selected cp no, list in "include/inc_lib/article.contenttype.inc.php" - default = '' - +KH170810
</code> </code>
 +
 +<note>**Siehe hierzu die Nummern der [[deutsch/technik/aufruf-interner-funktionen/content_part_typen]].**</note>
\\ \\
-===== Codeschnipsel (Hack) =====+==== Codeschnipsel (Hack) ====
-Erweiterung der Datei include/inc_lib/backend.functions.inc.php in der Funktion "getContentPartOptionTag" etwa ab Zeile 454.+Erweiterung der Datei **include/inc_lib/backend.functions.inc.php** in der Funktion "getContentPartOptionTag" etwa ab Zeile 454.
-Ersetzt wird:+**Ersetzt wird:**
<code php> <code php>
} else { } else {
Line 60: Line 64:
   
-durch+**durch**
\\ \\
- 
-==== V01: ==== 
Line 69: Line 71:
<code php> <code php>
} else { } else {
- // ------ +KH 17.08.2010 Patch set selected cp no+ // ------ +KH 17.08.2010 Patch: set selected cp no
if ($selected === '' AND isset($GLOBALS['phpwcms']['custom_cp_select'])) $selected = $GLOBALS['phpwcms']['custom_cp_select']; if ($selected === '' AND isset($GLOBALS['phpwcms']['custom_cp_select'])) $selected = $GLOBALS['phpwcms']['custom_cp_select'];
// ------ +KH end // ------ +KH end
deutsch/andere-erweiterungen/hacks/cp-als-standardauswahl-definieren.1282027033.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0