Arguments refer to the contextual information taken from a page display available to Drupal core and modules. "Contextual Filters", the new name for arguments in Drupal 7 is a synonym. "Context" is a related term that refers data and conditions from which arguments or Contextual Filters are drawn.

learn more… | top users | synonyms

0
votes
0answers
30 views

Adding query to dynamic menu item with _to_arg()

I have a custom menu item that attempts to use a _to_arg function to dynamically add a query to the url. In the _to_arg() callback, whether using the url() function or passing back a plain string, I ...
1
vote
1answer
28 views

Multiple Arguments with Views

I created a views page displaying "full posts" of any content type. Next I gave the page URL to be "test/%" Next I added a contextual filter for Nid Check "Specify validation criteria" below ...
0
votes
2answers
147 views

Entity Reference and nested arguments in Views

My site has 3 nodes: Program, which is a list of Course nodes. Course, which contains basic information about a course you can take Course Date, a specific instance of a Course. Each Course Date ...
0
votes
3answers
154 views

Drupal 7 - Add two menu items with the same path but different query string

On Drupal 7, there is a difficulty adding two or more items to a menu which are having the same URL but a different query string. For example, when I add two similar paths: ...
0
votes
0answers
16 views

Menu item not showing while using view with argument as link

I'm using D7 and I've found that menu disappears while it's linking to view with argument. Example: I have a view called with it's path "/news" and it contains argument (Contextual Filter) "Has ...
1
vote
1answer
151 views

FBOauth: how to pass arguments to the callback function?

I am trying to create a facebook event through a drupal content type "event". I call the hook_node_insert() to make a POST on Facebook. function fb_event_create_node_insert($node){ if ...
2
votes
1answer
102 views

Taxonomy-term based block display, using Panels

I'm trying to display certain blocks in taxonomy term pages and the nodes associated based on the taxonomy term itself. Let's say I have 3 taxonomy terms: Bologna, Milan and Rome. When I'm in ...
0
votes
1answer
34 views

How can I setup automatic subpages for existing pages using a view with a contextual filter that uses the URL to determine the filter value?

I have two content types that are being linked via entity references. Area of Expertise [Existing URL: /expertise/specific-area-here] Employee [Desired URL: ...
1
vote
0answers
22 views

Views Select Photos from the album to flag for printing

I have created a Content Type Album and added an image field with the value unlimited. Created a view page which displays all the images added to a node. Now I want that the user can select / flag ...
0
votes
1answer
70 views

Should I use Entity Views Attach module to solve my problem

I've check the question in this node: Is there a good tutorial for " Entity Views Attach module"? And I see that maybe what is answered there is a partial solution to the issue I'm facing. ...
0
votes
0answers
30 views

How to put a term related HTML snippet in a taxonomy term page

I have overridden the standard taxonomy term page with an own panel page. Now I would like to put in the panes of the panel content that are no nodes, but HTML snippet related to the term, for example ...
0
votes
1answer
73 views

Node edit page not showing up using page.tpl.php?

I'm working on a new drupal 7 site right now (I'm new to drupal) and currently have given the ability to users to create nodes. The node creation page (url.com/node/add/) works just fine and uses the ...
0
votes
3answers
249 views

drupal_goto(request_uri()) replaces my '?', '=' and '&' in url

I need to redirect user from a page with example.com/node/add/dispo?arg1=1&arg2=2 to the same type of URL. But when I simply do a drupal_goto(request_uri());, it redirects my user to ...
1
vote
0answers
36 views

How do I ensure active menu items are highlighted for Views with Better Exposed Filter arguments

I'm using Better Exposed Filters on a clothing site. There are various types of products listed using Better Exposed Filters (to choose between Mens/Womens/Kids). The Mens and Womens pages are ...
0
votes
1answer
74 views

Alter Views arguments from URL

I'd like to alter Views arguments which is currently Term name. Is there any way to use term name slug instead of complete Term name and use this slug as views argument? If not what hook should I use ...
1
vote
1answer
207 views

Only Show Nodes From Child Terms (-1 excluding parent)

Hello i have some nodes which i am using as to hold information on a taxonomy term (image, desc etc) and I have created some block views to pull that information to display on my taxonomy/term pages ...
1
vote
2answers
78 views

How one can get a field auto loaded with node title by passing nid

How one can get a field auto loaded with node title by passing nid. I mean instead of getting the selectllist of all available title i want it to be auto loaded with corresponding node title. NOTE: ...
0
votes
0answers
105 views

How can I get Views pages with taxonomy arguments display to fire after URL Alias (Path Auto)?

Right now I have a Views page that shows all results of the content type it filters by. If there is a taxonomy argument present (Contextual argument: Taxonomy ID: validate by Name to taxonomy ID) then ...
0
votes
1answer
59 views

Change Pager-ItemsPerPage over URL argument

I use Views to get Nodes in JSON format via REST service. I can switch the pages with http://myside/?q=my/path&page=1 but i want to change the limit of one page like ...
1
vote
1answer
76 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 ...
1
vote
1answer
72 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 ...
0
votes
1answer
68 views

Access variables populated in one page function for a different page function? Always null

I have a module that creates a simple page. However in the page I want to link to iframes that I will generate in the module code. Currently I have two hook_menu items: one for the simple page (no ...
1
vote
0answers
32 views

Drupal How to use regex or specific keywords as menu arguements

I have a drupal website, in which I wanted to add a new URL. This menu have two arguements which should be passed from the client side. function campaign_management_menu() { $items = array(); ...
1
vote
0answers
77 views

Passing arguments from Panels to Views in Drupal 6

I'm attempting to use The "It's Common Sense" guide to passing arguments from Panels to Views but I'm running into an issue at step 7: At the Configure Panel pane form, make sure you choose "No ...
0
votes
0answers
35 views

Pull variables (search terms) from view to use in custom text field

I have a view that is setup as a search page, which lists venues that are located in different cities. Think yelp-style search. So, if a user searches for Portland, it lists all the venues located in ...
0
votes
1answer
163 views

Passing arguments from Panel to View without url or using contextual filter from panel to field of taxomony term within view

Using Drupal 7, Panels 7.x-3.3, & Views 7.x-3.5. I'm unsure the best way to approach what I'm trying to accomplish. I have taxonomy vocabularies classifying people in my department. One ...
0
votes
1answer
63 views

How to pass arguments based on term filter

I have content type called 'software' and added taxonomy terms to this content type as select list. There are 10 taxonomy terms in that list. And now I have created 10 pages under this 'software' ...
1
vote
0answers
39 views

Complicated Relationships Driven View

Drupal 6: Basically I have two content types connected by the Node Reference module. One is "Questions," the other is "Answers". In the view there are 10 content items under "Questions." When the ...
5
votes
1answer
416 views

Add javascript to multiple specific urls

I'm trying to add some javascript to my template.php file on a Drupal 7 site. I'd like the javascript to load on a specific set of pages, based on the url. For example, I'd like the script to load on: ...
1
vote
0answers
37 views

D7 Views 3.4 Related Items View

Using D7 Views 3.4 and References module.- I have a content type called "Gloves" which has a node reference to a content type called "Glove Type". What I need is to be able to see other gloves from ...
1
vote
1answer
390 views

Use arguments for drupal views 3

How do you structure and use arguments in a view using the Views UI in Views 3
0
votes
1answer
111 views

Return Table and Form in page callback

I have a problem returning table and form in page callback at the same time it only works if one of them only returned. function _table_maps(){ $query = db_select('maps','m'); $result = ...
0
votes
1answer
307 views

drupal_goto argument retrival

I am redirecting my users with the following code: drupal_goto("event/registration/failed", array( 'query' => array('nid'=>$submission->nid, 'sid'=>$submission->sid), ) ...
3
votes
1answer
222 views

How to populate search form with search term in View / Panels / Page?

I've using Views and Page Manager to create a custom search results page. You can see it here: http://quotefail.com/search/node/world The page is being generated by Page Manager. I've got a Search ...
0
votes
2answers
127 views

Page not found return false

Im using a custom query to display some content. This query uses url arguments as MySQL variables. Usually when I create a link with the variables the page does not exist and it returns a 404 error. ...
0
votes
2answers
81 views

How to find out the combinations of Views arguments that have the most Views result

I have a node view with 2 arguments in URL my-view/%1/%2. Both arguments %1 and %2 are Taxonomy Term ID. I would like to make a page that lists the number of the View result per argument combination ...
1
vote
1answer
285 views

Sort View by the order of the arguments

I have a view that receives some arguments from a questionnaire. In the questionnaire I calculate a list of nodes that's sorted by how well they correlate with the questionnaire. Once my view receives ...
0
votes
1answer
157 views

Using Views with GMAP based on arguments

I'm using exposed views filter which displays me result based on arguments, I'm also using GMap. What I am looking for is that I've to display markers on that GMap block based on my filtered output ...
0
votes
1answer
298 views

How to use a hyphen instead of an underscore when using the content type as a Views argument? (Hackable URLs)

I have a classifieds site where I would like to list items at a URL structure like this: classifieds/for-rent/apartments/title-of-my-ad. That structure is broken down like this ...
0
votes
1answer
177 views

Date argument as view filter

I'm using Drupal 6. I have a custom view that needs to be filtered by an argument passed by the user. The argument is a simple date, and I need my query to be filtered like the following: WHERE ...
0
votes
1answer
387 views

Custom View Filtered by Taxonomy Term

I've been reading sites all day trying to figure out what I'm doing wrong or missing, perhaps you can help me. I can't seem to find the right explanation or tutorial. Situation: I have a custom View ...
1
vote
1answer
129 views

Override argument passed by URL

I think I must be missing something basic. I have a template that is usually called via a URL but I also want to be able to call it manually using theme() /** * Implements hook_menu(). */ function ...
0
votes
2answers
112 views

Why is arg() failing to get the router object on pages with aliased URLs?

So I posted this question about how to get NID of current node and I'm assured that arg() should work to return the router item for the current page, regardless of aliasing. However, it doesn't work. ...
0
votes
3answers
273 views

How can I conditionally display something in Views header area depending on the argument in URL?

The URL of my page view looks like my-view/%1/%2 The first argument %1 is term id of either vocabulary A or B or C and all of them are hierarchical taxonomy. How can I conditionally display something ...
0
votes
0answers
196 views

How do you pass page arguments from panels to a view?

I'm creating an online store using Ubercart. I have Views and Panels installed. I'm using the Page Manager and Panels to configure each of my pages. I've modified the default view to accept ...
0
votes
1answer
139 views

How can I exclude admin(uid=1) for “Views Argument PHP Validator code” which limit a view to a User’s uid value?

I have a page view with a menu tab and URL looks like my-site.com/user/%/my-view I use return $argument == $GLOBALS['user']->uid; for default argument. And then I would like to limit the argument ...
0
votes
1answer
171 views

7 - Views 3 - Displaying taxonomy description in a block

I am trying to create a view displaying a description of the current taxonomy term. This view will be a block in the taxonomy/term/% page, so the idea is that it uses the argument passed to pick the ...
1
vote
2answers
58 views

What's the proper way to create a new page option?

I want to show comments of a node on a separate page instead of on the node page. Since this is just a "comment archive" and not active I would like a simple solution without a big module or a lot of ...
2
votes
1answer
348 views

How to:Pass arguments to views and use that as contextual filter-in code

I have a views created in code. I am passing arguments(for contextual filters) to this view from another view like this: sitename/apage?ids=1,2 Q1. Is this the correct method? If not what is? Q2. ...
0
votes
1answer
176 views

different views for different taxonomy vocabularies at taxonomy/term/%

I have two different content types: cars and boats. each one has a taxonomy vocabulary of the same name associated with it. I have two views, one for each, that shows listings based on this content ...

1 2