Custom urls for Drupal paths.

learn more… | top users | synonyms

0
votes
0answers
4 views

drupal_realpath in ajax php script not working

I have an AJAX script, which boostraps the drupal system to get access to the drupal functions. The I like to convert a file's internal uri (e.g. "private://test.jpg") to a local filename (e.g. ...
0
votes
3answers
34 views

How to make a page visible only to users with permission to use the administration theme?

I have created a basic page which I only want to be viewable by people who have access to the administration theme. I have given the page a path of admin/shipping-help but to my surprise the page is ...
0
votes
1answer
23 views

Creating a view to show nodes with multiple aliases generated by Path Module

I got a tough problem that I don’t even know how to start, any help would be appreciated. I am on a D6 site. The Path Module is installed and there are articles that have more than one alias ...
0
votes
1answer
26 views

How to give a path to a link with filter?

I am trying to give a path to a submenu with Filter(field) as my-view&field_subject=C but it shows error like 'path is either invalid or you do not have access to it.' when i give 'my-view' it ...
0
votes
1answer
28 views

View showing Teasers - getting path for full content in teaser template

I have created a simple view to list teasers of a particular content type. I'm then using a simple view template, modified to suit the layout needed. In the content type set-up there is not an option ...
0
votes
0answers
23 views

REST Services Module - how to create custom URLs/paths

I have been playing with the Services module for a couple of days. According to general REST API best practices, the GET URL paths I should use are: /buildings /buildings/4 /buildings/4/rooms ...
0
votes
0answers
11 views

Entity Reference Sub Path Panels

I use following URL Path Schema with Drupal Pathauto Module: Node types: Country City both assigned with Entity Reference and i use the tokens for Pathauto for generate URL. It works all fine. My ...
1
vote
1answer
22 views

Multisite path issue

Our multisite is having issues. we have a subsite called /wikifix some of the URLs in this subsite are /wikifix/wiki/... now we have another subsite called /wiki. as soon as we make our symlink, the ...
3
votes
1answer
110 views

Replace Standard Node Path in Drupal 8

I am still new to all the Symfony semantics. What would be the easiest way to change node canonical urls to be /article/[node-title] instead of /node/[node-id]? Following this documentation I tried ...
0
votes
1answer
20 views

3 vocabulary and taxonomies in this vocabularies

I want to use vocabulary and stored in separate taxonomy vocabularies to create urls, and breadcumbs; is it possible? Drupal 7 I want to get the schema: a vocabulary 1 a taxonomy 1 a ...
0
votes
1answer
24 views

How to change the directory of file_create_url to default for a custom domain

Suppose, we have a file: /sites/default/files/picture.jpg Drupal is installed into a subdirectory: /drupal. There are 2 domains, attached to the site: exchange exchange-test (uses different DB) ...
0
votes
1answer
14 views

Force the usage of path aliases

The title is explaining what I'm trying, my question is: Am I doing it right? function hook_entity_view($entity, $type) { if (arg(0)=='node') { ...
0
votes
0answers
31 views

path url for create image in drupal module

I want to create custom image by merging some image(this is not my porblem),I did it in local php file and when I want implement it in in custom module the images not created ...
0
votes
1answer
36 views

Pathauto not workin

Suddenly i discover that pathauto is not working for my website and generate urls like node/89 . I didn't made any update or installed any new module that could interfer with it. Have you any ...
0
votes
0answers
10 views

How do I register a views_plugin_display_page path with Drupal?

I'm creating a new Views display plugin via extending views_plugin_display_page The problem that I'm having is that the path I set for the display via the UI is not registered with Drupal, so Drupal ...
0
votes
1answer
23 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
21 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
12 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
29 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
13 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
24 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
58 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
37 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
31 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
11 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
117 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
179 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
199 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
35 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
31 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
124 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
46 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
18 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
51 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
49 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
92 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
107 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
107 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
51 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
46 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
68 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
895 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
120 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
218 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
526 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
229 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
646 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
45 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
50 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
71 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 ...