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

learn more… | top users | synonyms

0
votes
0answers
9 views

How to pass an argument to panelized taxonomy term using alias?

I use panels to display taxonomy term page for terms of certain vocabulary. So the pages /taxonomy/term/[term_id] for my vocabulary now are panels pages. Also I have a view which I want to embed in ...
0
votes
0answers
33 views

How to set the title of a modal window in Drupal 7

I am using the following code to create a new page, which is rendered as a modal window by using a link with the ctools modal attributes: $items['mymodule/%ctools_js'] = array( 'page callback' ...
0
votes
0answers
12 views

Printing Administrative title to page

Is there a function I can use or object I have access to in page.tpl.php in order to get the Administrative title of the current page or it's machine name?
0
votes
0answers
26 views

New page controlled by Archive block

been searching around, but I must be missing something. I have a panel page that load two views. Each view have a list of different article type. the panel is loaded in the main content region of the ...
0
votes
1answer
49 views

How to create links which pass arguments to a page?

I am making a website which displays table from a database. For every row of the table I want to provide a link(or button) which will be placed in the last column and will redirect to a page ...
0
votes
2answers
66 views

Want to use exposed filters to pass arguments to a view

The title explains a lot. I have a view which shows everything of the content type and has exposed filters.(<-main view) Now I made another view where I used the exposed form style because I ...
1
vote
1answer
40 views

show specific number of posts on front page for mobile d7

I would like to show only a few posts for mobile I have mobile_detect as well as mobile_detect_ctools mobile_detect_variables, installed and working. I am using an adaptive theme, $is_mobile ...
1
vote
2answers
103 views

Passing arguments to a URL with view blocks and contextual filters

I have a page that displays nodes of awards. These awards have taxonomy Year added to them. The url to them is : url.com/aboutus/awards. I have a block view created that pulls the awards and I've set ...
1
vote
0answers
19 views

Exposed filters go to request arguments [duplicate]

I have views with three exposed filters, default settings exposed filters submit request in url : filter_country_tid=4&filter_city_tid=17&filter_street_tid=39 I made contextual filters in ...
2
votes
2answers
35 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
38 views

How to pass argument into markup (renderable array)?

I'm doing a 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 then he does this ...
0
votes
1answer
50 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
25 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
122 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
112 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
104 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
33 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
302 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
42 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
378 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
148 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
54 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
67 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
93 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
100 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
86 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: ...
2
votes
1answer
141 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
295 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
384 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
402 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 ...
1
vote
1answer
1k 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
1answer
76 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
1answer
301 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
80 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 ...
2
votes
0answers
109 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
69 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
330 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
21 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 ...
1
vote
0answers
39 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
4answers
4k 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
355 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
44 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 ...
3
votes
2answers
2k 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
1k 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
61 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
59 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
3k 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
586 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
761 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 ...