Re: Sub trees in PHPLayers
After a few days of deciphering code I found a solution .
in \templates\tiki-admin_options.tpl find
Copy to clipboard
option value="s" {if $type eq 's'}selected="selected"{/if}>{tr}section{/tr} /option> (line 27)
add this line beneath it:
Copy to clipboard
option value="p" {if $type eq 'p'}selected="selected"{/if}>{tr}submenu{/tr} /option>
then in \lib\smarty_tiki\function.phplayers.php find:
Copy to clipboard
if ($cd["type"] == 'o' and $indented) { (line 70) $output.= ".";
add these two lines beneath it:
Copy to clipboard
} elseif ($cd["type"] == 'p') { $output.= "..";
and thats it! You can keep adding more sub menus by using a different value in the two files
(p in this case) and put another . in the output in function.phplayers.php, eg:
Copy to clipboard
} elseif ($cd["type"] == 'r') { $output.= "...";
(i had to take off the < to make it show up here)