DOM content replace

Use ':target-id:link' in standard menus to define menu links that fetches content using AJAX requests and replaces the target-id content. If target-id is missing, then 'page-content' is used as default target ID.

If requested content contains script-tags, then they are added if onajax="add"attribute is set and run if onajax="run" is set (see script.php). Any script fragment without onajax attribute is missing. If function content_replace_extern() is defined, then if will be automatic called instead of the supplied function.

Pages can programatically use the Link class to render links:


UUP\Site\Page\Context\Menus Object
(
    [_topmenu:UUP\Site\Page\Context\Menus:private] => 
    [_navmenu:UUP\Site\Page\Context\Menus:private] => 1
    [_sidebar:UUP\Site\Page\Context\Menus:private] => 1
    [nav] => UUP\Site\Page\Context\Menu\StandardMenu Object
        (
            [storage:ArrayObject:private] => Array
                (
                    [0] => UUP\Site\Page\Context\Menu\MenuData Object
                        (
                            [parent] => .
                            [name] => Replace
                            [data] => Array
                                (
                                    [Location] => ./view.php
                                    [Content] => ::./view.php
                                    [Custom] => :custom-id:./view.php
                                    [Decorated] => :custom-id:./page.php
                                    [Script] => ::./script.php
                                    [Restore] => ./index.php
                                )

                        )

                    [1] => UUP\Site\Page\Context\Menu\MenuData Object
                        (
                            [parent] => ..
                            [name] => Root
                            [data] => Array
                                (
                                    [Page 1] => ../page1.php
                                    [Page 2] => ../page2.php
                                )

                        )

                )

        )

    [top] => UUP\Site\Page\Context\Menu\TopMenu Object
        (
            [storage:ArrayObject:private] => Array
                (
                )

        )

    [side] => UUP\Site\Page\Context\Menu\SideMenu Object
        (
            [storage:ArrayObject:private] => Array
                (
                )

        )

)