Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8613295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:50:32+00:00 2026-06-12T04:50:32+00:00

I’ve got to implement navigation using a main menu (easy) but then each menu

  • 0

I’ve got to implement navigation using a main menu (easy) but then each menu will lead to a group of pages that have another “submenu” which I’ve implemented as a menu widget in the before content area.

The main navigation is something like this:

Home | First Group | Some page | Another page | Second Group | Yet another page

When the user clicks Home, Some page, Yet another page, it is taken directly to that page.

If the user clicks any of the “groups” it is taken to the “default page” for that group, and a submenu which is implemented as a menu widget is shown in the before content area. The first group can have 5 pages

Page 1.1 | Page 1.2 | Page 1.3 | Page 1.4 | etc.

The Second Group will have another set of pages.

I’ve naively set the path properties for the subpages so that they share a common path:

/group-1/page-1-1
/group-1/page-1-2
/group-2/page-1-3
etc.

/group-2/page-2-1
/group-2/page-3-1
etc.

I was expecting to use the Match Path to hide one widget menu in under one path or the other. But the problem is that I can’t target a specific Menu or Widget, only content types in general, etc. I can’t do something like this:

<Match Path="/group-1/*" ContentType="Widget SOME WAY TO TARGET A SPECIFIC WIDGET!!!">
     <!-- SEND THE NEEDED PARTS TO OBLIVION SO THAT ONLY THE CORRECT MENU SHOWS HERE --!>
    <Place Parts_Common_Body="-" />
</Match>

I believe that it would be much better to use a layer rule to target a specific path, but I just can’t match a layer rule to something like url(“/group-1/*”), so that’s why I’ve tried to use the placement info which seems to be the wrong tool.

Is there a way I can extend the layer rules to work with regular expressions, for example? This way I can create really powerful layers and just layout my widgets on the proper layers.

In summary what I want is to have different submenus for different sections of the site. I’m just kind of lost on how to accomplish that, but layer rule seem to be the right tool, only if I could manage to use a little more powerful matching syntax.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:50:33+00:00Added an answer on June 12, 2026 at 4:50 am

    I think I’m kind of blind!!!

    Straight from the docs:

    url("<url path>")
    True if the current URL matches the specified path. If you add an asterisk (*) to the end of the path, all pages found in subfolders
    under that path will evaluate to true (for example, url("~/home*")).

    So adding this rule was enough to create a layer for an entire section of the site:

    url(“~/group-1*”)

    I’m almost ashamed of myself…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.