Return to Snippet

Revision: 39017
at January 12, 2011 00:19 by krillzip


Updated Code
<?php

$smarty->assign('heading_summary', $this->Lang('heading_summary'));
$smarty->assign(
	'list_summary_templates', 
	$this->ShowTemplateList(
		$id, 
		$returnid, 
		TMPL_PREFIX_SUMMARY, 
		$this->GetPreference('default_summary_template'),
		'summary_templates',
		'default',
		$this->Lang('title_summary'),
		$this->Lang('text_summary_edit'),
		'defaultadmin'
	)
);

echo $this->ProcessTemplate('admin_summary_templates.tpl');

?>

/************ admin_summary_templates.tpl ***************/ 

<h3>{$heading_summary}</h3>
{$list_summary_templates}

/********************* install.php **********************/ 

$this->SetTemplate(
	TMPL_PREFIX_SUMMARY.'default',
	$this->GetTemplateFromFile('default_summary'),
	$this->GetName()
	);

Revision: 39016
at January 12, 2011 00:16 by krillzip


Initial Code
<?php

$smarty->assign('heading_summary', $this->Lang('heading_summary'));
$smarty->assign(
	'list_summary_templates', 
	$this->ShowTemplateList(
		$id, 
		$returnid, 
		TMPL_PREFIX_SUMMARY, 
		$this->GetPreference('default_summary_template'),
		'summary_templates',
		'default',
		$this->Lang('title_summary'),
		$this->Lang('text_summary_edit'),
		'defaultadmin'
	)
);

echo $this->ProcessTemplate('admin_summary_templates.tpl');

?>

/********************* SMARTY **********************/ 

<h3>{$heading_summary}</h3>
{$list_summary_templates}

Initial URL

                                

Initial Description

                                

Initial Title
summary and details-templates with CGExtensions

Initial Tags

                                

Initial Language
PHP