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.
Ditto already supports QuickEdit. Just do [+#pagetitle+] for example.
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.
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?
-
☆ A M B ☆
- 24,524 Posts
In your Ditto view template.
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`)?
-
☆ A M B ☆
- 24,524 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.
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.