I am trying to understand how URLs work in D7 with Views and Panels. When setting up a new view or panel it asks you for a URL.

I am setting up a panel that will embed a few different views. This panel will be for the homepage. I have a view with the URL featured-items. I have successfully embedded it into the front page panel. However, it is also accessible at /featured-items. How do I prevent this from happening?

  • You can create views as block and embed this into panel. – Jayendra Kainthola Nov 8 '13 at 10:01

When you select a Views "Page" type display, it must have a URL. And that URL is where this page will be accessed from.

There's a separate views display that's dedicated to be inside Panels, and that one is called "Content Pane" display inside views. This display doesn't take URL, but also has a lot more options for panels configuration such as argument input from panel, settings overrides such as pager, fields, items per page, base URL etc (need to explicitly allow each from the Views display "Pane settings").

So to answer the question, either use Content Pane display, or you can also use a Block display (as suggested by @JayendraKainthola) which is less flexible inside panels.

Once you've created the display Content Pane, it will be available in the "View panes" category when you're adding it to the panel.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.