nyeholt / silverstripe-frontend-editing

A module to allow free editing of pages on the frontend of websites ssau-module
23 stars 4 forks source link

any working examples? #1

Open stevevu opened 9 years ago

stevevu commented 9 years ago

Hi,

Sounds great and I followed the directions to the T but when I view a page that's supposed to be editable, there are no buttons to edit the Editable field.

I've:

  1. downloaded the module into my doc root
  2. in config.yml, I declared that Page is extended by FrontendEditableExtension and FrontendLockable
  3. ran dev/build and do see new DB fields being created
  4. in one of templates (BioPage), a. I made the first name editable (ie, $EditableField(FirstName)) b. included the buttons via <% include FrontendEditingControls %>

I flush the template cache with ?flush=all and load a BioPage (which extends Page), but there are no edit buttons and the first name field has no interactivity.

Any test sites where I can see this add on working or am I missing something?

thanks! Steve

nyeholt commented 9 years ago

I think it's to do with something that's been updated in a recent 3.1 SS update - will take a look and update shortly (along with a README update and composer.json !)

nyeholt commented 9 years ago

Have pushed an update to master that fixes a couple of style problems; one thing to be aware of is that if you're viewing the 'live' version of the site, you'll need to hover the bottom corner of the page to have the editing controls appear; if you're viewing the draft version (ie http://url/?stage=Stage) then the controls should appear automatically (now, after updating with the latest commit!)

stevevu commented 9 years ago

thanks Marcus!

I got it working now and it looks great! How difficult would it be to get it to work on Image fields?

nyeholt commented 9 years ago

Do you mean an editable field for choosing a new relationship (that happens to be a file)? Not yet, I have a couple of ideas around fronted modeladmin type of insertion, which would include files.

stevevu commented 9 years ago

Hi Marcus,

Yes, something like a front end UploadField would be great. I love this front end inline editing UI. Would be awesome if the module could handle relations, esp. files/images, for the moment. I'll keep an eye out for any updates.

thanks again! Steve