We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28159
    • 22 Posts
    I have a feeling this is a very simple case of "I’m overlooking something", but I can’t for the life of me find it.

    So....

    ModX Evolution 1.0.0
    NewsEditor 1.0 / NewsPublisher 1.4

    I’ve created the RTContent TV with the widget "Rich Text" and the value "tinyMCE" (also tried with "TinyMCE", in case it’s case sensitive).
    The TV is accessible through the page’s template and the TinyMCE windows shows up in all its glory at the bottom of the "Make New Post" page in the ’Template Variables’ section.

    I’ve created a page (Make New Post) with the following NewsPublisher / NewsEditor call:

    [tt]
    [!NewsEditor? &folder=`27` &footertpl=`CommentsTemplate` &formtpl=`NewsTemplate` &aliastitle=`1` &rtcontent=`tvRTContent`!][/tt]

    In the NewsTemplate, I have replaced the Content textarea tag with this:

    [tt]Content:
    [*RTContent*]
    [/tt]


    The result: I get a nice little form with everything there, except the "Content" area shows.... nothing. No text field *at all*. No plain text, no rich text, just... nothing. It acts like the [*RTContent*] is completely blank / contains nothing.

    The HTML code reflects this: [tt]Content:

    [/tt]

    I’ve double-checked that the case is correct and consistent (that it’s always "RTContent" and not "RTcontent" or such). I had identical problems with NewsPublisher and NewsEditor. There are no javascript errors detected by the browser, and no other errors on the screen.

    Any ideas?

      • 16278
      • 928 Posts
      Forgive me if it’s a silly question, but NewsTemplate is a chunk, isn’t it? What does the whole form code look like?
      rolleyes KP
        • 28159
        • 22 Posts
        Yup, NewsTemplate is a chunk. The code is just copy/pasted from the NewEditor default template, with the single line changed:


            <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 /> [*RTContent*] <br />
        
              <input name="send" type="submit" value="Submit" />
        
            </form>
        
            <script language="JavaScript" src="manager/media/script/datefunctions.js"></script>
        
            <script type="text/javascript">
              var elm_txt = {}; // dummy
              var pub = document.forms["NewsEditor"].elements["pub_date"];
              var nwpub_cal1 = new calendar1(pub,elm_txt);
              nwpub_cal1.path="[(base_url)]manager/media/";
              nwpub_cal1.year_scroll = true;
              nwpub_cal1.time_comp = true;	
          
              var unpub = document.forms["NewsEditor"].elements["unpub_date"];
              var nwpub_cal2 = new calendar1(unpub,elm_txt);
              nwpub_cal2.path="[(base_url)]manager/media/";
              nwpub_cal2.year_scroll = true;
              nwpub_cal2.time_comp = true;	
            </script>