Custom urls for Drupal paths.

learn more… | top users | synonyms

0
votes
1answer
9 views

Show views page based on path

I have 3 node types: category subcategory product These are all linked using Entity Reference module. All pages have a path (using autopath). What I want to do is show a view depending on the ...
0
votes
1answer
15 views

Alias URL not changing when switching language in a View

I have a content node in 2 languages. When I use the language switcher while displaying the English content: www.example.com/en/content/Article-on-relativity it displays correctly the translated ...
0
votes
0answers
9 views

Organizing complex URL architecture

I have two-level taxonomy (simple tree). And my items URL should be category_level_1/category_level_2/item But one article may belong to different terms, so it may be that item should be reachable ...
0
votes
1answer
18 views

Javascript link in theme.info not working Drupal 7 [closed]

Why is my jquery.js file not found when I use this code in my theme.info? Im using drupal 7. scripts[] = js/jquery.js I got this code from the drupal page and I'm 100% sure its the right path. ...
0
votes
1answer
11 views

Links in sidebar to link to search results

I have a view in sidebar showing a taxonomy Category. There is a view on /search-page that displays search using Search API view and exposed filters. I want the sidebar Categories to link to the ...
0
votes
0answers
15 views

patterns in path breadcrumbs

I'm using the path breadcrumbs module and I figured out how to set a breadcrumb per path. But this requires me to know (in advance) the nid of every node where I want the breadcrumb to appear. I know ...
0
votes
2answers
36 views

How to get the current user id in the path

I'm using the Workspace module and when the user goes on their 'SITENAME/user', there's a link which leads them to all the nodes they have added. The path of the link is 'workspace/<UID>' for ...
0
votes
2answers
20 views

how do you restrict directory path to role?

How would you go about restricting a specific directory path to a role? www.example.com/example1/example3/example4 How do you restrict role access to the directory example1 so that example3 and 4 ...
0
votes
0answers
19 views

Hierachical site structure and rewrite URLs in Drupal

I run a fresh installation of Drupal 7 (with Bootstrap 3), where I would like to structure my site in the following fashion: Main page (domain.com) -Silo1 (domain.com/silo1) --Article 1 ...
0
votes
0answers
9 views

Retrieve List (text) key for Path settings of file

I want to rename a file according to a value in a list (text). I am not able to choose the key of the list, but always the value is chosen. The list looks like this. key|value digital|Digital (print ...
0
votes
1answer
48 views

Path (alias) does not work after migration, nor Content view

I'm using the migrate (7.x-2.x-dev) module to import a node(s) from static HTMLs to Drupal 7, and I want to set the path the same as the original directory/filename. I have defined in my migration ...
1
vote
2answers
93 views

Check if path exist

I want add export link in some place if current path plus '/export' exists. But can't understand how check such urls. The problem is when path exists with less number of arguments drupal_valid_path() ...
0
votes
1answer
68 views

Drupal 7 views page path/url matching?

Our former website (that was hooked with Google Analytics) had the following URL (i.e. Example URL) for a staff member: http://www.example.com/research/teams/staffname.html I have recently ...
0
votes
0answers
19 views

my /admin URL shows a custom view from another URL

when I access site.com/admin i get a Views page that has the path site.com/admin/releases. The View is a clone of the standard Drupal Commerce /admin/commerce/products/list with some more fields. ...
0
votes
2answers
23 views

Check for string in URL

How can I check for a specific directory in my URL? I need to display an image if I'm in http://www.mywebsite.com/displayimg/mypage but not if I'm in http://www.mywebsite.com/mypage... would it be ...
0
votes
3answers
78 views

How to find url of content-type?

I am new in Drupal I have an article website, and it has some category like History, Sport, Graphic, Music and etc. But when I add some content-type for each of these and when I visit that post, I ...
0
votes
0answers
26 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
0answers
15 views

How Override taxonomy term width multi vocabulary

I have 2 vocabulary. number: number1 number2 number3 width link taxomomy/term/1 => taxomomy/term/3 category: category1 category2 width link taxomomy/term/4 => taxomomy/term/5 I want create 2 view ...
0
votes
3answers
42 views

global variable for path

In my project I want to provide path of some files from root directory. Path has repeated 4 to 5 time in one module so I am thinking that put one global variable and access that variable in same ...
0
votes
0answers
35 views

How can I get the file field uploaded file path of a node?

I am using the tpl file to creat a node page to contain the video player, JW player. I have created 2 content types,in one of it , I build a file field to upload the video, another file field to ...
0
votes
0answers
62 views

get uri of realpath

I want to create a product(and product display) with below code,everything seem fine ( I did it several time ) but my problem is when I want create image file with ajax posted data, file created ...
1
vote
3answers
71 views

Page not found error when using plus“+” sign in the url alias

I am trying to create a new simple node with url alias as test+node. when i save the node the page is not showing the node, the url changes as http://server/packets/test%2Bnode but it only shows the ...
0
votes
0answers
51 views

“Use panel path” in view pane settings not working

I have the following situation: Two panel variants: First: news/%nid Second: news First variant shows a specified node of type "Article" Second variant shows a list of nodes of type "Article" ...
0
votes
0answers
36 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.
2
votes
1answer
40 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
51 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
276 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 ...
1
vote
1answer
66 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
123 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
318 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
87 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
366 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
27 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
43 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
47 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
33 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
60 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
101 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
85 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
60 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
50 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
49 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
162 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
74 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
37 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
18 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
201 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
17 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
50 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 ...