Custom urls for Drupal paths.

learn more… | top users | synonyms

0
votes
3answers
53 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
22 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
10 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
24 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
12 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
23 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
votes
0answers
19 views

Add user ID to all pages once user logs in

Is there some way I can set up to change URL addresses once the user logs in? Once logged in, I would like the user to see a unique id string added to the URL paths of all pages the user sees as ...
0
votes
3answers
31 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
10 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
15 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
27 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
35 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
27 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
82 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
36 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
47 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
83 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
37 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
86 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
16 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
33 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
35 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
28 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
25 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
67 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
67 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
41 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
43 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
42 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
94 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
48 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
32 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
113 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
30 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
120 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
29 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
53 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
34 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
21 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
383 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
175 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
65 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
91 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
3answers
463 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
197 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 ...