I have one main domain and one affiliate domain.
One the affiliate domain I have a view that lists the latest blog post listed on the main domain. I want that when they click on the view listing the latest blog link, the blog post will load in the original domain (redirect).
The problem Im having is for the view to display this latest blog post, it must be assigned to both domains for the view to use it. When the "Link this field to its node" is checked in the view setup, it displays the blog post in the affiliate domain instead of redirecting to the original domain.
I have the Domains source module enabled but that isnt doing the trick .
Comments
Comment #1
agentrickardI don't follow what you are trying to say here.
If the post is only assigned to the main domain, then all links to it _should_ point to that domain. Because it is not normally visible on any other domain unless it is marked 'send to all affiliates.'
To get this working as you expect is very complex, and requires treating your View page as a 'special page request' in the DA settings, or by marking this content as 'send to all affilaites'. Then you have to provide your own filter. The best filter would be a NodeQueue, actually.
The source domain, btw, indicates where the link should be written. If this is not working, it might be a Views bug, if the link is not properly wrapped in l() or url().
Comment #2
beyond67 commentedI decided to test out the domain source module further and seems that it is not doing what i expect it to.
I have two domains:
Domain1 (www.domain1.com)
Domain2 (www.domain2.com)
In admin/build/domain/settings I set the following:
Search Engine Optimization: Rewrite all URLs to point to a single source
Default source domain: Domain1
I create a new content Page and set the following:
Path: page1
Publishing options: Send to all affiliates [Checked]
Publish to: Domain1 [Checked]
Domain2 [Unchecked]
Source domain: Domain1
I expected that when i go to www.domain2.com/page1 that it would rewrite/redirect to www.domain1.com/page1. Since the source domain was set to Domain1.
Am i misunderstanding how this module is suppose to work?
Comment #3
agentrickardYes.
It won't redirect you, it just makes sure that links point to the proper domain. You would need a small helper module to do redirection. I think there's one in the queue, but I rejected it due to overhead.
Comment #4
beyond67 commentedI added page1 to a navigation menu found only in domain2. When that menu link button is clicked it loads up in the domain2 instead of linking to domain1.
Im not clear on what "links point to the proper domain" means.
Comment #5
agentrickard"Proper" here means "a domain where the node is visible to all users."
If you content is assigned to only to domain1, trying to view it on domain2 will generate 'access denied' unless you are user 1 or can 'administer nodes'.
Please read up on how Node Access works. You should probably also enable the new 'Enforce access rules on adminstrators' setting.
Comment #6
beyond67 commentedThanks. I will read up on Node Access. I also look forward to a redirection module, i think that could be useful.
Comment #7
agentrickardSee #255711: Redirect search engines