Archiv nach Kategorie "Joomla"

Standard-Veröffentlichen von Content in Joomla

Veröffentlicht in Joomla am Oktober 17, 2006 von dieapokalypse

Die Default Einstellungen beim erstellen eines content im Fontend,
sind in der Datei /component/com_content/content.php zu finden.

Code:
$row->sectionid = $sectionid;
$row->version = 0;
$row->state = 0;
$row->ordering = 0;
$row->images = array();
$row->publish_up = date( 'Y-m-d', time() );
$row->publish_down = 'Never';
$row->creator = 0;
$row->modifier = 0;
$row->frontpage = 0;

- Bei Version 1.0.8 Zeile 1559 – 1568 entsprechend anpassen.
- Bei Version 1.0.9 das ganze ab Zeile 1673
- Bei Version 1.0.11 das ganze ab Zeile 1709

state 1 anstatt 0 ergiebt veröffentlicht.
frontpage 1 anstatt 0 ergiebt veröffentlicht auch auf frontpage

usw…

Vorteil: Die Einstellungen können so Default z.B. auf veröffentlichen eingestellt werden,
ohne dass der User dies extra tun muss.