MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Aug 08, 2008, 01:48 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Read what MODx Developers say:
MODx Dev. Blogs
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Creating & Repurposing Content
»
Ditto
(Moderators:
Mark
,
PaulGregory
)
»
Preserving QuickEdit access to TVs rendered by Ditto
Pages: [
1
]
Go Down
« Previous topic
Next topic »
Print
Author
Topic: Preserving QuickEdit access to TVs rendered by Ditto (Read 5262 times)
0 Members and 1 Guest are viewing this topic.
shuriken
Jr. Member
Posts: 31
Preserving QuickEdit access to TVs rendered by Ditto
«
on:
Jun 06, 2007, 01:29 AM »
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.
Logged
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #1 on:
Jun 06, 2007, 07:23 PM »
Ditto already supports QuickEdit. Just do [+#pagetitle+] for example.
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
shuriken
Jr. Member
Posts: 31
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #2 on:
Jun 06, 2007, 07:41 PM »
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.
«
Last Edit: Jun 06, 2007, 07:58 PM by shuriken
»
Logged
nate22
Member
Posts: 99
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #3 on:
Mar 07, 2008, 03:06 PM »
Quote from: Mark on Jun 06, 2007, 07:23 PM
Ditto already supports QuickEdit. Just do [+#pagetitle+] for example.
Where and how do you use [+#pagetitle+] for example?
Logged
NOTE TO SELF:
http://www.muddydogpaws.com/development/wayfinder/examples/example-1.html
for all your navigational questions.
sottwell
Documentation Team
Posts: 7,628
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #4 on:
Mar 07, 2008, 07:25 PM »
In your Ditto view template.
Logged
sottwell.com has moved to a lovely Solaris 10 server!
Log in
username guest, password guestuser.
The templates that were available on loripsum.co.uk will become available on the sottwell.com server once I get it properly organized.
nate22
Member
Posts: 99
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #5 on:
Mar 07, 2008, 10:24 PM »
Quote from: sottwell on 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`)?
Logged
NOTE TO SELF:
http://www.muddydogpaws.com/development/wayfinder/examples/example-1.html
for all your navigational questions.
sottwell
Documentation Team
Posts: 7,628
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #6 on:
Mar 08, 2008, 05:28 AM »
Yes.
Logged
sottwell.com has moved to a lovely Solaris 10 server!
Log in
username guest, password guestuser.
The templates that were available on loripsum.co.uk will become available on the sottwell.com server once I get it properly organized.
dev_cw
Testers
Posts: 2,053
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #7 on:
Mar 18, 2008, 08:19 PM »
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.
Logged
Shane Sponagle
|
Snippet Call Anatomy
|
Document Specific Variables
Hey Brian, there is a message in my Alphabits. It says Ooooooo.
Peter, those are Cherios.
Mark
Moderator
Posts: 3,247
Ditto Developer
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #8 on:
Mar 18, 2008, 08:21 PM »
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.
Logged
Documentation
TRAC (Bugtracker)
Forum
How to get help
User Wiki
Credits
SVN Server
Ditto HQ
Stable Download
Development Download
dev_cw
Testers
Posts: 2,053
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #9 on:
Mar 18, 2008, 08:32 PM »
OK, I will work on an alternative to resolve tis issue. Thanks.
BTW - that was a fast response...talk about great service
Logged
Shane Sponagle
|
Snippet Call Anatomy
|
Document Specific Variables
Hey Brian, there is a message in my Alphabits. It says Ooooooo.
Peter, those are Cherios.
dev_cw
Testers
Posts: 2,053
Re: Preserving QuickEdit access to TVs rendered by Ditto
«
Reply #10 on:
Mar 22, 2008, 09:34 AM »
FYI - I resolved the issue above by using the ManagersOnly snippet and then putting the direct code to open QE for the TV in question like this:
Code:
<a href="[~[*id*]~]?qe_open=true#" onclick="javascript: window.open('[(base_url)]manager/index.php?a=112&id=2&doc=[+id+]&var=DocFIle', 'QuickEditor', 'width=525, height=300, toolbar=0, menubar=0, status=0, alwaysRaised=1, dependent=1');" title="Edit : Download Document" class="QE_Link">« Edit : Download Document</a>
To change the TV just edit the &var= of the url with the name of your TV. I also edited the title to keep it clean and to the point, but you could also add [+pagetitle+] to the title to make it more descriptive. Humm, this could be made into a nice little snippet as well to make it easy to add QE buttons.
This worked like a charm and I can now add edit links for documents and images directly in my Ditto display without breaking the links. Cool.
Logged
Shane Sponagle
|
Snippet Call Anatomy
|
Document Specific Variables
Hey Brian, there is a message in my Alphabits. It says Ooooooo.
Peter, those are Cherios.
Pages: [
1
]
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder (and DropMenu)
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı