We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36833
    • 2 Posts
    New to MODx and implementing the Gallery module. Is it possible to get the description to use richtext (tinymce)? I need a way of allowing them to add content above the gallery.
    • Your talking about having tinyMce as the editor in the image description when in the gallery plugin? Or are you talking about something else?

      If that's what you want to do then no, now if you want to place the resource content somewhere in your gallery template yes that can be done.

      Post your code so we can provide better help.
        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 36833
        • 2 Posts
        Hi Ben,

        Thanks for the response and sorry it took me so long to get back. It's actually not the image description I'm looking to have richtext functionality on, but the album description.

        Here's the code I'm using right now:
        [[!Gallery? &toPlaceholder=`gallery`]]
        [[!GalleryItem]]
        [[!GalleryAlbums? &toPlaceholder=`galleries`]]
         
        <div>
        <h2>Galleries</h2>
        <ul>
        [[+galleries]]
        </ul>
        </div>
         
        
         
        [[!+galitem.image:notempty=`<h2>Item</h2>
        <div class="image">
          <a href="[[+galitem.image]]"><img class="[[+galitem.imgCls]]" src="[[+galitem.image]]" alt="[[+galitem.name]]" /></a>
          <br />Albums: [[+galitem.albums]]
          <br />Tags: [[+galitem.tags]]
        </div>
        `]]
         
         
        <hr />
         
        [[!+gallery:notempty=`
        <h1><a href="[[~[[*id]]]]">[[+gallery.name]]</a></h1>
        <h2>[[+gallery.description]]</h2>
         
        [[+gallery]]
        `]]