Hey, friends!
I'm converting a single-page site which has among other things a button that when clicked has Ajax-loading a html-page into a modal-window andi'm stuck with something i don't know how to make editable in couch in an optimal way.
The site has a portfolio that I have managed to convert to couch with the help of a repeatable with some editables inside (with image and a summary text).
Each item in the portfolio when clicked calls (with jquery.load) a html-page with more details for the portfolio-image clicked on.
There are 5 static html-files pre-made, (but of course it could be more or perhaps less) and I want to be able to edit the details inside of the couch-admin just like other fields of the portfolio and without having to have n-numbers of ready html-pages and since the portfolio-repeatable is allready defined it would be easy to add "portfolio-details" as an editable
I've been checking through the relations-examples on https://docs.couchcms.com/concepts/relationships.html
and i think that could be used to solve this, since the portfolio is in there allready ("one to one"?), but i don't know how.
What makes this a little different is the fact that it is a single-page site, so i only have an index.php-page and the index.php can not be defined as a clonable template (at least i I don't think it can be) but if im going to have an special cloenable "portfolio-details" template that is no problem i think since Ajax can load php-files also(?), and i won't be showing it in the menu of the index-page
Any hint here from somebody who has an idea of the best way to solve this would be appreciated! Please?
I'm converting a single-page site which has among other things a button that when clicked has Ajax-loading a html-page into a modal-window andi'm stuck with something i don't know how to make editable in couch in an optimal way.
The site has a portfolio that I have managed to convert to couch with the help of a repeatable with some editables inside (with image and a summary text).
Each item in the portfolio when clicked calls (with jquery.load) a html-page with more details for the portfolio-image clicked on.
There are 5 static html-files pre-made, (but of course it could be more or perhaps less) and I want to be able to edit the details inside of the couch-admin just like other fields of the portfolio and without having to have n-numbers of ready html-pages and since the portfolio-repeatable is allready defined it would be easy to add "portfolio-details" as an editable
I've been checking through the relations-examples on https://docs.couchcms.com/concepts/relationships.html
and i think that could be used to solve this, since the portfolio is in there allready ("one to one"?), but i don't know how.
What makes this a little different is the fact that it is a single-page site, so i only have an index.php-page and the index.php can not be defined as a clonable template (at least i I don't think it can be) but if im going to have an special cloenable "portfolio-details" template that is no problem i think since Ajax can load php-files also(?), and i won't be showing it in the menu of the index-page
Any hint here from somebody who has an idea of the best way to solve this would be appreciated! Please?