Arguments refer to the contextual information taken from a page display available to Drupal core and modules.

learn more… | top users | synonyms

1
vote
1answer
14 views

How to pass a variable $ _ GET in a page?

I will wish to create a privileged space for some users. I create a role 'Candidate'. I assigned permission 'access user profiles' has this role. I create a user that uses this role. (eg, foo) ...
1
vote
1answer
10 views

passing argument into markup(renderable array?)

I'm doing the Drupalize.me Drupal 7 module course. We're building a function in an include file that takes and argument from the URL. It then prints the value to the page. Seems simple enough, but ...
-1
votes
1answer
34 views

How can I add an argument in the URL that link from a content

I have been searching for the answer for so long but still none of the solution that I can finish my goal... my content structure is as following: I have Content-type that keep a list of Quotes - I ...
0
votes
0answers
9 views

Add views arguments to search index and sitemap

I've spent a lot of time searching drupal, this site, google etc and cannot find the answer. I need to have views arguments treated as pages, indexed by search and shown in the sitemap. In my case the ...
0
votes
0answers
17 views

How to pass an argument in a callback function generated by an ajaxified link?

I have an ajax link in my form element: $form['print']= array( '#type' => 'item', '#markup' => l(t($record_uid), 'admin/callback', array('attributes' => array('class' ...
1
vote
2answers
22 views

queries with db_select don't respect integers

When I check "SHOW PROCESSLIST" in phpMyAdmin I can see lots of queries where argument-integers are being inserted as strings (with single quotation marks). I'm wondering if this is due to the way ...
0
votes
1answer
43 views

Secure Way of sending argument from one page to another

In my Drupal Page I have one l() function as follows:- l('View Comments','admin/comments', array('query' => array('commentid' => $rinap_comm['record_id']) So in this case I am passing the ...
1
vote
0answers
65 views

Can't edit soap envelope

I'm trying to test SOAP webservices using the webservice client module but I can't edit the datatype parameter which is set by default to arg0. I've changed it to what is shown in the picture below ...
0
votes
1answer
12 views

Using a vocabulary term as a panel wildcard

I want to create a frontpage Panel Page that shows Views according to a Vocabulary Term Name in the url, like so: frontpage/persons frontpage/companies frontpage/institutions That way, I've ...
0
votes
1answer
56 views

Pass arguments to a node

How do you pass an argument from a menu to an existing node? I've read many articles on hook_menu but they seem to all talk about creating a page which references the arguments. for example: ...
0
votes
1answer
25 views

An URL that is all parameters

I'm building a website related to videogames. There's a view that shows all videogames catalogued in the website, using taxonomy terms as arguments, that is: mysite.com/games/genre/platform The ...
2
votes
1answer
189 views

Create a block with contextual filter that show related nodes based on field value, not with taxonomy

I'm no newbie to Views or Argument/Contextual Filters, but I'm having trouble getting my head around a (simple) view. I've created a Content-type "Event". Which contains an 'Addressfield', which I ...
0
votes
1answer
72 views

How to replace metatag description using views argument?

I'm having trouble while trying to use views arguments for replacing metatags description. In the view title you can easily add the view argument for example "Blog posts in category %1" so the "%1" ...
0
votes
0answers
25 views

How do I pass the right UID in the same query, without it defaulting to Anonymous?

I have this fantastic view setup that lets me add endorsements to different items. It works a little something like this, to get the UID of the endorser: What I basically end up with is ...
0
votes
1answer
53 views

Undefined index: und on search-result.tpl.php for Taxonomy Terms

I want to show the node title and related taxonomy terms in a table and modifying the search-result.tpl.php to do this. What I use to for taxonomy terms is that: <td class="field-item"> ...
1
vote
1answer
65 views

Page Arguments Not Getting Passed

My code was working perfectly, but at some point my hook_menu page arguments stopped getting passed. I am using versioning and can revert back to the previous code, but the page arguments are still ...
0
votes
0answers
55 views

Different Panels for page with & without argument

the scenario: I do have the following path-auto configuration for Articles path: domain.com/category/subcategory/article-title. I woud like to use different panel for: domain.com/category and ...
1
vote
1answer
57 views

How to get entity from transliterated argument in URL?

I have panel, where I have argument: taxonomy term name term names are transliterated (like "My custom taxonomy title" into my-custom-taxonomy-title) path is like this: ...
1
vote
0answers
88 views

Ignore parts of the url or dynamically rewrite/alias the url

I am having a problem and have been wrecking my brain over it... I feel I might ohh how did I not think of that moment once I find the solution... Basically, what I need to do is: For any url ...
1
vote
1answer
154 views

Panels “Page not found” when using required wildcard argument

I have a Panel Page, which displays several View Panes. I have specified a term name as an argument in the path settings. This is used to filter the View Panes. When I use an optional argument ...
0
votes
1answer
215 views

Insert a view into a block or a node using a shortcode

I need the following: I have a view that lists my portfolio projects the projects have a term reference field for its category. I want a shortcode for insert the view into some of my nodes and be ...
0
votes
2answers
310 views

Can I pass an argument as ?xxx=arg

In Drupal 7, on the home page /home, I have a list of News items in the left column, and want to click on one of the News items in the list, and have the full article for that item show in the right ...
0
votes
0answers
17 views

How to get string transformations for views arguments?

I'm using Drupal 6, and am setting up arguments on a string field. I'd like to be able to provide links to the 'argumented' pages based on the strings - but don't see how I would easily do that. ...
1
vote
1answer
795 views

Use multiple URL arguments to prepopulate multiple entity reference fields

I have multiple nodes of type 'schools' I also have a contact form that i'd like to provide on a per school basis. I.e. The user views a school page and can use an entityform embedded or linked to ...
0
votes
0answers
55 views

How to select View rows to run other views/panels/etc?

I have a drupal website with 3 database connections, and an LDAP connection. I typically need to check the status of a user in Drupal, and maybe some details in an external db or two based on 1 or 2 ...
0
votes
1answer
50 views

How can I pass a fixed argument to a view within a panel?

I have a view that will be repeated on many pages, and to not replicate many times, has two arguments. These arguments do not come from URL, are fixed. This view is inserted into a panel. Is it ...
0
votes
0answers
23 views

How to pass a value from one function to the options list, instead of always display the array index?

'options list' => 'list_all_users' / / this is done within the hook_rules_condition_info () When I do this, the options list receives the index of the array, the function list_all_users going to my ...
0
votes
1answer
116 views

How to pass arguments to rules_event?

rules_invoke_event('example_entry_add',$user,$result); function warden_rules_event_info() { dd("Event info"); return array( 'example_entry_add' => array( 'label' => t('An ...
1
vote
1answer
55 views

Why is Views ignoring nid as second argument?

I create a view with two arguments: Taxonomy ID (tid) and Node NID (nid). I leave the default settings for tid and set a default argument for nid to a fixed value (let's say: 1). The tid argument is ...
1
vote
0answers
73 views

File MIME type as argument. - Views

I am trying to create a view, listing nodes with a specific file type. This can be achieved using filters. But I want to do it using views argument. Say the view page's pathe should be ...
0
votes
0answers
53 views

Conditional arguments in Views 3

I have created content type ad with 2 fields: field1 (select list) field2 (select list) created a block in views with contextual filters: field1 and "provide default argument" > php code: $node ...
1
vote
1answer
206 views

Active trail when view has argument

Let's say I have the view with arguments. My path to view page is /products. The path that contains argument eg. 3 looks like this /products/3. Now as the view is displayed without arguments and the ...
0
votes
2answers
19 views

Different format show for pages that have been created with contextual filter

Using view contextual filter and taxonomy term that we can design our site. But how can I customize each page differently. For example my site has three sections such as Product, Learning, Home. I ...
0
votes
0answers
35 views

Multiple Arguments for Views for Contextual

I have a special path_alias for my content in the form of /profiles/username/1234. When a user goes to /profiles/username it goes to one view. Usernames are a taxonomy vocabulary - That view has a ...
1
vote
3answers
2k views

How to set programmatically multiple arguments for views contextual filters

How to set programmatically multiple arguments for views contextual filters? I can do it with one argument, it works great, but not with multiple arguments. I want to select all nodes created by a ...
1
vote
1answer
268 views

Using taxonomy hierarchy in Views arguments

I'm building a store with products organized with a hierarchal taxonomy. I'd like the paths for Views showing products to reflect the taxonomy hierarchy. For example, ...
1
vote
0answers
37 views

Views menu tab on taxonomy/argument views

I'm using the taxonomy term override view. I've created a second page which is a draggable view at /taxonomy/term/%/order. I would now like to connect the two with a menu tab but I can't figure out ...
2
votes
2answers
1k views

Use Optional Arguments in a Panels Path

I am porting an existing custom form that takes optional arguments from the URL to preload some fields. I can not use the ?q= method because I must maintain backwards compatibility. For example, both ...
2
votes
1answer
724 views

Menu token not working properly

I am Using menu token module to access pages related particular user, I am getting issue while selecting path in token menu using replacement patterns. can any one explains on what basis it will take ...
1
vote
1answer
55 views

Using two arguments in a panels page?

Here's what I want to do, for context: I want to go to mysite.com/groups/%gid/%nid and see the node specified by %nid with an OG menu and a header pane that get their context based on the %gid. So if ...
3
votes
1answer
49 views

Page Argument in Title

How can I have the page argument appear in the page title? $items['path/path/%'] = array( 'title' => t('Dynamic Title %1'), 'page callback' => 'pagecallback', ...
0
votes
4answers
2k views

how i can get $node->type of arg(2) in drupal 7

I have this url "track-new/15/51" arg(0) is "track-new", arg(1) is "15", arg(2) is "51". I want to check if type of arg(2) is artist How can I check?
0
votes
1answer
411 views

How to list all nodes of nodetype A which has the current node referenced?

So this is what I'm trying to do in Drupal 6: Node type A is video, node type B is a person Nodetype A has a reference field where you can enter a reference to any Node from nodetype B how can I ...
3
votes
1answer
584 views

Dropdown navigation for calendar view

It's not a "new" issue, but I'd like to implement a year + month dropdown selector to navigate a standard calendar view's display, as this particular calendar shows historical entries spanning many ...
2
votes
3answers
69 views

Getting nodes based on what the user has in their profile

I have a term reference field in my user accounts and I have nodes that are also tagged with that same vocabulary. I have a view set up to display all the nodes, but I want it to display only nodes ...
0
votes
0answers
85 views

Need help understanding Contextual Filters in Views

I would consider myself a novice Drupal user, and I am just beginning to learn more programming in general. One thing I never really understood was contextual filters (formerly "arguments") in Views. ...
1
vote
2answers
393 views

How to create a panel for a argument path

How do you create a panel for a url that looks like product/%nid/title. The Title should be from the node. The node paths have already been setup with pathauto. What i have so far in my panel ...
1
vote
0answers
32 views

Panels block appending argument in url

I have a block which has the contextual filter to taxonomy id. I created a panel page which includes that block and I passed an argument some term (eg. 1234). Now in view more of that block it is ...
0
votes
4answers
550 views

Is there a function for drupal that can identity if a certain page and its children are being viewed?

So I have nav that looks like this: <li> <a href="/some-parent-url">Parent Url</> <ul> <li> <a href="/some-parent-url/child-url-2">Child ...
1
vote
1answer
290 views

Panel + views + taxonomy depth problem

following this tutorial I create a Panel Page for the taxonomy term to display all the content related to the taxonomy term and it works. But I need to have in all the nodes related to the taxonomy ...