We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15796
    • 24 Posts
    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
      • 20413
      • 2,877 Posts
      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`
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 15796
        • 24 Posts
        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.
          • 20413
          • 2,877 Posts
          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
            @hawproductions | http://mrhaw.com/

            Infograph: MODX Advanced Install in 7 steps:
            http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

            Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
            http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
            • 15796
            • 24 Posts
            but if I remove the form, how can I edit the data?
              • 20413
              • 2,877 Posts
              If you remove it NE will use a default form instead. Now you’re telling NE to go for a chunk named that way!
                @hawproductions | http://mrhaw.com/

                Infograph: MODX Advanced Install in 7 steps:
                http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                • 15796
                • 24 Posts
                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
                  • 20413
                  • 2,877 Posts
                  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! wink

                  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
                  <form...
                    @hawproductions | http://mrhaw.com/

                    Infograph: MODX Advanced Install in 7 steps:
                    http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                    Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                    http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
                    • 15796
                    • 24 Posts
                    for some funny reason it actually worked with the default form. hmmmm....


                    this is my form-chunk and I actually use the same form for posting and then it actually works perfectly:
                    <form name="NewsPublisher" method="post">
                            <input name="NewsPublisherForm" type="hidden" value="on" />
                            Titel:<br /><input name="pagetitle" type="text" size="40" value="[+pagetitle+]" /><br />
                            Voor:<br /><input name="longtitle" type="text" size="40" value="[+longtitle+]" /><br />
                            Start:<br /><input name="description" type="text" size="40" value="[+description+]" /><br />    
                            Wanneer:<br /><textarea name="content" cols="50" rows="8">[+content+]</textarea><br />
                            Eerstvolgende keer: <br />
                    <input name="pub_date" id="pub_date" type="text" value="[+datum+]" size="40" readonly="readonly" />
                    <a onclick="nwpub_cal1.popup();" onmouseover="window.status='Select date'; return true;" onmouseout="window.status=''; return true;"><img src="manager/media/images/icons/cal.gif" width="16" height="16" alt="Select date" /></a>
                    <a onclick="document.NewsPublisher.pub_date.value=''; return true;" onmouseover="window.status='Remove date'; return true;" onmouseout="window.status=''; return true;"><img src="manager/media/images/icons/cal_nodate.gif" width="16" height="16" alt="Remove date"></a>
                            <input name="send" type="submit" value="Opslaan" />
                    </form>
                      • 20413
                      • 2,877 Posts
                      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*]~]"
                        @hawproductions | http://mrhaw.com/

                        Infograph: MODX Advanced Install in 7 steps:
                        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower