Re: Apply template without removing contents?
OK, I have a raw hack that kinda works. In tiki_editpage.php chage:
1. Line 517: (remove the 'preview' check)
CHAGE:
if %22templateId%22) && $_REQUEST%22templateId%22 > 0 && !isset($_REQUEST'preview' && !isset($_REQUEST['sa" class="wiki wikinew text-danger tips isset">$_REQUEST%22templateId%22) && $_REQUEST%22templateId%22 > 0 && !isset($_REQUEST'preview' && !isset($_REQUEST'save'
TO
if %22templateId%22) && $_REQUEST%22templateId%22 > 0 && !isset($_REQUEST'save'" class="wiki wikinew text-danger tips isset">$_REQUEST%22templateId%22) && $_REQUEST%22templateId%22 > 0 && !isset($_REQUEST'save'
2. Line 519: (append previous edits)
CHAGE:
$_REQUEST%22edit%22 = $template_data%22content%22;
TO:
$_REQUEST%22edit%22 = $_REQUEST%22edit%22 . "\n" . $template_data%22content%22;
It allows template text appended to the end, and you can apply templates multiple times. I just start learning PHP and not familiar with Tiki at all, so I guess it's not a smart hack and might break something else. But it seems to be working on my test site.
Cheers.