Hi guys,

Oops for MS 10, the code should be

<a class="smartedit" href="/cms/ioRD.asp?Action=Preview&PageGuid=<
%inf_page_guid%>" style="text-decoration:
none;"onclick="window.open(this.href,'_blank','toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=800,height=600');return
false;">Preview Page [Id: <%inf_page_id%>]</a>

I don't usually support workarounds like these, but this is an
exception, and here are my reasons.

To get a Preview in CMS SmartEdit, one need to open page, right click/
click to bring up action menu. click preview.  3 clicks in total.

In version 10, it is a lot easier with the preview button in the lower
right hand corner, but the buttons don't work.  Well, it is improved
in 10.1, but improvement might still be needed.

Problems:

When switching back from Preview to SmartEdit mode, user tend to be
taken to a CSS or JS page.  This happens because the system is
designed to take user back to the last requested page, which was a CSS
and JS page instead of the actual HTML page.

To fix this:

Solution #1 One can use the container/Insert placeholder for page in
container method, but this is know to cause publication issues
(disappearing css and js files from time to time), and it does not
work in 10.  Not fixed in the latest patch.

Solution #2 Use static path to CSS and JS, but then deployment of CSS
and JS to web server will have to be a separate process when
publishing.

Solution #3 Use the code <!IoRangeRedDotMode><link rel="stylesheet"
href="<%inf_current_page_url%>" type="text/css" media="print"></
link><!/IoRangeRedDotMode> at the bottom of the Foundation template,
so the last requested page is current page.

Solution #4 Use Jquery is $(function(){ $.get("<%inf_current_page_url
%>", function(){});   }); in Foundation template, so the last request
page is current page.

As you can see, in order to use an out of box functionality , the
project needs to be developed in the right way. Either using solution
#1, #3, or #4.

Moreover, from experience, users:

- don't like to be taken to a completely different page when switching
back from page preview because then they have to navigate back to
where they were just to continue working.

- like to have page preview in a separate window so they can compare.

On Dec 1, 4:17 am, Tony Gayter <tonygay...@gmail.com> wrote:
> +1 Manuel :)
>
> On 1 December 2011 08:52, Manuel Schnitger (OpenText) <
>
>
>
>
>
>
>
> derthor...@googlemail.com> wrote:
> > Hi Brett,
>
> > I'm pretty sure, that the link that has been provided will work. But
> > as the UI of the Management Server has been massively improved, I'd
> > suggest to tell the editors and authors how they can work with the
> > frontend. Sample: The preview mode/form mode/redlining mode of a page
> > can be callled via RedDots in the bottom menu on each page.
>
> > I really like customization and things like that, but adding a
> > functionality that is already existing doesn't make too much sense in
> > my point of view.
>
> > Best regards,
> > Manuel
>
> > On 30 Nov., 20:01, HSS Webmonkey <webmana...@hss.edu> wrote:
> > > We've recently moved from red dot 7 to opentext10. our smartedit users
> > > are used to a preview link at the top of the page. i've tried to make
> > > it work in 10, but all i get is a new window with nothing in it. my
> > > code looks like this:
>
> > > <a class="smartedit" href="/cms/RDStartAspSession.asp?
> > > Action=Preview&PageGuid=<%inf_page_guid%>&ProjectVariantGuid=<
> > > %inf_project_variant_guid%>"
> > >   onclick="previewWindow =
>
> > window.open(this.href,'previewWindow','toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1');previewWindow.focus();return
> > > false;">Show Preview</a>
>
> > > i've tried it both with and without the project variant guid. anyone
> > > have any ideas how i can get this to work? it would be much
> > > appreciated.
>
> > > thanks! brett
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "RedDot CMS Users" group.
> > To post to this group, send email to reddot-cms-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > reddot-cms-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/reddot-cms-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to reddot-cms-users@googlegroups.com.
To unsubscribe from this group, send email to 
reddot-cms-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to