We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    Is it possible to have the html in the title and description fields render rather than have the code displayed? For example if I put <strong>My Name</strong> in the description it renders as <strong>My Name</strong> rather than My Name.

    The second part of the question is if it is possible to add a RTE to the description field?

    Edite: changed the title to reflect the expansion from the original question
      [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]
      • 4172
      • 5,888 Posts
      Quote from: dev_cw at Sep 09, 2008, 09:54 AM

      Is it possible to have the html in the title and description fields render rather than have the code displayed? For example if I put <strong>My Name</strong> in the description it renders as <strong>My Name</strong> rather than My Name.

      May be it has to do with the phx-modifier :htmlent in the templates.

      The second part of the question is if it is possible to add a RTE to the description field?

      sure, you can add them to all textarea-fields.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 7231
        • 4,205 Posts
        Bruno17: yes the htmlent was the issue. It came to me shortly after I posted which is ironic since I previously had an issue with a typo in this exact modifier. I removed them and all is good, thanks.

        as for the rte, I tried with the tiny editor following the steps used to add it in other snippets but the editor would not load I must be missing some key javascript. I am thinking of trying it with a jquery based editor since it will probably be much easier to setup and I do not need the resource browser interface.
          [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]
          • 7231
          • 4,205 Posts
          I have not had any luck adding a RTE to the description field.

          I found a jQuery powered light RTE and it loads fine and works great but the changes do not get recorded when saving the gallery. I am wondering if it is not letting MaxiGallery know that there has been any changes in the field due to the onKeyDown bit of JS in the template and jquery.

          Anyone have any ideas on this?
            [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]
            • 34017
            • 898 Posts
            Check out markitup. It’s a phenomenal jquery based wysiwyg. It’s so customizable too. All the examples are slick- but this is my favorite one at implementing a file browser - http://markitup.jaysalvat.com/examples/interaction/

            http://markitup.jaysalvat.com
              Chuck the Trukk
              ProWebscape.com :: Nashville-WebDesign.com
              - - - - - - - -
              What are TV's? Here's some info below.
              http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
              http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
              • 4172
              • 5,888 Posts
              And what is when you set this line in your managepicturetemplate
              <input type="hidden" name="[+maxigallery.fieldnames.modified+]" id="[+maxigallery.fieldnames.modified+]" value="no"/>

              to
              <input type="hidden" name="[+maxigallery.fieldnames.modified+]" id="[+maxigallery.fieldnames.modified+]" value="yes"/>


              If you have only one picture or not so much, I think it dosn’t matter, when you save all the fields and not only the modified ones.
              It is only an Idea, I don’t know, if it will work.

              Bruno
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 7231
                • 4,205 Posts
                Bruno17; yes this worked, thanks. This will eventually be a very large gallery, so I am concerned if this is a good idea. Can I limit the number of docs that are edited at one time?

                ChuckTrukk: markitup looks great, and the media manager is awsome in the example. I wonder if this could be made into a module for modx as a tiny alternative and since it has so many flavors (html, markdown, bbcode, etc) it would be much more flexible. I see it has WP and Drupal extensions. Thanks for the tip.
                  [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]
                  • 6726
                  • 7,075 Posts
                  Quote from: ChuckTrukk at Sep 09, 2008, 09:47 PM
                  Check out markitup. It’s a phenomenal jquery based wysiwyg. It’s so customizable too. All the examples are slick- but this is my favorite one at implementing a file browser - http://markitup.jaysalvat.com/examples/interaction/
                  http://markitup.jaysalvat.com

                  Sorry for bumping an old thread but I just came accross markitup, and I have never been that excited about an editor !
                  I’d love to see a modx plugin for markitup !!!
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l&#39;outil id
                    • 17499 ☆ A M B ☆
                    • 872 Posts
                    I’ve already talked about this in another thread, but i’ve stumbled upon a very lightweight RTE made in jquery and heavily customizable:

                    http://code.google.com/p/lwrte/