Improve the user input...

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Improve the user input...

Post by Vincent »

Me again with my questions :)

I want my users to add new section in my xml.
In fact, I use an action with the operation "InsertFragmentOperation".

I use this type of fragment to insert :

Code: Select all


<Section>
<title>Put the title here...</title>
<author>Put the author here...</author>
<par>Put something here...</par>
</Section>
In this configuration, the user must select and replace the "put the ## here...". I think it could be easier.
I wonder if it's possible to use some sorts of placeholder text that disapear when the user click on it ?
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Improve the user input...

Post by Vincent »

If I can add another question to this topic. It still concerns enhancement of user input.

Is there any way to use a form to insert data in the xml ?

If I take the example above (Section). I would like to have a form with the ability to choose several options for the author name. Exactly like a <SELECT></SELECT> in html.

The goal is to provide a area where the user can't fail in the data input.


Thank you again,
Vincent.
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Improve the user input...

Post by mihaela »

Hi Vincent,

What you can do is to use the oXygen CSS extension to impose the placeholder for empty elements. By default oXygen presents the element name as placeholder, but you can change this by using the placeholder-content CSS property.

The following CSS sample changes the placeholder for all elements in: "Put the ## here...", where ## represents the element name, as you requested:

Code: Select all

* {
placeholder-content: oxy_concat("Put the ", oxy_name()," here...");
}
The oxy_name() function evaluates the qualified name of the current element.
The placeholder content will be rendered in Author until the user inserts a character.

See our online documentation for more information about oXygen CSS extensions for empty elements placeholders:
http://www.oxygenxml.com/doc/ug-editor/ ... nsion.html

Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Improve the user input...

Post by mihaela »

Hi Vincent,

About your second message: we have an request already logged in our internal issue tracker to permit the editing of the elements and attributes in Author mode by using components like combo boxes.

This will also be implemented probably with CSS extensions.
I have added your request for this feature and we will notify you when it will be available.

Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Improve the user input...

Post by Vincent »

Thank you very much Mihaela,

Your post answers my question.
Is there any way to colorize those placeholder text ?


Vincent.
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Improve the user input...

Post by mihaela »

For the moment we don't offer the possibility to customize the placeholder coloring.
Are you interested to set the same color for all placeholders in the document or to customize them depending on the element name?

Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Improve the user input...

Post by Vincent »

Ideally it would be great if I could change the text appearance with the basic CSS properties (font-weight, color, font-style) and the CSS selectors !

At least, if I can change the overall aspect of the placeholder text, it can be useful to make my users happy...
(Because, in my case, it's all a concern of making the user happy! We are changing our tools, so the user acceptance is very important...)


Thanks again Mihaela.
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Improve the user input...

Post by mihaela »

Hi Vincent,

Thank you for your suggestions, we will take them into account when we will add the possibility to customize the placeholders appearance.

Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply