We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Great !!!
    I’ll check that out smiley

    A little thing, you typed FDM v0.1b, I guess this should read v1.0b wink
    Previous rev was 0.99, wasn’t it ?
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 27889
      • 415 Posts
      @David, you right, but I don’t know exactly what to do with these number, I don’t like a beta with the 1 number, so until the release will be stable the first numbers will be 0.1### and a "b" at the end for beta.
      I’m the only one which was use the early 0.1 so it wont’be a problem.

      I’ve noticed an incompatibilities with jot 1.1.2, if fdm is called before, nothings happens, else an error is raised due to the twice chunkie class, I will check that.

      I’m currently testing the FDM on a production site, but don’t do the same if your datas (and your site) are precious.

      Edit : No time or no bug ?
        MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
        MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
        • 27708 MODX Staff
        • 2,502 Posts
        @Soda

        I have FDM 0.1b on a production site.

        I have the following as my fdmEform chunk:
        <script language="javascript" type="text/javascript" src="assets/plugins/tinymce2111/jscripts/tiny_mce/tiny_mce.js"></script>
        <script language="javascript" type="text/javascript">
        
        //your configuration detail check http://wiki.moxiecode.com/index.php/TinyMCE:Configuration
        tinyMCE.init({
        	theme : "advanced",
        	mode : "textareas"
        });
        </script>
        [+validationmessage+]
        <form method="post" action="[~[*id*]~]"  id="fdmForm">
        <fieldset>
        	<legend>News or Event</legend>
        		<div><input type="hidden" name="formid" value="fdmForm">
        		<input type="hidden" name="fdmid" value="[+fdmid+]" eform="::0::"><div>
        	<p>
        		<label for="pagetitle">News Headline or Event Title</label>
        		<input name="pagetitle" id="pagetitle" value="[+pagetitle+]" type="text" eform="Title of the page:string:1"  >
        	</p>
        <p>
        		<label for="introtext">Item Summary</label>
        		<textarea name="introtext" id="introtext" rows="6" cols="80" eform="Summary of Item:string:1">[+introtext+]</textarea>
        	</p>
        	<p>
         	<label for="tvevent_date">Event Date:</label>
          <input name="tvevent_date" id="tvevent_date" type="text" value="[+tvevent_date+]" size="30" readonly="readonly">
                <a onClick="nwev_cal1.popup();" title="Select the Date of the Event">
        		<img align="absmiddle" src="manager/media/calendar/img/cal.gif" width="16" height="16" alt="Select Event Date"></a>
                <a onClick="document.forms['fdmForm'].elements['tvevent_date'].value=''; return true;" >
        		<img align="absmiddle" src="manager/media/style/MODx/images/icons/event3.gif" width="16" height="16" alt="Clear Event Date"></a>
        	</p>
            <p>
         	<label for="pub_date">Publish Date:</label>
          <input name="pub_date" id="pub_date" type="text" value="[+pub_date:date=`%d-%m-%Y %T`+]" size="30" readonly="readonly">
                <a onClick="nwpub_cal1.popup();" title="Choose the publish date">
        		<img align="absmiddle" src="manager/media/calendar/img/cal.gif" width="16" height="16" alt="Select date"></a>
                <a onClick="document.forms['fdmForm'].elements['pub_date'].value=''; return true;" >
        		<img align="absmiddle" src="manager/media/style/MODx/images/icons/event3.gif" width="16" height="16" alt="Remove date"></a>
        	</p>
        	<p>
        	<label for="unpub_date">Unpublish Date:</label>
          <input name="unpub_date" id="unpub_date" type="text" value="[+unpub_date+]" size="30" readonly="readonly">
                <a onClick="nwunpub_cal1.popup();" title="Choose the unpublish date">
        		<img align="absmiddle" src="manager/media/calendar/img/cal.gif" width="16" height="16" border="0" alt="Select date"></a>
                <a onClick="document.forms['fdmForm'].elements['unpub_date'].value=''; return true;" >
        		<img align="absmiddle" src="manager/media/style/MODx/images/icons/event3.gif" width="16" height="16" alt="Remove date"></a>
        	</p>
        	<p>	<label for="doccontent">News or Event Details</label>
        			<textarea name="content" id="doccontent" rows="6" cols="80" eform="Page Content:string:1">[+content+]</textarea>
        	</p>
        </fieldset>
        
        <p><input name="fdmsubmit" value="Submit" type="submit" />  <a href="[~[*id*]~]" tile="Abort operation">Abort</a></p>
        </form>
        
        <form id="abort" style="position:relative;" method="post" action="[~[*id*]~]">
        	<input type="submit" name="clickabort" value="Abort" />
        </form>
        
        <script language="JavaScript" src="manager/media/script/datefunctions.js"></script>
        <script type="text/javascript">
        	var elm_txt = {}; // dummy
        	var pub = document.forms["fdmForm"].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;	
        </script>
        <script type="text/javascript">
        	var evelm_txt = {}; // dummy
        	var ev = document.forms["fdmForm"].elements["tvevent_date"];
        	var nwev_cal1 = new calendar1(ev,evelm_txt);
        	nwev_cal1.path="[(base_url)]manager/media/";
        	nwev_cal1.year_scroll = true;
        	nwev_cal1.time_comp = true;	
        </script>
        <script type="text/javascript">
        	var unelm_txt = {}; // dummy
        	var unpub = document.forms["fdmForm"].elements["unpub_date"];
        	var nwunpub_cal1 = new calendar1(unpub,unelm_txt);
        	nwunpub_cal1.path="[(base_url)]manager/media/";
        	nwunpub_cal1.year_scroll = true;
        	nwunpub_cal1.time_comp = true;	
        </script>
        


        And the call is as follows:
        [!FDM? &model=`59` &eform_noemail=`1` &parent=`4` &aliastype=`%pagetitle%`!]


        The problem is that the pubdate and unpub date won’t store from the form when value exists. I can certainly edit and change them from the manager but I cannot store from the FDM when a value exists. I can set one from FDM when creating a new doc.

        Further to that, the placeholders for the value (to be read from the db returns an unformatted unix timestamp). I tried using PHX to format it but it is not working either.

        I can only assume one is causing the other.

        Any help would be appreciated.

        Jay
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
          • 31471
          • 206 Posts
          I wonder why TinyMCE?
          Anyone tried WymEdit? What You See Is What You Mean. Separate css and xhtml...
            • 27889
            • 415 Posts
            SmashingRed, I will investigate this in a few day.
            vhollo, don’t know WymEdit, I will try it, but there is no obligations to use tinymce with FDM, you can use what you want.
            We are talking about tinymce because it is bundled with MODx.
            WymEditor seems promising but don’t support many browser.
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 2960
              • 16 Posts
              Hi Soda, I have a problem with the installation of FDM. I have read your guide but when I run the module, it give me this error:

              Warning: Unknown(assets/snippets/FDM/includes/install.class.inc.php): failed to open stream: No such file or directory in c:\programmi\easyphp1-8\www\mysite.it\manager\processors\execute_module.processor.php(98) : eval()’d code on line 1

              Warning: (null)(): Failed opening ’assets/snippets/FDM/includes/install.class.inc.php’ for inclusion (include_path=’c:/programmi/easyphp1-8/www/mysite.it/manager/includes/’) in c:\programmi\easyphp1-8\www\mysite.it\manager\processors\execute_module.processor.php(98) : eval()’d code on line 1


              Installation de FDM.

              Fatal error: Cannot instantiate non-existent class: installation in c:\programmi\easyphp1-8\www\mysite.it\manager\processors\execute_module.processor.php(98) : eval()’d code on line 7


              Can y help me? My modx version is 0.9.6.

              Tanks
                • 7231
                • 4,205 Posts
                Failed opening 'assets/snippets/FDM/includes/install.class.inc.php'
                This error usually means that the file is not where it should be. See if the file is in the correct place according to the url above. The FDM directory should be inside your site’s assets/snippets/ directory.
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don&#39;t know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 2960
                  • 16 Posts
                  I have check the position.... is right.. the fmd folder is in C:\xampp\htdocs\mysite\assets\snippets. I’ve create the snippet end the chunk. I’ve create the module to (name installFDM).

                  Sorry, but I don’t understand...
                    • 7231
                    • 4,205 Posts
                    Hmmm, that is odd, could it be a permission issue? Maybe just do the manual install, that should work, a bit more work.
                      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                      Something is happening here, but you don&#39;t know what it is.
                      Do you, Mr. Jones? - [bob dylan]
                      • 2960
                      • 16 Posts
                      Sorry Soda, but I’m new of modx, I’m a webdesigner and I don’t know how I can install manually the module. Please can y show me the way.....