Hi trevc,

When you turn on DirectEdit for a placeholder, a whole lot of extra
HTML code  is wrapped around the placeholder in the page automatically
for the DirectEdit functionality to work. Since you are assigning the
placeholder to a variable within VBScript/ASP, this will throw and
error since the HTML code contains attributes with quotes that arent
being escaped.

If you need to assign a placeholder to a variable within VBScript/ASP
- you have to turn off DirectEdit. The other alternative to make
content entry quicker and easier for users is to use the child/parent
relationship with other standard text field placeholders... If you
click on the Parent placeholder, all other child placeholders can be
edited from the same window.

Hope that helps,
Kim

On Oct 28, 6:05 am, trevc <[email protected]> wrote:
> Seems the whole 'error' thing comes form turning on DirectEdit on the
> Standard fields.
>
> Turning off DirectEdit makes things work fine but since the number of
> fields is more like 20, Direct Edit would be preferred but not sure of
> a workaround.
>
> Is there a better practice for doing this? or just easier to do
> outside if Workflow isnt' required, etc?...
>
> On Oct 26, 5:08 pm, trevc <[email protected]> wrote:
>
> > I want to be able to display a entry form when a user is in edit mode,
> > but a different layout when not editing and in reality, what the page
> > will be when published.
>
> > The following class code  kinda works as it displays the 'rendered'
> > asp code when not in edit mode and the simple entry of the two values
> > when IN edit mode, however I'm missing something as NOTHING shows up
> > in page preview (and obviously nothing is published as well).
>
> > Any hints on direction would be appreciated.
> > (Yes, I am a newbie)
>
> > <!-- User edits this in CMS -->
> > <!IoRangeRedDotMode>
> > <!IoRangeRedDotEditOnly>
>
> > Enter the following items:<br />
> > dummysq1: <%std_DummySQ1%> <br />
> > dummysq2: <%std_DummySQ2%><br />
>
> > <!/IoRangeRedDotEditOnly>
> > <!/IoRangeRedDotMode>
>
> > <!-- Show this when not in edit mode, publishing, etc. -->
> > <!IoRangeNoEditMode>
> > <!IoRangePreExecute>
> >     <%
> >         dummysq1      = "<%std_DummySQ1%>"
> >         dummysq2      = "<%std_DummySQ2%>"
> >         totalDummy = CInt(dummysq1) + CInt(dummysq2)
> >     %>
> > The total is: <%=totalDummy%>
> >     <!/IoRangePreExecute>
> >  <!/IoRangeNoEditMode>
--~--~---------~--~----~------------~-------~--~----~
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