Cleint won't pay up until fix sorted - Help Options
howard
Posted: Friday, April 13, 2007 12:41:49 PM
Rank: Devotee

Joined: 8/22/2006
Posts: 72
Hi guys.

just finished our first commercial umbraco implementation! www.maybridge.org.uk

All is goin well despite the site's complexity; apart from one fix. The client uses firefox and won't pay up until this fix is done.

in Umbraco CMS when you use the content picker (treePicker) the "choose" button launches the window. this does not work in firefox but i can't seem to find how the js code is generated.

Any help massively appreciated. Howard
kasperb
Posted: Friday, April 13, 2007 1:17:38 PM
Rank: Enthusiast

Joined: 7/21/2006
Posts: 24
Howard wrote:

just finished our first commercial umbraco implementation! www.maybridge.org.uk


Congrats ;)

Howard wrote:

in Umbraco CMS when you use the content picker (treePicker) the "choose" button launches the window. this does not work in firefox but i can't seem to find how the js code is generated.


Explanation:
All the fields/generic properties on a document is defined in the documenttype of the document (you know this ;)) - each field has a "type" (actually a datatypedefinition that are created in developer/datatypes), these datatypedefinitions are a wrapper for an object which implements the umbraco.interfaces.IDataType interface and provides possibility to add prevalues.

The IDatatype component are responsible for:

1: Providing an "editor" - used for editing the data (this is the link+javascript which pops the window).
2: Storing the data
3: Providing a Xmlrepresentation of the data - which are inserted into the cached xml for the runtime (as a childnode to the "./node/data[@alias='propertyalias']" node)
4: Optionally providing an editor/interface for adding prevalues to itself.

The IDatatype components are registered using reflection - which makes it possible to make your own components and use them by dropping the compiled .dll in the /bin folder - this is great for customizing the interface and makes integration easy.

In this the umbraco document/member/media editing interface is built using these components like building bricks.

- I'm guessing youre using the v3 beta build (since it needs to be mozz ediding) - but there it's no different in the v.2.x builds.

The "Content picker" IDatatype is contained within:

~/umbraco/components/editorControls/pagepicker/pagePicker.cs
~/umbraco/components/editorControls/pagepicker/pagePickerDataType.cs


If you succed in making them work in Firefox, you could apply a patch by sending the code to me or to Niels it will be put in the repository.

If you run into difficulties, you can post a comment here - I'll come back and check later today



duckie
Posted: Friday, April 13, 2007 9:55:13 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
I got some spare time, ill try fix it

Signatures suck. No reason to have one.
duckie
Posted: Friday, April 13, 2007 11:15:48 PM
Rank: Devotee

Joined: 8/14/2006
Posts: 212
It works without any issues here, using Firefox 2.0.0.3 in a freshly compiled umbraco 3.0. it seems like the contentpicker was changed in 3.0?

Please give us your versions, and use the error console in firefox to report the exact errors :)

/Anders

Signatures suck. No reason to have one.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.