When I Edit a post, the content shows nicely. But when I click the save button, nothing happens. To me that seems like a ’hey, you forgot the !’ issue, but I can’t figure out where I forgot it.
These are my codes:
on page 26
[!NewsManager? &folder=`7` &editformid=`24` &rowtpl=`ItemOpties`!]
on page 24
[!NewsEditor? &folder=`7` &postid=`26` &formtpl=`NewsPublisherForm`!]
as you can see I’ve re-used my NewsPublisherForm but surely that can’t be the issue, can it? It’s just a form, right?
admin: corrected typo in subject
Are you sure nothing happend? Clear MODx Cache and refresh tree and now check folder 7!
I use this in both NewsManager and NewsEditor calls: &clearcache=`1`
I added &clearcache=`1`, but still nothing happens.
When I click on save, the screen very briefly flashes but remains teh same. If I then go the item I just edited, the changes are not there.
I think you are right - remove the &formtpl=`NewsPublisherForm`
Another suggestion: I removed " " in the dateformat variable!
http://modxcms.com/forums/index.php/topic,37774.msg228367.html#msg228367
but if I remove the form, how can I edit the data?
If you remove it NE will use a default form instead. Now you’re telling NE to go for a chunk named that way!
yeah, but I have created a form-chunk named that way. The problem is that my users are dutch-speaking and the default form is in english. So I created my own form in dutch, named it like that and linked to the form. in fact the form is showing, it’s just not saving my changes
Yeah, but we can’t determine whether or not it’s your custom chunk form that is the error
unless you try if it works with the default one!
If you really don’t want to do that -
Post your NewsPublisherForm chunk code here!
Forum Tip! --> Mark/select the code text and click

button
Example
The default form:
<form name="NewsEditor" method="post" action="[~[*id*]~]">
<input name="NewsEditorForm" type="hidden" value="on" />
<input name="editid" type="hidden" value="[+editid+]" />
Page title:<br /><input name="pagetitle" type="text" size="40" value="[+pagetitle+]" /><br />
Long title:<br /><input name="longtitle" type="text" size="40" value="[+longtitle+]" /><br />
Description:<br /><input name="description" type="text" size="40" value="[+description+]" /><br />
Published date:<br /><input name="pub_date" type="text" value="[+pub_date+]" size="40" readonly="readonly" />
<a onClick="nwpub_cal1.popup();" onMouseover="window.status=\'Select date\'; return true;" onMouseout="window.status=\'\'; return true;" style="cursor:pointer; cursor:hand"><img align="absmiddle" src="manager/media/images/icons/cal.gif" width="16" height="16" border="0" alt="Select date" /></a>
<a onClick="document.NewsEditor.pub_date.value=\'\'; return true;" onMouseover="window.status=\'Remove date\'; return true;" onMouseout="window.status=\'\'; return true;" style="cursor:pointer; cursor:hand"><img align="absmiddle" src="manager/media/images/icons/cal_nodate.gif" width="16" height="16" border="0" alt="Remove date"></a><br />
Unpublished date:<br /><input name="unpub_date" type="text" value="[+unpub_date+]" size="40" readonly="readonly" />
<a onClick="nwpub_cal2.popup();" onMouseover="window.status=\'Select date\'; return true;" onMouseout="window.status=\'\'; return true;" style="cursor:pointer; cursor:hand"><img align="absmiddle" src="manager/media/images/icons/cal.gif" width="16" height="16" border="0" alt="Select date" /></a>
<a onClick="document.NewsEditor.unpub_date.value=\'\'; return true;" onMouseover="window.status=\'Remove date\'; return true;" onMouseout="window.status=\'\'; return true;" style="cursor:pointer; cursor:hand"><img align="absmiddle" src="manager/media/images/icons/cal_nodate.gif" width="16" height="16" border="0" alt="Remove date"></a><br />
Summary:<br /><textarea name="introtext" cols="50" rows="5">[+introtext+]</textarea><br />
Content:<br /><textarea name="content" cols="50" rows="8">[+content+]</textarea><br />
<input name="send" type="submit" value="Submit" />
</form>
- Try add action="[~[*id*]~]"