Editing attribute values via Author mode

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sijomon
Posts: 83
Joined: Wed May 20, 2009 1:18 pm

Editing attribute values via Author mode

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Editing attribute values via Author mode

Post 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
sijomon
Posts: 83
Joined: Wed May 20, 2009 1:18 pm

Re: Editing attribute values via Author mode

Post 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?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Editing attribute values via Author mode

Post 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
sijomon
Posts: 83
Joined: Wed May 20, 2009 1:18 pm

Re: Editing attribute values via Author mode

Post 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.
sijomon
Posts: 83
Joined: Wed May 20, 2009 1:18 pm

Re: Editing attribute values via Author mode

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Editing attribute values via Author mode

Post 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
sijomon
Posts: 83
Joined: Wed May 20, 2009 1:18 pm

Re: Editing attribute values via Author mode

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Editing attribute values via Author mode

Post 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
Post Reply