1 2015-10-26 07:53:34

Topic: Problem with main menu and sitemap

I am  Monstra 3.2 newbie.
1. I want make main top menu with dropdown submenu. It's realized this feature in Monstra 3.2 version? If is, how simple enable this feature?
2. How make Monstra sitemap generation without Users link? I don't want feature that everyone see my users list and detail information about them.

Thank you for advices.

Re: Problem with main menu and sitemap

Hi @Tomux

1. There is not an official way to have a multi level menu, though it has been requested a number of times.
see http://forum.monstra.org/post/3748/#p3748 for some help or do a forum search.
I may look at this for my next plugin/ update.

2. Change plugins/box/sitemap/sitemap.plugins.php to

public static $forbidden_components = array('pages', 'sitemap', 'users');

will's Website

Re: Problem with main menu and sitemap

Hi will,

After your advice sitemap now is correct. Dropdown menu is my last week headache smile Can suggest how deny access to link http://www.mysite.com/users/1 ?
Thanks for help!

Re: Problem with main menu and sitemap

Hi @Tomux

As you say removing links from menu/ sitemap still leaves the page accessible via a direct Url entry.
I have dealt with this by editing plugins/box/users/views/frontend/index.view.php and placing this as the first line:

<?php Request::redirect('/');?>

So any body trying to visit the page just gets routed back to you frontpage.

A setting in Monstra admin to turn on/ off front end users would probably be a good idea moving forward.

will's Website

Re: Problem with main menu and sitemap

Thank you will. I add this directive also on profile.view.php and now all is ok.  Another question: it is plugin for search on website? smile

Re: Problem with main menu and sitemap

@Tomux, no unfortunately not at the moment. Though I'd like one for my blog so plan on making one that searches page: titles, descriptions & tags.

will's Website

Re: Problem with main menu and sitemap

@Tomux you can add google search on your site https://support.google.com/customsearch … 0969?hl=en

Monstra Loves You! Give some love back!

Re: Problem with main menu and sitemap

Great Idea! leverage Google's might.

will's Website