Class ContentStore
REST store to be used in Dojo widgets to get/create CMS content.
Inherited Members
Namespace: AdaptiveImages.Controllers
Assembly: AdaptiveImages.dll
Syntax
[RestStore("content")]
public class ContentStore : RestControllerBase, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Remarks
For example used to create wrapper blocks when image is drag-and-dropped to a TinyMCE editor.
Constructors
ContentStore(IAddonSettings, ITinyMceAddonSettings)
Creates an instance with required dependencies.
Declaration
public ContentStore(IAddonSettings addonSettings, ITinyMceAddonSettings tinyMceSettings)
Parameters
Type | Name | Description |
---|---|---|
IAddonSettings | addonSettings | |
ITinyMceAddonSettings | tinyMceSettings |
Methods
Post(Dto)
Used to create an independent adaptive image block, e.g. to insert in a TinyMCE editor.
Declaration
[Authorize(Roles = "CmsAdmins, AdaptiveImagesAdmins, CmsEditors, AdaptiveImagesEditors")]
[HttpPost]
public ActionResult Post(ContentStore.Dto parameters)
Parameters
Type | Name | Description |
---|---|---|
ContentStore.Dto | parameters | The content (e.g. page or block) owning the image. The block will be saved underneath the specified content's assets folder. |
Returns
Type | Description |
---|---|
ActionResult |