I did a search on this but couldn’t find anything applicable for my question. Also, if this belongs in a different forum, please let me know, the instructions said the General Support board. OK - I love QuickEdit, it’s great stuff. Solid, usable front-end editing is a must in any CMS as far as I’m concerned. I’m currently using the HTML method for placing the QuickEdit links - <quickedit:content /> This is great except sometimes it can interfere with the rest of the HTML on the page or is just doesn’t position it the way I want it. What I’m proposing is another tag that is parsed for HTML that is only displayed with logged in and in QuickEdit mode. Something like:
<quickedit:begin />
<span style="color: red">Instructions on how to edit this piece of content. These optional instructions only show up when in QuickEdit mode they they are great for editors and content owners.</span>
<quickedit:content />
<quickedit:end />
This concept is a total rip off of some mid-range CMSes like Reddot and Percussion but it’s also one of there most useful. I realize there may be a namespace issue with begin and end since those could be existing TV names so maybe something like this should be reserved:
<quickedit:mode type="begin" />
<quickedit:mode type="end" />
etc.
Thoughts?
-
MODX Staff
- 10,725 Posts
I guess I don’t understand why you wouldn’t simply define these areas between quickedit:begin and quickedit:end as TV’s and then place them in the page as [*#tvName*] which activates the content links. What benefit do you see from your approach? My main concern is that parsing the content for those HTML tags will add significant overhead, and is essentially just duplicating what this other method already accomplishes, unless I’m missing something...
EDIT: ok, sorry, I missed the whole point I guess -- I see what you are saying and am thinking about ways to accomplish it in a more MODx tag-oriented way...
Well I may not full understand what is possible with the [*#tvName*] method since I usually use the HTML method for finer control of placement of the actual QuickEdit link. I wouldn’t want any of the HTMl between begin and end to show up in the regular page except for the <quickedit:content /> part, the real content from the TV. This other code, instructions and HTML should only be drawn on the page for editors in QE mode. If there is a way to do that with the [*#tvName*] method I’d love to explore the possibilities. I didn’t seem to see that from the QE instructions page or I just missed it totally.