Empty element text
- 8 replies.
- This is not yet resolved.
- This question was started by Leon.
- Last post by Carl.
|
member
September 26th 2007
|
When you added new paragraph in Xopus 2 the empty paragraph showed the text "new paragraph" in green. In Xopus 3 this not the case. Is there a generic way to achieve this?
|
|
Xopus Team
September 27th 2007
|
Xopus 2 had placeholder text. Xopus 3 currently does not have this.
You can try to create a similar effect in your XSL by drawing a text when the node is empy, but Xopus doesn't redraw on leaving an element so this text does not appear again if you leave the element empty. |
|
member
September 28th 2007
|
I use the following code to achieve this function:
<xsl:choose> <xsl:when test="text()"> <xsl:value-of select="."/> </xsl:when> <xsl:otherwise> <p ondblclick="node.setTextContent('');"> [Your text] </p> </xsl:otherwise> </xsl:choose> This works like charm. Only you cant get it back when a users has clicked the text... Xopus doesnt reload it automaticly. Best regards, Richard Nijkamp |
|
member
January 11th 2008
|
A lot of clients are asking for this features to which they were used in Xopus 2. Any plans to reintroduce it?
|
|
Xopus Team
January 14th 2008
|
We know a lot of people are asking for this. In Xopus 2 it was actually a hack that was working pretty well. Xopus 3 however has a different architecture that doesn't allow for this. We have looked at other ways of implementing it, but it is not easily done in Xopus 3 and the example given above is the better solution for now.
|
|
member
September 24th 2009
|
Does this function written by my old colleague still work in Xopus 4. It looks like it doesn't, is there already a better sollution?
|
|
member
October 1st 2009
|
From Xopus 4.0.3 we support placeholders. See: http:/
|
|
anonymous user
December 16th 2009
|
The hyperlink doesn't seem to work?
|
|
Xopus Team
December 21st 2009
|
You're right, it does not work. The page does not exist. We will get on it. In the meantime you can check the example from the download. Find examples/simple/config/config.xml for how to do placeholders in Xopus 4. It's at the top of the file.
|
- Support
- › Forum
- › How To ...
- › Empty element text
React
Write a comment