In principal go with Kim's suggestion - i.e. don't muck with the
source application.

In practice you will find that many things in SmartEdit mode have
nothing to do with RQL.  For example, opening a page for edit is a
function of the URL for the SmartEdit frame (which is the iframe
inside ioMainIFrame).

In these cases get yourself a DOM Inspector like IE Developer Toolbar
or Firebug, check out what a "real" red dot does, then just bung an
image into your template and do the same thing.

For example, opening the current page...

<A onmouseover='RDShowBorder
("RDPage_2E947DCA68324A45A1E287784E723AFF")' onclick='if(EditPage())
document.location.href="/cms/ioRD.asp?
Action=RedDot&Mode=2&ParentPageGUID=&PageGUID=2E947DCA68324A45A1E287784E723AFF&EditPageGUID=2E947DCA68324A45A1E287784E723AFF&LanguageVariantId=ENA&projectvariantguid=D96E0DFCADDC4DD0887254F447A39E36&LinkGUID=2551814492C3419895B5781004BD38F3&EditLinkGUID=2551814492C3419895B5781004BD38F3&Opener=1#CloseRedDot";return
(false);' onmouseout='RDHideBorder
("RDPage_2E947DCA68324A45A1E287784E723AFF")' href="javascript:void(0)"
target="_self"><IMG title="Open Page" src="http://localhost/cms/icons/
RedDotOpenPage.gif" border="0" /></A>

...is basically an image in an anchor.  To do this right you'll need
some Info elements or the ability to use JavaScript to parse out the
params from the URL (they're all there) when the page is closed.
Perhaps your image calls a JS function on click that emulates the
onclick of the anchor above, subbing in the correct GUIDs?

Note that some actions require the page to be in a particular state
first (like translations and keyword setting), or for certain session
variables to have already been set a certain way.  Sometimes its
easier to use RQL that to replicate the UI.  Be careful!  Also you
will need to regression test your templates when a new version/upgrade
is released to ensure you are still performing the correct steps.

HTH.

Regards,
Richard Hauer
====================
5 Limes Pty Limited
www.5Limes.com.au

On Jan 27, 8:19 pm, kimdezen <[email protected]> wrote:
> Hi Mike,
>
> Easiest way to do this is to create your own buttons/image links that
> trigger custom RQL scripts that reside within the plugins folder.
> Since RQL is executed behind scenes by the RedDot GUI, you can easily
> replicate any of the functionality within the application. Take a look
> at the RQL manual (which comes bundled with the RedDot User
> Documentation) for more information regarding RQL.
>
> I'd stay away from editing any of the images/code within RedDot as it
> can easily be overwritten when performing upgrades.
>
> Kim
>
> On Jan 27, 4:24 am, Mike Correia <[email protected]> wrote:
>
>
>
> > Does anyone know if it's possible to swap out the little red dot
> > images for other images? I'd love to be able to have a button that
> > says "Open Page" instead of a dot with text next to it.
>
> > Thanks
>
> > -mike- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to