Custom urls for Drupal paths.

learn more… | top users | synonyms

0
votes
0answers
12 views

Change node path token to URL to file

In content type I have field called field_pdf. How to change node token [path] to URL to file which is uploaded to field_pdf? I need this to use [path] token in Views.
1
vote
1answer
22 views

Drupal Views Remove First Part of Path

I have a view that has a link as one of the fields. the display shows the entire link path i.e, http://www.example.com/user i want just the /user to show up in the view. is this something that ...
2
votes
1answer
34 views

Views - using “admin/” in path gets me to the home page

I'm having an issue with the Views module. Let me say in advance that the site urls have been customized with the module "rename admin path" and the path to the administration section is ...
0
votes
1answer
20 views

Is there a function to get the system path for the current language?

If I'm using multiple languages on the site with path prefixing, is there a quick way to get a system path for the current language? For example, if the current language is English, and I'm ...
-2
votes
2answers
63 views

What's the correct relative path to a local image? [duplicate]

I've created a topbar for my website that's displayed the whole time and added an image to it with <img src="sites/default/files/MYFOLDER/IMAGE.png"> It looks great on the homepage, but when ...
0
votes
0answers
31 views

OpenSTV Integration configuration on Windows IIS server [migrated]

Although this involves a Drupal site, the question is more at the server level, I think. BACKGROUND: Site uses modules "Election" and "Election OpenSTV Integration, the latter one being involved in ...
1
vote
1answer
29 views

How to add content type as a menu item child without displaying the link in the menu?

I recently found menu block module, which displays my submenu very nicely. Here's the menu hierarchy: Home About News & events -- News -- Events Contact So when I go to the News & events page ...
0
votes
2answers
35 views

How to change the default images path and direct it to the external directory

I just want to know if there is anyway set drupal to upload images to the directory outside the drupal installation like loc*lhost/site-name/image-upload/... rather than ...
1
vote
1answer
35 views

How can I add image map on drupal?

I am working on a website that is about history and there are some map for this website. I am using map tag of HTML to select a part of image(map), how can I merge that <map> to <img> ...
0
votes
1answer
22 views

How to setup module install (sub-folder) paths from the *very beginning* (contrib, custom, features etc) - i.e. not move them after the install

I've seen plenty of guides saying why it's a good thing to organise modules in different folders... (and I'd agree) e.g.: Where to put custom modules? ...
0
votes
2answers
40 views

D7 - How to get mlid value from path of menu item

Quick question. How to get mlid value from path of menu item. There is a function called menu_link_load() but it requires an mlid value, but I need something exacly the same function using path.
0
votes
0answers
14 views

Optional tokens in path

Sites such as StackExchange use URLs that contain a page code and some additional keywords, possibly for SEO. If you change anything in the additional keywords, you are still redirected to the correct ...
0
votes
2answers
28 views

Rewrite rules for Development & Production Environments

I'm having trouble with the file path when I upload my development environment to the server. The problem is actually quite simple. Development is working on the root folder ( development.tld ) ...
0
votes
1answer
31 views

show PDF absolute URL in Views table

I've got a column of links to files in a table. They're displayed via file-fields with 'Output this field as a link" enabled in Rewrite Results. It's works great with fx images but width pdf's the ...
0
votes
1answer
22 views

Looking to create a taxonomy term path with a query string

I have seen this question asked over on DO and here, but there doesn't seem to be a clear answer. How to create a path alias with a query string in the target? I need to able to send a query string ...
0
votes
1answer
19 views

How to get the path to theme in Views for linking an Image

When creating a view, I rewrote the output in "Rewrite Results". There I have an HTML with a link to an icon in the theme folder. <ul class="stats vertical"> <li><a ...
1
vote
2answers
51 views

how to define ECK form url

I am using ECK I create one form through entity->bundle->feedbackform->managedfield my form is created, but how to get form path, current path is of my feedback form is:- ...
1
vote
3answers
56 views

What's the relative path to a user's profile?

I've created a clickable block with Views and rewrote the fields with HTML like this: <a href="user"> some divs... </a> Clicking the block should refer the logged-in user to his/her ...
0
votes
0answers
5 views

Set specific role overlay path

I'm using the overlay path module to make sure that when I create a node of type project it opens in an overlay. This is my configuration: Because I want the overlay in my normal user part of the ...
0
votes
0answers
35 views

path alias or real path has higher priority?

By default in Drupal , a views create to show all term , its Url is taxonomy/% (%=termid),I has special vocab that I want set another views with my fields and style , I set path alias to that vocab ...
0
votes
0answers
39 views

current_path() inside theme_menu_link returns previous path

I am trying to hide/show menu links based on my current page. I have added the following snippet into my template.php file under mytheme folder. /** * Implements theme_menu_link(). */ function ...
2
votes
1answer
40 views

Taxonomy View and Paths

I have a view set up to display all my taxonomy nodes for "Classified Categories" Vocabulary, in the view I have set up the path to be /Dogs however when it lists the terms they are all linked to ...
0
votes
1answer
70 views

Remove id alias appending to confirmation page URL

I have created a basic page in Drupal 7 that acts as a custom confirmation page for a web form. The url needs to be clean and static because it will be tracked by Google Adwords. The problem is that ...
1
vote
1answer
39 views

path translation

I have a dual language site (English and Arabic). In the English version I added a URL alias: projects/commercial but I cant find a way to have that translated to the arabic version. I need that ...
0
votes
2answers
29 views

Node Creation Paths

I added a custom node-type (content-type) called Document (for example), i also allowed it to create a menu item for navigation purposes. Then assigned a non-admin role the permission to create new ...
0
votes
0answers
17 views

Panel path based on menu path

is there a way to create a panel path, that includes my "menu path"? Something like that: www.foobar.de/menu-link-title-1/menu_link-title-2/my-panel Greetings Sebastian
0
votes
0answers
91 views

Calls wrong image file path

I have simple Image field, its file path is set to field/image so when you upload a file, its path is something like /sites/default/files/field/image/image.jpg. But when I create content and upload ...
0
votes
0answers
11 views

Drupal Path Setting differ when logged in or not

So when I am logged in I see site.com/node/xx when I am not logged in it is displayed as site.com/xx the way it should be. The strange is it only happened with my last added nodes of today!? I ran ...
0
votes
1answer
16 views

Specific content type shown in different places

I'm using Drupal 7 w/ pathauto. I have a single content type called "news". This content type has a field called "newstype". Two of the three "newstype"s ('event news' and 'company news') are visible ...
0
votes
1answer
25 views

Single site with multiple user interfaces based on path and role

I'm currently working on a Drupal project that requires 3 separate interfaces. Administrative users login to the site and all of the pages associated with their specific role start with a particular ...
1
vote
1answer
19 views

Follow up Drupal path to PHP function

How do I figure out which PHP function is called from a Drupal path/URL (e.g. "/mysite/?q=flag/flag/like/&destination=node/1&token=xyz")? Thx in advance!
0
votes
0answers
13 views

path from a view

What is the correct path to an image in my theme folder from a View. I'm trying to 'rewrite results' of a view to display an image, but can't come up with the correct path. If my image is located at ...
0
votes
1answer
100 views

how to add link to null path in menu in drupal 7

I have added superfish menu in menu bar in that one of the link have sub-link. How to add a sub-link with null path. Please help me. Thanks
0
votes
0answers
25 views

Wildcards and URLs

I am having problems with a sort of pattern matching or path parsing issue. If I have the following URL: http://www.mysite.com/sem-one-two/play I have an application that runs at /play, which is not ...
0
votes
1answer
50 views

Url adds zero at the end and duplicate contents appearing

Some of my contents have duplicate contents meaning it creates two path for the same content and I don't know how it track this and it adds zero(-0) at the end of the url like the below ...
0
votes
1answer
32 views

Customizing where to show block

Let's say I have nodes with the following paths: /chapters/university-of-florida/classrooms/class1 /chapters/university-of-chicago/classrooms/class2 /chapters/ucla/classrooms/cla I'd like to ...
0
votes
1answer
19 views

Forms - Clone form with different url + theme

I have a content type which can be created by admins and regular authenticated users. Now i would like to create a separate form url like /city/create for authenticated users instead of the standard ...
0
votes
1answer
336 views

Drupal 7 img src path issue

I created a block, in which an img with src="sites/mysite/files/imagename". It works every node, but failed loading in search page. Is this an issue of Search module? Drupal 7, I hope, has a uniform ...
2
votes
2answers
143 views

get current url path in drupal 8

How can I get current url with alias name of it ? I am now in drupal 7 I did it with drupal_get_path_alias() ,How can get current url alias(if alias set else url) of current url in Drupal 8?
1
vote
1answer
56 views

How do I dynamically change the $GLOBAL['base_path'] variable?

Example scenario: All authenticated users should see /members/ at the beginning of each URL path, and all anonymous users should see /guests/ at the beginning of each URL path. So if an anonymous ...
0
votes
4answers
83 views

How to build a url path from raw path and arguments?

In Drupal 7, from within a module, My goal is having a menu path (e.g. "/path/to/page/%/%/view/%") and an array of arguments (e.g. array('foo1', 'foo2', 'foo3')), be able to build the resulting path ...
2
votes
2answers
397 views

Programmatically create a node with alias and menu item using Entity API

I've seen the excellent documentation on Drupal.org about how to create a node in code, but that documentation doesn't address how to create the node's alias. I've seen code snippets that use ...
0
votes
0answers
171 views

Can't change the Public file system path

I want to change the public file system path on my Drupal 7 install. I go to admin/config/media/file-system and enter a new directory where it says "Public file system path". The new directory exists ...
0
votes
2answers
65 views

Wrong path with drupal.add.js

The problem occurs when a node alias consists of a backslash. My example: drupal_add_js(path_to_theme() . '/js/script.js', array( 'type' => 'external', 'scope' => 'footer', ...
2
votes
2answers
63 views

Is this the proper way to alter a path defined in code by another module?

I have installed the FAQ module on my site, and it defines the path to the FAQ page in code as 'faq-page'. I would like to make the path be 'mypath/faq' instead. I think I need to create a little ...
0
votes
1answer
27 views

How can I link a gallery made with views to another gallery made in views?

I am trying to do a gallery with a page of preview of the pics, I got how to do it with views and tags for the full size pictures and with image styles; I got the preview gallery (btw for this one I ...
0
votes
1answer
48 views

Find the custom module responsible for a URL

On a site I did not originally develop, I'm stuck having to fix display issues on an arbitrary page. Is there a way to locate the custom built module responsible or the source of a given URL path?
0
votes
0answers
264 views

Autocomplete text field's key events are not triggered and keydown or keyup function's aren't invoked in misc/autocomplete.js

I created an autocomplete textfield using Islandora form builder module. What it does is use an xml file to define form elements rather than the form array. So the xml text field element looks like ...
0
votes
0answers
11 views

change url_alias partially according to a pattern

How to change url_alias partially according to a pattern? We have site with reports to users. We continue to update the reports with new content node but the url_alias kept same. For example, ...
1
vote
0answers
131 views

Contextual Filter from a select list (Key|value) - Use value rather than key

I have a Content type called Article, under which I have an article type field, which is a select list/dropdown field. The options of the field is as follows: 0Editorials|Editorial 2Feature|Feature ...