Skip to main content

Duplicating a Page deletes all global blocks on the duplicate???

Comments

10 comments

  • Sandra Prunici

    Hi Sandra,

    What plugin did you use for duplicating pages? Maybe the problem can be in the plugin you use for this purpose? I'm using the Yoast Duplicate Post plugin and all seems to work fine. See here.

    Best regards,
    Sandra

    0
  • Sandra Naumann

    Hey Sandra,

    I am using the same plugin!

    Any Idea what else could cause this?

    Thanks 

    0
  • Sandra Prunici

    Hi,

    Could you check please if you have the latest updates for Brizy Free 2.1.5, Brizy Pro 2.1.3 and Yoast Duplicate post 3.2.6? Here can be an inconvenience from the Yoast Duplicate Post plugin. If you temporary deactivate all external plugins (except Brizy Free, Brizy Pro and Yoast Duplicate Post) and activate a WP default theme, did you receive the same problem?

    Thanks!

    Best regards,
    Sandra

    0
  • Achim Gehrig

    Hi Sandra, any news to this?

    I detected the same problem while working with templates. 

    Global blocks do not get copied neither with yoast duplicator nor with duplicate post…

    regards

    Achim

    0
  • Sandra Prunici

    Hi,

    If you want to duplicate a block inside the same page you can use the "Duplicate" option from here. If you want to use a global block inside another page/template, you can go to that page/template where you want to insert the global block and click on "Add a new block", then go to Globals and select the Global block https://jmp.sh/lC5TYLW.
    Another method is to add a new display condition for the Global block. For this, access the "Display condition" of the global block and go to the "Condition" option. From there select the "Include - Brizy Template - [Name of the template where you want to add the block]". See here.

    Let us know if we can help you with something else.

    Best regards,
    Sandra

    0
  • Achim Gehrig

    Do I understand this correctly: Because of the condition-system global blocks within a template will not be duplicated, if I duplicate the template?

    0
  • Sandra Prunici

    Hi,

    Yes, you are right. When you set-up a block as a global block, it automatically adds a single display condition to display on that template. See here an example. If you will duplicate the template, this global block maybe not display on the duplicated template because it doesn't have the proper condition to display there. Therefore, you have to modify or add a new display condition to the global block.
    Let us know if we can help you with something else.

    Best regards,
    Sandra

    0
  • Sandra Naumann

    So this is by design and we have to set the global blocks to "not global" to be able to duplicate the page layout?

    Or should we better save a layout and after creating a new post or page just load that saved layout?

    Thanks

    0
  • Sandra Naumann

    Could you maybe add a feature request to automatically set the display condition = include global blocks if a users duplicates a page or post. I mean the user is trying to take a shortcut to quickly get the exact sam copy of a page or post and therefor global blocks should automatically considered to be included.

    0
  • Sandra Prunici

    Hi,

    In this case, we suggest after duplicating the template/post/page where is a global block to go back to the global from the original template/post/page and add a new display condition to display on the duplicated template/page/post.

    I will inform our team about your feature request and they will make a decision about it.

    Thanks!

    Best regards,
    Sandra

    0

Please sign in to leave a comment.