We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15680
    • 5 Posts
    Im having trouble with NewsPublisher and Ditto.

    1. When i try to add article im getting popup error like:

    Missing news content.

    I configured everything like supose to be, but error is still there sad

    [[NewsPublisher? &folder=`2` &canpost=`Site Admins` &formtpl=`FormBlog` &makefolder=`1` &footertpl=`Comments` &rtcontent=`RTContent`]]


    <form name="NewsPublisher" method="post" action="[~[*id*]~]">
        <fieldset>
            <h3>Publishing Details</h3>
            <p>Note: Leaving the Publish Date empty will immediately publish your blog entry.</p>
            <input name="NewsPublisherForm" type="hidden" value="on" />
        	<label for="pagetitle">Page title <abbr title="The title used on the browser window">?</abbr>: <input name="pagetitle" id="pagetitle" type="text" size="40" value="[+pagetitle+]" /></label><br />
        	<label for="longtitle">Headline <abbr title="The title used on the article">?</abbr>: <input name="longtitle" id="longtitle" type="text" size="40" value="[+longtitle+]" /></label><br />
    
        	<label for="pub_date">Published date: <input name="pub_date" id="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;"><img src="manager/media/style/MODxLight/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/style/MODxLight/images/icons/cal_nodate.gif" width="16" height="16" alt="Remove date" /></a></label>
    	</fieldset>
    	
    	<fieldset>
        	<h3>The Content</h3>
        	<p>The Summary field is optional, but is used as a short version for RSS feeds and summary views on the main blog page.</p>
        	<label for="introtext">Summary (optional, but encouraged):<textarea name="introtext" cols="50" rows="5">[+introtext+]</textarea></label><br />
        	<label for="content">Content:[*RTContent*]</label>
    	</fieldset>
    	
    	<fieldset>
        	<h3>You're Done</h3>
    		<label>Now... wasn't that easy?</label>
        	<input name="send" type="submit" value="Blog it!" class="button" />
    	</fieldset>	
    </form>
    <script language="JavaScript" src="manager/media/script/datefunctions.js"></script>
    <script type="text/javascript">
    		var elm_txt = {}; // dummy
    		var pub = document.forms["NewsPublisher"].elements["pub_date"];
    		var nwpub_cal1 = new calendar1(pub,elm_txt);
    		nwpub_cal1.path="manager/media/";
    		nwpub_cal1.year_scroll = true;
    		nwpub_cal1.time_comp = true;	
    </script>
    


    RTContent:
    Set like its in tut and my template can access to this variable.

    So.... what to do?! 2 days Im stuck on this one, can someone suhest what is problem?!

    2. And also how to change default tools in TyniMCE for site admins?!
    Only few basic tools is there and i need that they have access to ’pic tool’. I changed everything in Site Configuration, but still default is active. Cleaned my cache and sites cache but nothing

    Thanks