WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Widgets
Inheritance from parent page (7 posts)

  1. Radovan
    Member
    Posted 3 years ago #

    Hi,

    do you plan to add possibility to define inheritance for child (subpages) by parent page ? (not only pages post type, but all custom post types with hierarchial atribute). This feature should be very helpful.

    Thank you

  2. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Adorei,

    Thanks for your suggestion! Can you please give me an example when this feature would be very helpfull?

  3. Radovan
    Member
    Posted 3 years ago #

    Hi,

    sorry for delay, notify email not arrived.

    Example ? You have an editor account. This account can add page, but have access to Layout section. So an editor can't update widgets or another layout things, why he would, but can add pages.

    For example: have this hierarchial tree for "Products"

    • Products
      • About our products
      • Enviromental
      • Technology
      • Product lines
        • Product line 1
          • Product nr.1
          • Product nr.2
          • Product nr.3
        • Product line 2
          • Product nr.1
          • Product nr.2
          • Product nr.3
        • Product line 3
          • Product nr.1
          • Product nr.2
          • Product nr.3

    You can set Widget to whole products pages. So when you add page in level 1 (child of parent Products) widget will be visible.

    You set a widget for Product line 1 (level 2): when new product appears in this product line, Widget will be inherited from parent page "Product line 1".

    And so on.

  4. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Adorei,
    No problem! :) OK, I understand it better now. Thanks for the explanation. I'm going to have a look if it's possible to add it to the plugin. Will take a while, I'm away for about a week.

  5. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    Just a quick update:
    It looks like I'm able to add this functionality to the plugin. I'm testing right now with static pages. I think I'll need another week or so to have it fully functional.

  6. Radovan
    Member
    Posted 3 years ago #

    Hi,

    it's really great news. I hope isn't too complicated to add this.

    I wanna this plugin in core! :)

  7. Qurl
    Member
    Plugin Author

    Posted 3 years ago #

    No, it's not really complicated to inherit rules from a hierarchical parent. It was actually the admin side of the plugin which caused some troubles in the beginning.

    Anyway, (a bit) earlier then expected I have a fully functional revision (r323926) of the plugin with inheritance support for static Pages and Custom Post Types. It's all available in the development version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic