I Created a Content Type Named "Clan" (Group Node)
I Created a Content Type Named "Clan Post" (Standar Group Post)
Im Using "Organic Group Subdomains" mode in Subdomain module.
When I Create a "Clan" eg. "PrimeClan", It´s placed in PrimeClan.mydomain.com. It´s Ok. If I create another clan or another content type (page, story, blog, group), the URLs of those nodes are ok. But the problem begins when I create a "Clan Post" (for second time)
When I create a "Clan Post" for First Time for the "PrimeClan" or any other clan, Its placed in the correct URL eg. "PrimeClan.mydomian.com/note-title" but when I try to create another node (any type, including "Clan"), Its placed in "clan´s name of the first Clan Post.mydomain.com/node-tittle" when it Should be "name of clan that the post belongs to.mydomin.com/node-tittle" or (for any other content type) "mydomain.com/node-title".
Examples:
1.- Assume there is not any node created, then I create a Clan (GROUP) named: "SERIOUS_PPL"
url/subdomain: serious_ppl.mydomaim.com. THIS IS OK.
2.- I Create a "page" node
url/subdomain: No subdomain Because Im using "Organic Group Subdomains" mode, URL for this node is: mydomain.com/node-tittle. THIS IS OK TOO
3.- I Create Whatever Except a "Standar Group Post
url/subdomain: All OK
Troubles begin here:
4.- I create a "Standar Group Post" for any group created, eg. for the Group "COOL_PPL"
url/subdomain: cool_ppl.domain.com/node-title. This is ok
PREPARE FOR TROUBLES
5.-I create a second "Standar Group Post" for the same Group (clan) or for any other, eg. for the group "STUPID_PPL"
url/subdomain cool_ppl.domain.com/node-title. BAD. It Should be: stupid_ppl.domain.com/node-title
6.- Now, When I create any node, these new nodes (any type) are placed in: cool_ppl.domain.com/node-title
7.- I feel Frustrated and Terrible
Im using:
PATHAUTO: 6.x-1.5
OG: 6.x-2.1
SUBDOMAINS: 6.x-2.x-dev
CORE: 6.20
Note: My Drupal Site is placed in a subdirectory (D6) in the root of my "/public_html/" directory, and this is the contend of my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/D6
RewriteRule ^(.*)$ D6/$1 [L]
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | subdomain-group_post_url-1100974-2.patch | 857 bytes | dafeder |
Comments
Comment #1
visualfox commentedhello!
I ran in the same issue as yours - I think I found the culprit:
under includes/subdomain_node_group
in the function get_content_subdomain
the db_query seem incorrect but this one should fix that:
$sid = db_result(db_query("SELECT group_nid FROM {og_ancestry} og INNER JOIN {node} n ON n.nid = og.nid WHERE og.nid = %d AND n.type NOT IN ('%s')", $nid, _subdomain_filtered_content_types_sql()));
Comment #2
dafederWas having the same problem, which is definitely "major" as far as the og functionality of this module is concerned. Not sure how active the 6.x branch is these days but here is a patch.
Comment #3
dafederComment #4
jvieille commentedhttp://drupal.org/node/1077990