Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inplace editing #89

Open
rawdog71 opened this issue Jan 23, 2023 · 1 comment
Open

Add inplace editing #89

rawdog71 opened this issue Jan 23, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@rawdog71
Copy link
Owner

Add inplace editing for the preview of a page.

At first stage simple datatypes should be editable:

  • string
  • integer
  • real
  • text
  • datetime
  • boolean
  • media ?
@rawdog71 rawdog71 added the enhancement New feature or request label Jan 23, 2023
@rawdog71
Copy link
Owner Author

rawdog71 commented Jan 23, 2023

The content part will be dynamically surrounded by a special div.
This div looks like <div cf_inplace="classname:contentname:attributename:attributetype">

  • classname is the name of the content class
  • contentname is the name of the current selected content
  • attributename is the selected fieldname of the class
  • attributetype is the selected type (string, boolean, integer, real, ...)

With this information it is possible to fetch and update the value of the content with GetContent and updatecontent.

rawdog71 added a commit that referenced this issue Jan 24, 2023
rawdog71 added a commit that referenced this issue Jan 26, 2023
rawdog71 added a commit that referenced this issue Jan 26, 2023
added css + js

some TODOs
rawdog71 added a commit that referenced this issue Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants