Custom urls for Drupal paths.

learn more… | top users | synonyms

0
votes
1answer
19 views

How to get the ID value from a URL

This is my URL for a page! mydomain.com:8080/browse?category=137 which simply takes me to Taxonomy category page. How am I suppose to take that category id from that uri "137".
0
votes
1answer
15 views

What is the Correct UID path whilst using Ubercart Affiliate in Custom DB

I'm currently building a various user dashboard using my own custom hacked Workbench (WB) & cloned from one Master for end users (3 roles ex SU). WB chosen over Homebox as that was taking me too ...
2
votes
0answers
17 views

How to programmatically uncheck 'Generate automatic URL alias' option for all nodes

I've created some nodes programmatically and set the path alias. But when I then go into edit the node the 'Generate automatic URL alias' option is still checked, even though my alias is shown in the ...
0
votes
0answers
7 views

Return different content in panel nodes based on path patterns with centralised settings

I am using Drupal for an app that returns Drupal based content based on a url path. the app is an overlay that sits on an international site and redirects users to content on the local version of the ...
0
votes
0answers
22 views

Upload an entire images folder

I'm integrating a plugin (starzoom) in a gallery page. The plugin uses an array of small parts of an big picture inside a specific folder. I need to create a visual friendly way for the client to ...
0
votes
1answer
46 views

How to alias / rewrite path to theme?

The paths to css/js/images in a theme look like /sites/mysite.org/theme/* Is there a way to rewrite those paths to – let's say – /mytheme/* ?
0
votes
1answer
20 views

Image not showing in Drupal 7

Site is hosted in fasthosts wherein <IfModule> is not supported so they advice me to edit .htaccess to something like this. Comment, Order allow,deny </FilesMatch> Options –Indexes ...
0
votes
0answers
10 views

Menu item not showing while using view with argument as link

I'm using D7 and I've found that menu disappears while it's linking to view with argument. Example: I have a view called with it's path "/news" and it contains argument (Contextual Filter) "Has ...
0
votes
1answer
47 views

Drupal 7 taxonomy add term missing url path settings

I'm working with a Drupal 7 installation, I watched a video that shows how to work with taxonomy, http://www.youtube.com/watch?v=Qmr2HW6CtJQ but when I go to "add term" to create a new term in my ...
0
votes
1answer
30 views

Inherit page id for drupal node

I am trying to make a node inherit the url of where it is clicked form. eg : .com/blue-work/node-1 not .com/node-1 This is so when a link is clicked from a certain destination the node inherits its ...
0
votes
2answers
44 views

update only a part of url path in database

I am migrating website and I changed my mind about url path where my images are stored. Before the path looked like: files/name-of-article/image.jpg now I would like to change it to ...
0
votes
1answer
51 views

How to associate an entity view mode with a path? (Commerce product entity)

I created a view mode for a Commerce product entity with http://drupal.org/project/entity_view_mode , now I would like to associate this with a path like myproduct/[entity_id] , so I can attach meta ...
0
votes
1answer
35 views

Custom theme css separate from editor css

I have a custom css file in my custom theme folder which has a few changes I made throughout site but does not affect the tinymce editor but probably overrides it making so no changes in text. I have ...
1
vote
3answers
284 views

What is causing /user/*/taxonomy/term/* to redirect to /taxonomy/term/*?

I got a view with contextual filters set up as the following: Global: Null (Fixed value "user") Content: Author uid (User ID from URL) Global: Null (Fixed value "taxonomy") Global: Null (Fixed value ...
1
vote
1answer
25 views

D7 - Losing images when moving site location; placeholders point to old absolute path rather than relative path

My file directories have not changed, but every time I move from local host to production, or just change the filename of a test site online, I loose the images. For example if I use the backup of ...
0
votes
1answer
58 views

How do I get the public url of a file from the uri or filename

I'm using php from with a view (Views PHP) I'm trying to extract the real url of a file from a file reference. I am able to get the the uri of the file and or the filename. What drupal function can I ...
1
vote
0answers
60 views

Should I rewrite my links into aliases?

Is it of any advantage, in addition to using Global Redirect, to rewrite html links from /node/nid to /article/this-is-the-title, even though in both cases traffic is directed to ...
0
votes
1answer
28 views

Why is my alias “NULL” in a test?

I am using Drupal 7, I have Pathauto enabled, and my user has permissions to create new aliases. When I manually create a node, uncheck the checkbox for automatic alias generation, and enter a custom ...
0
votes
1answer
35 views

Creating custom node aliases inside a simpletest

I am attempting to write simpletests to replicate the steps to reproduce on this d.o issue. I need to create a test node with a custom alias, as if I had unchecked the "Generate automatic URL alias" ...
1
vote
1answer
61 views

How can I get an absolute path to a theme?

Is there a Drupal function that returns the absolute theme path? Or is there a canonical / base practice way of doing this correctly returning the theme path? What I've found so far is this: ...
0
votes
1answer
30 views

How can I distinguish dynamic pages on a hook_menu?

function mymodule_menu_local_tasks(&$variables) { if ( request_path == 'yadda') : .... } I can do that.. but the problem is I want to include this for the tabs on user/$id/edit and I'd ...
0
votes
1answer
238 views

Remove language prefix from files URL

I have a drupal installation in a sub folder (demos/drupal) and it supports two languages (english -default- & arabic). I imported the drupal content from an old site. My problem is that the ...
1
vote
1answer
45 views

customize url of path of file entity

I'm using the media module to build an imagebank. Is there a way to customize the url of a file? Currently is looks like this: file/20 and I would like t to look like this imagebank/image/20. Any ...
0
votes
1answer
90 views

Remove folder from basepath of urls?

I have 2 sites locally (in MAMP) both in their own folders. I need both sites to be in the web root which I can change in the MAMP settings each time Im working on a different site. However now I ...
3
votes
2answers
105 views

Setting base_url in a multidomain setup?

I have functionality that relies on having $base_url set in the settings.php file, but I have a multidomain site in order to keep languages separate. The sections of my site are www.mysite.com and ...
0
votes
1answer
67 views

Profile2_path form_alter - Anonymous user form - access denied problem

I have created a custom profile type and given it a unique registration path using profile2 registration path. I am attempting to form alter the custom fields but I cant seem to find a way to view the ...
0
votes
0answers
37 views

Correct path for images in WYSIWYG node edit view after moving site?

Im using the Insert module that gives users a nice UI to insert images into the body of nodes. The issue is that ive migrated the site and the image paths are now wrong. I can use Pathlogic so when ...
1
vote
1answer
25 views

How to join a path to a file in code, “windows safe”

Given a hook (e.g. hook_theme()) and a path where something has to be looked up (e.g. templates), what is the cleanest way to deal with this? I have the following directory structure: ...
1
vote
0answers
93 views

Same forum in multiple menus?

I'm building a site which has several "guide" sections, each with their own menu. Think "London guide", "Paris guide", "Berlin guide" etc. All of these guides will share the same forum - call it ...
3
votes
1answer
119 views

Full path in the menu

I've trying to setup a Drupal 7 site where I already have some content added. The content is bound to a multi-level menu, but the path's for nodes in the submenus show only the actual node's alias, ...
0
votes
1answer
33 views

Use Ajax in a view outside Its path

I am using a view that I get from views_get_view('') and I put it inside a node page. The problem is that the view normally uses AJAX (to filter,pagination,etc...) only when called through Its path. ...
0
votes
1answer
45 views

Upgrading Drupal from 6 to 7 results in double slash being present in image file paths

After upgrading from Drupal 6 to Drupal 7 I noticed that my image paths now have a double slash like this: /files/sites/default//filename.jpg I was thinking of running a simple find and replace in ...
1
vote
1answer
92 views

file_create_url printing different addresses on live and local installations

I'm using the following code to print out the path of an image uploaded through theme-settings.php: <img src="<?php print file_create_url(file_build_uri(theme_get_setting('my_setting')); ?>" ...
1
vote
1answer
289 views

Drupal 6: CCK Images broken (because of path) on multisite after copying/moving site

I've just encountered an issue I haven't seen seen before: after copying the dB/files to a new location on the server, none of the CCK images are working, regardless of if ImageCache is used or not. ...
0
votes
1answer
43 views

How to avoid Pathologic module to change a javascript src value?

I need to insert a javascript code in a textarea field of a node. This one: <script type="text/javascript" src="http://www.avaibook.com/js/avaibook.js"></script> The problem is that ...
0
votes
1answer
238 views

Views-overriden taxonomy/term page returns not found

I am trying to override the default taxonomy/term/xxx page with a page created by views. My view: I have followed the usual instructions with using url taxonomy/term/%, gave it a contextual filter ...
2
votes
1answer
116 views

Changing automatic URL alias

I am populating a new site with my old site's content (i.e copying it) and wanted to make sure all the URLs will be the same. At the momement my old path is name.com/work/sony-folklore and and the new ...
1
vote
1answer
66 views

Is it possible to use a path like that : user/%user/word with MENU_NORMAL_ITEM instead of MENU_LOCAL_TASK

i hope you understood the title of my topic because i have difficulties to express this problem in english. I would like to change the menu item which is a tab (saved searches) and put it on my menu ...
2
votes
1answer
49 views

Is registering the path 'node/%/ajax' bad practise?

Would anyone say that registering the path 'node/%/ajax' would be bad practise, potentially causing trouble for other modules that takes the easy path to implement AJAX functionality on node links? ...
1
vote
3answers
65 views

How to hide or keep away /node

I want to avoid the URL pointing to a node on my site contains the "node" part (e.g. http://example.com/node/1). Is it possible?
0
votes
0answers
18 views

Adding Views in Taxonomy Tags

I have created a views and want to apply it for a Taxonomy Tags, but i can't understand how to configure its path. I have tried with this path /news-tags/%/term but it did not works. any ideas? Thanks ...
0
votes
1answer
89 views

Should I disallow drupal path or alias by robots.txt?

I have 2 languages enabled on my site English and Japanese. Japanese is the default and English has prefix "en". I want search engines to crawl one View page only in Japanese. So I decided to use ...
0
votes
2answers
855 views

Custom error page: The path is either invalid or you do not have access to it

I'm trying to add a custom page, by using admin/config/system/site-information When I enter the field, as follows: Default 404 (not found) page http://mysite.com/errors/404.html It shows the ...
0
votes
0answers
43 views

Flash files with preloader in Drupal

A Flash file is put in the node via IMCE editor. It is a holder file that load another SWF file. Whatever I do, I can't get the SWF to load the main file. I suspect something is wrong with the paths. ...
0
votes
2answers
250 views

Views - path field gives wrong url

I made change in setting.php for base url $base_url = 'http://www.example.com/drupal Pattern for this content type paths are [node:title] pathauto works ok, in the database path is exactly as ...
0
votes
1answer
39 views

Right way of data organasing and structuring

I have the following structure of the site that is revealed in main menu hierarchy: News news category 1 news category 2 Documents document category 1 document category 2 ...
0
votes
0answers
57 views

URL Pattern For 5 Term Parents Taxonomy

I know how to configure the path for 4 or 5 Term Parents Taxonomy . I have used this code: [term:vocabulary]/[term:parent:parents-all]/[term:name] But this is not works for 5 Term Parents Taxonomy ...
1
vote
1answer
88 views

Getting the base drupal dir in JavaScript

I am writing a module that does ajax calls through the uses of javascript (not the Drupal ajax engine) to its Drupal installation, which in my case is {host}/drupal7. My Ajax call should call ...
1
vote
1answer
67 views

how to use images uploaded to public://

with a form I've got the possibility to upload images, this is the piece of code that says where the files go: '#upload_location' => 'public://', this is the piece of code which generates the rows ...
0
votes
1answer
93 views

Drupal path linking to wrong content

I have a content type for news. All my news nodes use the pathauto path: "node/[title-raw]". However, when I click to go to view any of my news items, instead of displaying the news item, the page ...

1 2 3