Page 1 of 1
Editing attribute values via Author mode
Posted: Tue Sep 08, 2009 11:15 am
by sijomon
Is it possible to edit attribute values which have been displayed in Author mode (using CSS 'content') within Author mode? The displayed attribute values are not selectable or ediatble by default.
Re: Editing attribute values via Author mode
Posted: Tue Sep 08, 2009 11:52 am
by sorin_ristache
That is not possible. You edit an attribute value in
the Attributes view. This view can be displayed also at the cursor location if you press Alt-Enter in Author mode.
Regards,
Sorin
Re: Editing attribute values via Author mode
Posted: Tue Sep 08, 2009 12:40 pm
by sijomon
Thanks fior the reply, this will just about support the requirements but I suspect the users will want something more dedicated to their needs.
I had two idea and was wondering what your impfressions were:
1. Is it possibel to invoke the attributes editor programativcally and preopulate the attribute selctor drop down, and the attribute value field? If so I can create an opertaion to do this and target the requiured attribute.
2. I am using a custom protocol handler, so I can control the load and save processes. I thought that during the load process I might write into the document a number of dummy elements which were poulated from the attribute value from the associated 'real' elements. The user could then edit the dummy element contents in author mode. During the save operation I could deleted these dummy elements and write their contents back into the real element's attribute. Does this sound feasible?
Re: Editing attribute values via Author mode
Posted: Tue Sep 08, 2009 1:49 pm
by sorin_ristache
We will make the attributes editable in a future version. We have this request already logged in our system. That is easier than invoking the Attributes view programatically or a plugin.
Regards,
Sorin
Re: Editing attribute values via Author mode
Posted: Wed Sep 09, 2009 11:29 am
by sijomon
OK, I'll keep a look out for that when its released. Unfortunately we are finishing development on Friday this week, so I think I'll have to go with the dummy element workaround until this feature is available.
Thanks for the info.
Re: Editing attribute values via Author mode
Posted: Wed Sep 09, 2009 1:47 pm
by sijomon
FYI
The attribute editor you mention also does not trigger a display refresh when the attribute's value is renderd in author mode via a CSS content statement.
Simon.
Re: Editing attribute values via Author mode
Posted: Wed Sep 09, 2009 3:07 pm
by sorin_ristache
I tried a simple example with an attribute A of elem E displayed as content of E:before and the attribute is refreshed in Author mode in E:before after I change the attribute value in
Attributes view. Please post small samples of the XML file and the CSS stylesheet and the attribute that you edit in Attributes view.
Thank you,
Sorin
Re: Editing attribute values via Author mode
Posted: Fri Sep 11, 2009 1:12 pm
by sijomon
I'm pursuing permission to release a sample XML file, there are some legal concerns about allowing these douments out of the company.
Thanks.
Re: Editing attribute values via Author mode
Posted: Fri Sep 11, 2009 1:59 pm
by sorin_ristache
Maybe you can reduce the files (XML, CSS) to smaller sample files that reproduce the problem. In a small file it is easy to replace the text content with dummy text in order to avoid the legal issues.
Regards,
Sorin