[ [ 'element' => 'blockType', 'node' => '[name="blockType"]', 'group' => '[name="blockType"]', 'event' => 'change', 'rules' => [ [ 'value' => Obj::TYPE_HTML, '_elements' => ['content', 'pageType', 'linkType'] ], [ 'value' => Obj::TYPE_SITEMAP, '_elements' => ['pageType', 'pageId', 'linkType'] ], [ 'value' => [ Obj::TYPE_TESTIMONIAL, Obj::TYPE_SUBSCRIPTION, Obj::TYPE_RECENT_NEWS, Obj::TYPE_NEWSLETTERS, Obj::TYPE_FEATURED_NEWS, Obj::TYPE_FEATURED_POSTS, Obj::TYPE_FEATURED_PRODUCTS, Obj::TYPE_UPCOMING_EVENTS, Obj::TYPE_CONTACT_FORM, Obj::TYPE_BANNER, ], '_elements' => ['pageType', 'linkType'] ] ] ], [ 'element' => 'pageType', 'node' => '[name="pageType"]', 'group' => '[name="pageType"]', 'event' => 'change', 'rules' => [ [ 'value' => Obj::PAGE_ALL, '_elements' => [] ], [ 'value' => Obj::PAGE_CUSTOM, '_elements' => ['idPage'] ], ] ], [ 'element' => 'linkType', 'node' => '[name="linkType"]', 'group' => '[name="linkType"]', 'event' => 'change', 'rules' => [ [ 'value' => Obj::LINK_NONE, '_elements' => [] ], [ 'value' => Obj::LINK_PAGE, '_elements' => ['linkTitle', 'linkPageId'] ],[ 'value' => Obj::LINK_URL, '_elements' => ['linkTitle', 'linkUrl'] ], ] ] ] ];