Trying to make one tracker for current domain and another tracker for all domains.

Domain Views has a filter "Domain Access: Available on current domain" for this.
And Domain Access has a "special request page" where we can choose pages that will be available on any domain, no matter what domain access rules nodes have. But looks like it does not work with DA rc8

Is this a bug, or this is a feature request?

Comments

gordon’s picture

Hi,

The available on current domain really is not relevant with this module, as you can only access content which is available on the current domain.

As for the special request page, is that not the affiliate flag which show this on all other domains?

Skirr’s picture

no, it is a special request to affiliate to all domains. I would say this is ideal for "tracker for all domains". I'm not a programmer, but it looks like DA rules are switched off to urls that are listed in "special request page".

Really need this, hope you can tell, will you support this feature?

gordon’s picture

Hi,

I have looked for this feature and I can't find it, can you please tell me where it is so that I can test this functionality.

A screen shot would not go a miss either.

Thanks
Gordon.

Skirr’s picture

/admin/build/domain/settings

4th fieldset: "Special Page Requests "

also you can find about it in Domain Access readme.txt (v 1.60 2009/06/14 19:27:59) on line 692 : №4.4 Special Page Requests

Sorry, cant make a good screenshot quickly, because i use different language and theme, but i'll stick it later, if you will still need it.

gordon’s picture

Yes it doesn't support this, I would need to modify it to support this.

gordon’s picture

I have investigated this and found that the change was pretty simple. I have added these into the dev version, so if you can test this and let me know if you are having problems.

I am running it on a site and it seems ok.

Skirr’s picture

Thanks for fast approach. Sure i will test the dev version now and write back the result in few hours.

Skirr’s picture

Is this http://drupal.org/node/354403 the last release? I'm confused about the date "Last updated: January 5, 2009 - 15:04"

Skirr’s picture

sorry, duplicated post.

Skirr’s picture

I tried both versions (dev and rc1) but nothing changed. I think they don't have the modified code yet.

Skirr’s picture

Tested dev version.
Looks like "Special Page Request" now works same as in Domain Access. Thanks again for a quick response.

The only thing left to make "all sites trackers" is to make Domain Views work with Domain Advanced. Because it will use this rules only to a specific view and won't touch blocks and other content on a page. Domain Views does this already just for Domain Access, but does not work with Domain Advanced.

Is this views issue for Domain Advance project, or should i make an issue in Domain Views project?

gordon’s picture

Status: Active » Fixed

Cool, I am glad that it works for you.

The domain views will not really work as the domain adv as unlike the domain access works at the lowest level of Drupal by rewriting the SQL.

Domain access uses the node access system to restrict content to their domain, but the problem with this is that you need to apply a huge patch to allow you to access provide any other method of accessing of content like og or simple access.

I think this is wrong as you are restricting content by domain not by user. But because of the amazing hooks I am able to turn off the node access integration and then rewrite the SQL myself with the correct. And since I am not using the the node access api's domain access now works with all other node access modules without any patching of Drupal.

The problem is now that in views you are not able to select any content that is now within the current domain. What I would like is to be able to stop views from passing the query through db_rewrite_sql() and being restricted by node access or anything else that wants to alter the SQL.

Skirr’s picture

You broke my heart :(
So there is no way of doing this tracker? Maybe somehow without views?

gordon’s picture

Only as far as setting it up as a special page. Then Domain access pulls it self out. But if the views integration is using the node access table then it will not work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.