Just checking really..

do I need to put something after [subdomain] in Pathauto for the content type I want as subdomain..?

THANKS!

Comments

vm’s picture

not sure your question makes sense.
pathauto works on the domain it is installed on, it doesn't do anything with "subdomains".

Could you please be more verbose in your question and provide examples of what you are after and what you expect ?

4haron’s picture

I can understand your confusion.

Thing is, there's a module Subdomain, which works with Pathauto. According to the info of Subdomain, I should place [Subdomain] on the path of the content type, I want to form the subdomain, which is on Pathauto.

Therefore, my question is, whether I should put just [Subdomain], or add something after to indicate the domain.tld...?

Hope this is clearer..

vm’s picture

yes. according to step6 of the readme.txt file. the [subdomain] token in token.module should handle this.

greggles’s picture

just to be clear... The [subdomain] token, which the token API exposes to Pathauto, but which is implemented by the Subdomain module. The token module itself provides relatively few tokens and they are only for core content types/taxonomies/users.

--
Open Prediction Markets | Drupal Dashboard | Learn more about Drupal - buy a Drupal Book

setvik’s picture

Hi 4haron,

Sorry for the confusion in how the subdomain module works.

First, if you are using one of the beta's or RC's, be sure and update to the latest release of the subdomain module paying attention to the upgrade instructions in the readme file.

To use Subdomain, first edit Subdomain module's settings and choose what you'd like placed on your subdomains (Organic groups and their content, node authors and their content, or taxonomy terms in a particular vocab and content associated with those terms).

Then, edit pathauto, and place the [subdomain] token at the start of any path for which you want subdomain to do its magic.

Example:
If you want to place organic groups and content on their own subdomains, choose Organic Groups as the mode in the Subdomain module's settings.

Then edit pathauto settings and place [subdomain] at the beginning of the path for Group Node paths and any group content node paths.

Hope that helps.

TeePee’s picture

Hi, apologies I know this thread is over a year old, but I figured this was relevant to what I have issue with.

I've just configured the Subdomain module all fine but when it comes to setting the pathauto path I just can't fathom how the path structure works (which I think is what the original poster was getting at).

Any chance you could you give an actual path example that would subdomain 'users' please?

I've tried various:
[subdomain]
[subdomain]/users/[user-raw]
[subdomain]/domain.com/users/[user-raw]

but none seem to work?

Many thanks in advance! :)

doublejosh’s picture

I'm looking to have my nodes of content type 'channel' end up with a URL like this...

http://category.mydomain.com/static-word/term/title-of-node

So far I've entered [subdomain]/static-word/[field_grouping-term]/[title-raw] into pathauto. When I save the URL looks right, but I'm not on the node, and the arguments are just the URL arguments rather than the node arguments-- like: arg(0)=node, arg(1)=327.

...How can I have sub-domains AND arguments past the domain within the pathauto/subdomain set-up?

savioret’s picture

I have the same problem, I'm trying to create subdomains for users and there's no way to get URL's like :

http://username.domain.com/name-of-content

if I use
http://[subdomain].domain.com/[title-raw]
I get:
http://domain.com/http://username.domain.com/name-of-content

if I use
[subdomain]/[title-raw]
I get:
http://domain.com/username/name-of-content

Any help on this, please????

savioret’s picture

I found the solution:

http://drupal.org/node/619122