Brad Wood
Brad Wood

Reputation: 93

Need Example Code for apostrophe-modal in Apostrophe CMS 2.0

I've seen the documentation for apostrophe-modal, but does anyone have sample code to use apostrophe-modal in the real world?

Upvotes: 1

Views: 392

Answers (1)

Tom Boutell
Tom Boutell

Reputation: 7572

I'm the lead architect of Apostrophe at P'unk Avenue.

There are many such examples in the Apostrophe source code itself.

One of the most accessible perhaps is the tag manager module:

https://github.com/punkave/apostrophe/tree/master/lib/modules/apostrophe-tags

The modal itself:

https://github.com/punkave/apostrophe/blob/master/lib/modules/apostrophe-tags/public/js/manager-modal.js

And the index.js file and the files it requires, which set up supporting server-side routes and push the relevant frontend asset files:

https://github.com/punkave/apostrophe/blob/master/lib/modules/apostrophe-tags/index.js

Hope this is helpful to you!

Upvotes: 1

Related Questions