We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27147
    • 53 Posts
    Hi,
    I’ve got a ’Contacts’ page which lists several company offices along with their contact info. I’ve set each info field as a TV so the site owner can easily edit the values, and created each company office as a document, pulled into the contacts page by Ditto.

    This means that I can’t use QuickEdit on the Contacts page to edit the individual TV values.

    The only workaround I can think of is to provide a link to each individual company office document where the logged in user can edit the TVs directly. Is there any way that I can make this link appear only when the content editor is logged in and using QuickEdit? Something that would work like <quickedit:goto[(base_url)][~[+id+]~] /> (I may end up hacking this into quick_edit/output.class.inc.php). I want it to be a button saying ’Edit <company office>’.

    I hope I’m not missing something obvious -- I still have a lot to learn about TVs.
    Any help appreciated.
      • 18397
      • 3,250 Posts
      Ditto already supports QuickEdit. Just do [+#pagetitle+] for example.
        • 27147
        • 53 Posts
        Thanks Mark. Couldn’t find it in the docs.

        I also found that [+#tvmy_tv+] did not work, but OTOH the [+tv...+] syntax isn’t necessary. Both [+my_tv+] and [+#my_tv+] work fine.
          • 20991
          • 99 Posts
          Quote from: Mark at Jun 06, 2007, 07:23 PM

          Ditto already supports QuickEdit. Just do [+#pagetitle+] for example.

          Where and how do you use [+#pagetitle+] for example?
            NOTE TO SELF: http://www.muddydogpaws.com/development/wayfinder/examples/example-1.html for all your navigational questions.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            In your Ditto view template.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 20991
              • 99 Posts
              Quote from: sottwell at Mar 07, 2008, 07:25 PM

              In your Ditto view template.

              By Ditto view template, do you meant in the `DittoTemplate` Chunk which gets appended to the Ditto Snippet call (ie. &tpl=`DittoTemplate`)?
                NOTE TO SELF: http://www.muddydogpaws.com/development/wayfinder/examples/example-1.html for all your navigational questions.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Yes.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 7231
                  • 4,205 Posts
                  Is there a way to get <quickedit:someTV /> to work in a Ditto tpl? When I try it it looks for the current document rather than the one referenced by Ditto.

                  My objective is to add a way for the user to edit a file TV embedded in a ditto tpl. When I use the standard [+#fileTV+] it breaks the "download" link and causes all sorts of havoc to the html making it look sloppy.

                  Thanks.
                    [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]
                    • 18397
                    • 3,250 Posts
                    No, there is no current way to use <quickedit> tags in Ditto templates. The Quickedit plugin itself would need to change to allow an ID to be passed to it as Ditto only parses for [+#pagetitle+] style placeholders.
                      • 7231
                      • 4,205 Posts
                      OK, I will work on an alternative to resolve tis issue. Thanks.

                      BTW - that was a fast response...talk about great service grin
                        [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]