Asset Factory to create Page & Block

Steven Klukowski's Avatar

Steven Klukowski

20 May, 2015 07:26 PM

I have an Asset Factory that creates Pages. Is there a way for that same Asset Factory to simultaneously generate a Block (XHTML) for me? Thanks.

  1. 1 Posted by Ryan Griffith on 27 May, 2015 03:10 PM

    Ryan Griffith's Avatar

    Hi Steven,

    The only way to generate multiple assets from a single Asset Factory would be to:

    • Create a Folder that contains both a base page and base XHTML block
    • Create a Folder Asset Factory that uses the new folder as the base asset

    When the user creates the new "folder", it will contain the base page and block. The only downside here is the user would need to edit the page and block after the folder is created.

    That being said, a possible solution could be to create an Asset Factory plugin and use the doPluginActionPost method to essentially hook into the page creation and generate a new block.

    Please let me know if you have any questions.


  2. Tim closed this discussion on 17 Jun, 2015 02:23 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac