All Questions
39 questions
1
vote
1
answer
52
views
View menu routes missing until first page load
I having an issue with the installation logic of a custom module. I am trying to add menu links using menu_link_save() that link to a view that is defined in my module in hook_views_default_views().
...
0
votes
0
answers
276
views
Can I use menu path with argument wildcard in Views?
I have Views profile list displayed as page. View path is 'mymod/%mymod_param/foo'.
According to docs I can set wildcard value by a function (hook_menu)
Function to set url param:
function ...
0
votes
1
answer
186
views
Views Sub tab on user account page
I am trying to create a menu structure on the user profile page like:
/user/%/content = Main tab (next to View, Edit) on /user/%uid
/user/%/content/published = Sub tab showing published nodes
/user/%/...
0
votes
1
answer
317
views
Programmatically render menu on search view
I'm trying to programmatically build a menu on my site, it works fine on all pages except a search view. This code I'm using is below:
$config = array('menu_name' => $menu_name, 'level' =&...
1
vote
2
answers
2k
views
Is there a way to use grouping settings for Bootstrap Tabs in Views?
Is there a way to use grouping settings for Bootstrap Tabs in Views?
0
votes
0
answers
36
views
Drop down of site pages for admin to choose
I have a content type which has a link (text type), and admin can manually insert his link. My site pages consist of the pages that work with views module (views page), and also pages that are ...
2
votes
2
answers
234
views
Active a menu <li> when the menu entry is a view page
I have a section (call news) that have an "home page". This home page is created via "views" and via "views" I have insert a link item into "main menu" menu based on path (/news). When I go to /news ...
0
votes
1
answer
38
views
Is there any way in drupal to get all primary links through views?
My objective is to get the primary links or any kind of menus items, to be shown as JSON, so that an app could consume it and show it.
I tried it using views and I have services module and ...
0
votes
4
answers
2k
views
Menu creation problem
I am trying to create a new menu link. But the system doesn't allow me to do so.
The path 'New' is either invalid or you do not have access to it.
The path 'testss' is either invalid or you do not ...
0
votes
0
answers
35
views
Alter titles of account tabs containing views tabs
I can easily alter titles in user account tabs from inside template.php like so
function custom_theme_menu_alter(&$items) {
$items['user/%user/edit']['title'] = 'mytitle1';
$...
1
vote
1
answer
520
views
Highlight View parent menu item on node page and rebuild breadcrumb
If you are new to Drupal, as I am, you surely asked yourself once about "How can I highlight parent Views menu item even if I am on a child node? And how can I keep a correct breadcrumb if I use one?"....
1
vote
2
answers
2k
views
How to use a view block in a dropdown menu item?
I'd like to create a menu item that generates a dropdown menu with unread messages. I've already used Nice Menus for flyout menus, but I don't think that module supports what I'm looking for: the ...
0
votes
1
answer
2k
views
Adding sub menu to Management menu
I'm trying to add a sub-menu under administration, for example:
Management:
......
Content
Structure
......
My test (sub menu under administration)
My view 1 (a view that I ...
0
votes
2
answers
5k
views
How to create a tabbed view in a panel without a menu entry?
What is my goal?
I'd like to create a view for my users' profile page, similar to the 'Questions' block one finds on the user pages on this website. Instead of the user's questions, I'd like to ...
1
vote
1
answer
530
views
Can contextual drop-down menu replace menu tabs?
When I am viewing stuff I have admin rights to the tabbed menu with stuff like 'View | Edit | Outline | etc ' takes up too much space.
Is there a way to switch drop down menus similar to those used ...
0
votes
2
answers
3k
views
Make a view content only appear when user is logged in
In Drupal 7, I need to create a view of member-only nodes. They're all of a certain type. This type—and I've already set that up with role-based access control—can only be seen by logged in users.
...
3
votes
2
answers
1k
views
Create menu for contextual view page
I have a series of pages created through Views, all the view pages are relative to one piece of content. The content paths I have created are
- mycontent/[nid]/overview
- mycontent/[nid]/members
- ...
0
votes
1
answer
97
views
Same secondary menu bar on different pages and lead to different content
not sure if I can describe the situation clearly, here is the thing:
I am using D7. I have this site: there are three menu items in the main menu will lead to three product pages, their layout will ...
1
vote
1
answer
374
views
Edit profile2 tab in view profile2 rendered with views
I have a profile created using profile2 module. I want this profile to be rendered as a separate page and I have done so using views. The profile can be viewed in a url: www.example.com/application/...
7
votes
1
answer
2k
views
how to add "access callback" function to a path defined by a view?
I'm using Drupal 7, Views 3, and hook_menu_alter
function MYMODULE_menu_alter(&$items){
$items['client/place/%'] = array(
'access callback' => 'custom_function',
);
}
to override ...
1
vote
1
answer
498
views
How to merge two different pages on one page
I am using profile 2 module to manage users profile related information.
so far I am having two tabs
My Accounts
Customize the tabs takes me to two different URLs i.e
(mydomain.com/users/user-name/...
0
votes
3
answers
692
views
Display view on custom homepage
I have a site with custom home pages depending on role. The homepages are assigned with hook_menu (hook_menu associates a URL with a function that returns a $html string.)
For one particular role, ...
2
votes
1
answer
76
views
Would be creating menus totally in views reasonable?
Above question is about two situations:
Standard, simple menu with 1-2 levels of depth,
Catalog on commerce site, with number of products, next to every item (taxonomy term) of menu.
I can imagine, ...
1
vote
2
answers
786
views
How to show the node delete tab and put a view in it?
I would like to show a 'Delete' tab near the 'View' and 'Edit' tabs in the node page and insert a custom warning message and a view in it. If I create a view tab page with path /node/%/delete it works ...
0
votes
1
answer
285
views
Menu with argument from views
I want to create menu block for each user on sidebar.
In it there would be links like Videos, Images, Bio.
So i made view with argument and url is usertype/%/videogallery
It is working fine, but how ...
1
vote
1
answer
1k
views
Im trying to pass an array as an argument in a page callback
I am attempting to pass an array as a page argument in a page callback in one of my modules. The scenario is this: The user selects some photo prints and I'm trying to add all the selected photo ...
2
votes
1
answer
182
views
Replacing core forum pages with views throws a warning
I set up views for forum/% paths to replace the core forum pages, and it works fine except I get this error:
Notice: Trying to get property of non-object in forum_menu_local_tasks_alter()
(line 169 ...
2
votes
1
answer
381
views
Jump Menu Style Dropdown To External Links
I'm attempting to create a jump menu of links to external websites, and I would like to be able to order the links within this menu differently depending on the organic group of the current user ...
0
votes
1
answer
128
views
Can I include a list of sub-menu pages in the content of the parent page?
I have a page that is the parent of a series of menu items, e.g. Projects, with some project pages as child items in that menu. I would like this parent page to automatically have the list of children ...
1
vote
1
answer
711
views
Menu item to view with wildcard
I created a view that dynamically displays some nodes depending a wildcard in the path.
The view path is something like /fruits/%
So /fruits/apples would show all the apple nodes, /fruits/oranges all ...
0
votes
2
answers
220
views
Build context menu for news articles (sample image included)
I have a complex view that queries and presents a lot of news articles depending on year and month contextual filter arguments. Everything works fine so far. However, now I want to show kind of ...
2
votes
0
answers
165
views
Page disappears after enabling/disabling module or after clearing all caches
I have a page provided by Views (no custom coding). After I enable/disable any module, or after I clear Drupal caches, this page disappears. When I go to this view configuration page, hit any field, ...
0
votes
1
answer
496
views
Section for logged-in users
I've been asked to create a member's area in the site I am currently constructing.
This area should be accessible via a menu section that should only appear to logged in users.
Furthermore, if the ...
3
votes
3
answers
12k
views
Create alphabetical pager
I want to list all the posts with alphabetical headings like this site:
How can I do this with drupal 7 using views?
3
votes
1
answer
2k
views
Setting a View's Menu Item to a Sub-Menu
I'm using Drupal 7.10 and Views 3.1.
This seems like it should be simple but I can't find an answer. I have a menu structure similar to the following:
Main >
About Us >
History
...
1
vote
2
answers
2k
views
Show children of a Taxonomy Term
I make use of the view: "taxonomy term". Is there an easy way to also show the children of a term, next to the nodes beloging to this term?
Example:
Cars
- Volvo
--- Family_cars
--- Sports_cars
- ...
2
votes
1
answer
829
views
Problems with Contextual Filters & Menu Tabs
I have created a collection of views (base) that collects identifies a category of articles and a second single view (tabs) that creates tabs to filter the content into sub categories for all base ...
1
vote
1
answer
379
views
Use Views to display tabs such as, "Add User Relationship," "Send message," etc
In D7, is there a module that allows to display tabs similar to the following ones, in Views?
Add Relationship
edit
Messages
Send Private message
I want to add these tabs as views blocks so I can ...
17
votes
9
answers
26k
views
How can I create a view of child nodes based on the menu relationship?
Say you have the following pages in a menu tree:
Projects
Project One
Project Two
Project Three
I'm looking for a way to create a view that will be embedded in the Project (parent) page that will ...