Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
16 posts Page 2 of 2
@Paolo
Does the addon work with a very old couchcms version?

It requires at least v2.0. Won't work on any version older than this.
What about front-end usage? Is there a way of using this from the front-end?
atisz wrote: What about front-end usage? Is there a way of using this from the front-end?

Yes, I guess Administrators may see a link that leads to a copied page in admin panel.

UPDATE: I pushed an example to repo: Tweakus Vars → k__clonepage_link

your best friends: github, StackOverflow, telegram
trendoman wrote: Yes, I guess Administrators may see a link that leads to a copied page in admin panel.

UPDATE: I pushed an example to repo: Tweakus Vars → k__clonepage_link


Great job, trendoman!
I have tested your solution and it's working.

But unfortunately, my use-case is different. I need to use it with member module, so the users have no access to the admin panel. The "copy to new" option should be available for every logged in member, and all the action should happen on the front-end.

Is it possible to adapt this functionality to work only from front-end, with no need to be logged into Couch CMS admin panel?
Thank you @trendoman!

Strangely, your last post, containing the solution for cloning pages from the front-end, has dissapeared.But it saved me! Thanks again! Now I know a new use-case for cms:db_persist :D And you were right.... it's more flexible, submitted data can be customized, not just simply duplicated.
atisz wrote: Thank you @trendoman!

Strangely, your last post, containing the solution for cloning pages from the front-end, has dissapeared.But it saved me! Thanks again! Now I know a new use-case for cms:db_persist :D And you were right.... it's more flexible, submitted data can be customized, not just simply duplicated.


You are welcome. :) Glad it helped. The posting has been moved to repository Ctrl-CV-Snippets → `db_persist` (create)

your best friends: github, StackOverflow, telegram
16 posts Page 2 of 2