Questions tagged [uri]

A "Uniform Resource Idendifier" identifies a resource on a network.

Filter by
Sorted by
Tagged with
1 vote
2 answers
488 views

Is there a way to pass many arguments and not have an ugly url?

I'm writing a module that displays graphs based on a selection of arguments (an array with items to display, a daterange and some other stuff). This results in a long and ugly url. Is there a way to ...
  • 1,378
0 votes
2 answers
219 views

Change node content after logging in under the same URL alias (showing other content for authenticated users)

I would like to change node content under some specific URL aliases after the user logs in, to show some other contents for authenticated users. With a really simple example, there's a node which can ...
  • 1,801
0 votes
3 answers
2k views

What happened to the "menupath" token in the URL aliases for Drupal 7?

Again, am I blind? If my "Widgets" page is under "Products," I want the auto-alias to be /products/widgets. I can't seem to find that in Drupal 7.
  • 227
0 votes
1 answer
2k views

URL alias with taxonomy term (multiple vocabularies). How do I choose one?

I'm trying to setup a content type that has a multiple level taxonomy vocabulary assigned. The same content has a CCK taxonomy field for other use, but I don't want to use it on the URL. The problem ...
  • 1,036
0 votes
2 answers
65 views

Can a title of a node not be associated with a url?

I want to create a node with multiple urls. I don't want the title of the main node to be a url. Right now the main node is being pulled up in a list view through taxonomy. When I create multiple ...
  • 1
0 votes
1 answer
1k views

i18n, path alias doesn't work

I set path auto alias of content type page to: [language]/[title-raw] I am using Content Translation module. I created english version of selected page. Alias was generated ok. But even if I am ...
  • 4,955
1 vote
2 answers
1k views

Can two nodes have same URL using Pathauto?

I know that Drupal allows same url for multiple nodes. But I've a scenario: a registered user creates and submits an article as an unpublished node and assigned an URL by pathauto based on its title. ...
  • 1,641
0 votes
1 answer
153 views

Different blocks on the same page, dependent on source link?

Is it possible to have a page that shows (e.g.) one of three different blocks, depending on the originating page link? I'm thinking the only way to achieve this would be to use # or something similar ...
  • 161
0 votes
1 answer
894 views

Drupal 7 aliases for a certain content type producing 404

I've got a custom content type ("charity listing"). Nodes in this content type should have the automatic alias charities/view/[name-of-charity]. They do indeed have this alias, when I try to edit a ...
  • 169
1 vote
4 answers
537 views

Changing CCK field value(s) by clicking URL - possible? Advisable?

I'm trying to figure out if it's possible/advisable to create URLs that get sent out in user notification emails which, when clicked, carry out actions like changing a CCK field value. So for example ...
4 votes
1 answer
237 views

OG homepage URL

My current/default group front page is groupname/node/nid But this is quite ugly, and when clicking on the site title the user is redirected to /group which does not display the group node but only ...
4 votes
2 answers
2k views

WYSIWYG do not make url when pasted in a hyperlink

When I paste a URL into a TinyMCE editor using WYWIWYG it converts the text into a link. So http://vimeo.com/18150336 would be come <a href="http://vimeo.com/18150336">http://vimeo.com/...
  • 41
5 votes
2 answers
360 views

Build StackExchange-style url's

I'm looking for a way to build what I call 'StackExchange style' url's with Drupal 7. In my definition, that means: A node has a path alias containing both a unique identifier and the node title. For ...
  • 14.9k
49 votes
5 answers
72k views

How do I get the node ID from the URL?

So far, I came across these 3 functions in Drupal 7, but I am not really sure what the difference between them is, and which is more appropriated to get the node ID in a block preprocess function. ...
  • 2,804
4 votes
1 answer
6k views

Path (URL) to call custom module function

I am developing a custom module and I need an URL that would trigger an action when called. The purpose is for an external server to call this address passing some variables through $_REQUEST['...
3 votes
1 answer
288 views

Is it possible to customize user profile URLs based on a custom profile field?

At the moment, my user profile URLs are changed in the standard way with pathauto, e.g.: /users/user.name However, I have different types of users (e.g. students, faculty, staff, etc.). I would ...
  • 133
2 votes
2 answers
950 views

How do I create a dynamic link for a block?

I have two dynamic links that I want to put in a block, e.g. http://domain.com/series/naruto/addreview ("series" is the content type, and "naruto" is the node title), http://domain.com/node/add/album/...
  • 615
2 votes
2 answers
1k views

Views, path problem

My view path is: bartender/profiles/friends/% In View UI if I provide argument everything works ok. But in real when I go to ex. site.com/bartender/profiles/friends/20 I get a page from site.com/...
  • 4,955
1 vote
1 answer
614 views

How to use Devel module to see what creates an URL?

I want to know what creates an URL of a site for example a view,panel etc. Which command should I write on the Devel module on "Execute php" ? Thanks
  • 2,398
4 votes
2 answers
162 views

Prevent "→" from being written in URL alias

When the post title contains "→," it will be written in the URL alias. When using Boost, an URL containing "→" will not be well cached; visitors will see the uncached node. How do I prevent the "→" ...
1 vote
1 answer
168 views

Force redirect if a valid taxonomy term is not at the start of the URL?

As a follow on from this question I am trying to prepend all URLs on the site with a taxonomy term. The term itself is handled by a custom module for the most part, however elements of the site such ...
  • 1,613
2 votes
3 answers
343 views

Views: List of recent months containing nodes

Using Drupal 7, views 7.x-3.0-beta3. I am trying to make a display containing a list of links which direct users to an archive page containing posts of that month (eg. all news messages posted in ...
  • 21
0 votes
2 answers
180 views

How to detect if a user is in a specific directory/accessing a specific path?

For example I need to know if a user is in this directory http://example.com/directory; the value should return true if the use is on any of the following pages: http://example.com/directory/cars ...
  • 1,363
2 votes
1 answer
445 views

Having username as a path - Profiles 2 and Pathauto

I have a problem with integrating the Pathauto and Profiles modules. Basically, I would like to have the username as URL, e.g. example.com/username. This should link to the profile page (not the ...
  • 713
2 votes
2 answers
2k views

Redirecting a URL

I'm facing the following challenge: I am setting up a homepage for our science department using OpenScholar, which is based on Drupal 6. From what I understand, it uses vsites so that many users can ...
  • 121
1 vote
2 answers
2k views

Redirect node type to a view

I have created a view that lists all the nodes of a certain type. If you go to view the node on it's own page I would like it to forward to my view. I tried doing this using rules but as I display the ...
  • 311
4 votes
1 answer
979 views

How to convert image URLs in Drupal node's fields while rendering?

I have developed a new CCK module using Plupload where users can drag and upload images using native HTML5 apis. Since, I do not know how to drag images directly inside CKEditor, what I am doing is ...
2 votes
1 answer
329 views

How to make Drupal 6 search result URL have ".html" at the end?

I want the search result URL become http://www.site.com/search/node/Search for something.html http://www.site.com/search/node/cars.html I've looked into custom_url_rewrite_outbound() but there is ...
user avatar
1 vote
2 answers
737 views

How to make Drupal 6 search result URL use "-" instead of space?

Example of Drupal 6 search result URL is like this: http://www.site.com/search/node/Search for something How to make Drupal 6 search result URL use - instead of space? (below is an example): http://...
user avatar
10 votes
8 answers
30k views

How to detect the current URL?

I would like to add a body class in D6 if you are on a specific page(s) currently in my template.php I have: if url('the/path') { add the body class... } but that function doesn't seem to be ...
42 votes
9 answers
46k views

How do I change a theme based on the URL?

I have a Drupal instance running on example.org. Which has a theme X installed and activated. Now for a limited period an event is supposed to be held on the site for which a special section has been "...
8 votes
1 answer
8k views

What is the URL to set the admin theme?

The URL to change the admin theme isn't the same in Drupal 7 compared to 6. What is the new URL?
3 votes
2 answers
3k views

Force all links to be absolute

I've a custom module I'm sending the content of node and views by email. The module first render the node/view and wrap the results around common template. But when my views and node content are ...
  • 11.3k
2 votes
3 answers
5k views

Base url issues and subdirectories

I have a drupal site at http://example.com and a development version of the same site at http://another.example.com/subdir. When I'm working on the development version, content that references /sites/...

1
19 20 21 22
23