1

Topic: Submenus with Monstra

Hallo all,

monstra is a great lightweight CMS cool.
But i miss submenus witch is not supportet yet.

Another thing are the exlusive pages "users" and "sitemap". There is no easy way to modify these pages from adminpanel. Therefore i want to restrict the access only for registered members. How can i do this?
I think a plain installation of a CMS should not have those page constrains, mabye You can change this for further releases.

However You did a really great work. smile
Thank You

2

Re: Submenus with Monstra

Some ideas anyone?

3 (edited by nakome 2012-09-15 17:17:46)

Re: Submenus with Monstra

An idea:

Preview

nakome's Website

4 (edited by nakome 2012-09-15 17:47:03)

Re: Submenus with Monstra

other idea  for admin panel .
in folder plugins/box/users.plugin.php  line  170 change this

        /**
         * Get user panel
         */
        public static function getPanel() {
            View::factory('box/users/views/frontend/userspanel')->display();
        }

For this:

        /**
         * Get user panel
         */
        public static function getPanel() {
        if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin', 'editor'))) { 
            View::factory('box/users/views/frontend/userspanel')->display();
            }
        }

nakome's Website

5

Re: Submenus with Monstra

Thank You for response. That helps me a lot with the submenue problem. It is a simple HTML/CSS workaround until real submenues are implemented.

The other problem was to restrict the access to the "users" and "sitemap" page only to registered persons. I try to adjust the code like this.

Thanks

Re: Submenus with Monstra

But i miss submenus witch is not supportet yet.

Yes, I cant start work this plugin and blog plugin, because I have a lot of work on new version of Monstra. As you can see here (https://bitbucket.org/Awilum/monstra/changesets) a lot of updates would be smile

Another thing are the exlusive pages "users" and "sitemap". There is no easy way to modify these pages from adminpanel. Therefore i want to restrict the access only for registered members. How can i do this?

Why do you whant to close access to Sitemap ? how about search engines bots ?


I think a plain installation of a CMS should not have those page constrains, mabye You can change this for further releases.

Thers is only Home page. When you install any application(cms/frameworks) you always have default home page/welcome page.

7

Re: Submenus with Monstra

There is no need for a sitemap also for SEO. For search engines You can use a simple, non public!, XML.
Sometimes a sitemap is usefull, but i dont want to show ALL pages only the reasonable for users (hidden pages).


A sample is always installed, right. But i can delete them easily.
For the user and sitemap pages is not that easy.


The hint from nakome worked for me. Thanks!

Re: Submenus with Monstra

Sparkler

if ( ! Session::get('user_id')) {
something to hide.
}