xorcery / TableEditor

11 stars 8 forks source link

Front-end editing of the table data #2

Closed KrisJanssen closed 10 years ago

KrisJanssen commented 10 years ago

Hi,

Not quite sure if this is the right place to ask, but here it goes:

I am playing with the idea of adding Table editor to set a simple CV property on a member type in U7. CV's are inherently tables after all.

However, on my site, members can edit their own info. Most info is in the form of simple text strings so creating a form using "EditorFor()" or similar, based off of the member model is relatively straightforward.

However, suppose I wanted to expose a limited version of the TableEditor (just adding rows/columns, no styling whatsoever) to the front end.

How would I go about that?

kgiszewski commented 10 years ago

When you say frontend, you mean not in the umbraco backoffice right?

In order to do that you'd have essentially reconstruct the 'wrapper' that runs around all property editors. It'd be a non-trivial task and you'd have to build it with AngularJs

KrisJanssen commented 10 years ago

Yup, it would have to be on the public end of the site.

Plenty of googling has tought me that this is indeed non-trivial. Apparently, MVC on its own is not really cut out for this.

The learning curve for Angular.js seems quite steep and as such Knockout MVC (http://knockoutmvc.com/ContactsEditor) seems like excellent middle ground or at least a starting point... It will be a bit hacky but I think I can get it to work.

In any case, thanks for the feedback and keep up the good work I would say. These kinds of repos are very useful to learn by example!

kgiszewski commented 10 years ago

:+1: Best of luck!