Custom urls for Drupal paths.

learn more… | top users | synonyms

0
votes
1answer
20 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
12 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
7 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
18 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
82 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
19 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
22 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
13 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
25 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
35 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
19 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
16 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
26 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
12 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
23 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
49 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
29 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
27 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
10 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
97 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
141 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
163 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
33 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
28 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
103 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
45 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
17 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
46 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
46 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
84 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
91 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
83 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
49 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
43 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
60 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
646 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
105 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
193 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
463 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
172 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
560 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
39 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
48 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
62 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
34 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
2answers
84 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
141 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
105 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 ...