ZenphotoCMS Forum
admin toolbox with category context - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: admin toolbox with category context (/thread-12994.html)



admin toolbox with category context - vincent3569 - 2017-12-28

hi

I have a look on this code in zp-core\zp-extensions\zenpage.php (line 314 and following)


    static function admin_toolbox_news($redirect, $zf) {
        global $_zp_zenpage, $_zp_current_category, $_zp_current_zenpage_news;
        if (is_NewsArticle()) {
            if (zp_loggedin(ZENPAGE_NEWS_RIGHTS) && ZP_NEWS_ENABLED) {



// page is a NewsArticle--provide zenpage edit, delete, and Add links
                echo "[*]getTitleLink()) . "\">" . gettext("Edit Article") . "";
                if (GALLERY_SESSION) {
// XSRF defense requires sessions
                    ?>
                    [*]
                        ">  



admin toolbox with category context - acrylian - 2017-12-29

Its for the redirect link when logging out on a category page so you return to/stay on that category page.

And before you ask: Yes, there is no edit link for the current category itself for unknown reasons.




admin toolbox with category context - vincent3569 - 2017-12-30

I didn't aked the question.
but as you noticed, maybe it will a new feature...
;-)




admin toolbox with category context - acrylian - 2017-12-30

Is considered ;-)