Location: PHPKode > projects > Mambo CMS > mambots/editors/tinymce/docs/option_theme_advanced_custom_layout.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>Option: theme_advanced_custom_layout</title>
<link href="css/screen.css" rel="stylesheet" type="text/css" />

<div class="header">
	<h1>Option: theme_advanced_custom_layout</h1>

<div class="content">
		This option is used to specify a custom layout manager function. The format of this function is: customLayout(template) where template is the template array within the advanced theme, this function should return a new template array containing the editor HTML in a key called html. This option can only be used when <a href="option_theme.html">theme</a> is set to advanced and when the <a href="option_theme_advanced_layout_manager.html">theme_advanced_layout_manager</a> option is set to the value of &quot;RowLayout&quot;.


	<div class="separator"></div>

	<h3>Example of usage of the theme_advanced_custom_layout option:</h3>
	<div class="example">
function <strong>myCustomLayout</strong>(template) {
	// Make custom layout
	template['html'] = "make new layout";

	return template;

	<strong>theme_advanced_custom_layout : "myCustomLayout"</strong>

<div class="footer">
	<div class="helpindexlink"><a href="index.html">Index</a></div>
	<div class="copyright">Copyright &copy; 2003-2006 <a href="http://www.moxiecode.com">Moxiecode Systems AB</a></div>
	<br style="clear: both" />

Return current item: Mambo CMS