Loading...
 
Skip to main content

Features / Usability


Doh ! - Why does tikiwiki not save changes made after a template is selected ?

👻👻👻 Doh! Was just about read all you guys fab replies to this question when I slipped and clicked the mouse button just as it was over the delete icon in the topic list. Arrrtgg!!!

So: can you please reply again 😉

The question was when I select a content template in the editor and tikiwiki reloads the page with it's text for editing, if I then make text changes and hit save, it doesn't save the changes I have made, just the contents of the template as it was loaded ?

The only solution I have found is to select the template. Save it, and then reopen for editing.

ciao
Derek.

I don't know why... But I posted a patch for that and someone deleted the thread... Maybe it replicated, but it's a very strange stuff....

You have to edit the tiki-editpage.php and change the line:

$smarty->assign("templateId", $_REQUEST["templateId"]);

with

$smarty->assign("templateId", 0);


here:

Copy to clipboard
if (isset($_REQUEST["templateId"]) && $_REQUEST["templateId"] > 0) { $template_data = $tikilib->get_template($_REQUEST["templateId"]); $_REQUEST["edit"] = $template_data["content"]; $_REQUEST["preview"] = 1; $smarty->assign("templateId", 0); # Bug in 1.8.5 version edited by brain & eagleone # $smarty->assign("templateId", $_REQUEST["templateId"]); }


I've just added a bug issue here:
https://sourceforge.net/tracker/index.php?func=detail&aid=1117971&group_id=64258&atid=506846Question

thanks that worked just fine. 😊