We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23560
    • 2 Posts
    I had an idea sooner today : visual chunks/snippets. They would be drag and drop components for the WYSIWYG editors that relate to chunks and snippets.

    Visual chunks/snippets would be simple HTML/CSS/JS definitions. Types would be based on MODx input types and display as such. Names would be specified as usual [[+var]]. The visual component would be specified in an additional tab while editing chunks/snippets.



    Visual component definition:
    Image <input type="image" name="[[+imgurl]]"/><br/>
    Size <input type="text" name="[[+sizex]]"/> <input type="text" name="[[+sizey]]/><br/>
    Caption <input type="textareamini" name="[[+caption]]"/><br/>
    Align <select name=[[+align]]>
       <option value="right">Right</option>
       <option value="left">Left</option>
    </select>


    I hope something similar to this hasn’t been posted yet. I’m no hardcore programmer, these are just ideas I’m pitching in, if anything doesn’t make sense, discuss it ! smiley
      • 33976 ☆ A M B ☆
      • 571 Posts
      Do you mean the way snippets display their properties in a window (while defined by the coder) when you drop drop into your content/chunk area ?
        • 28215
        • 4,149 Posts
        Quote from: Romain at Jun 04, 2011, 02:54 PM

        Do you mean the way snippets display their properties in a window (while defined by the coder) when you drop drop into your content/chunk area ?
        Chunks (any Elements) do this too. You can add properties to Chunks to make them show fields, too.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com