Closed (fixed)
Project:
Domain
Version:
6.x-2.0-rc5
Component:
- Domain Views
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2008 at 20:49 UTC
Updated:
26 Dec 2008 at 16:00 UTC
Hello and thanks for a great module.
Is it possible to have a "special block request" functionality like with special page request that the content from "all" domains can be exposed in a "block" on all domains "without" restriction?
In short, we need "unrestricted blocks" on "restricted" (domain specific) pages for summary type dynamic content (e.g. last 5 comments on Dom1, most viewed top 5 on Dom2 etc.) to be put on all of the pages of all domains.
A more detailed version and a solution attempt using Panels and Views is here.
Thank you in advance.
Cagil
Comments
Comment #1
agentrickardI tried testing this early on and was not able to get it working. The node_access system is a page-level control, and so it cannot be turned on for one part of the page and off for another. Which means that the 'special page requests' style feature does not work.
One possible solution -- thought it may not work -- is to use the new Domain Views to set up Domain-based node queries, which might bypass node access. Testing of Domain Views would be a big step.
See also #319876: Domain Access 6.x-2.0 and Views 2
Comment #2
chawl commentedOk.
With "Domain" type view:
-Node, comment, etc. field types can not be defined, not useful for content.
With "Node" type view:
-A "block" is defined in views with no filters (means do not filter anything) and is exposed:
Views Block content is domain specific all the time.
-A "block" is defined in views with explicit filter "Domain: Domain ID = 1" and is exposed:
Views Block shows nothing on other domains than Dom 1.
-A "page" is defined in views with no filters and added path in "special pages" under DA settings:
Views Page shows all content for all domains (as expected)
-A "page" is defined in views with explicit filter "Domain: Domain ID = 1", D.id2,D.id3...D.id(n) and added path in "special pages" under DA settings:
Views Page shows correctly, showing all content.
-A "page" is defined in views with no filters and added views page's path in "special pages" under DA settings, views page is added in a Mini Panel "block" of Panels Module and is exposed:
Mini Panel Block (with views page inside) shows only the domain specific content.
-A "page" is defined in view with explicit filter "Domain: Domain ID = 1", D.id2,D.id3...D.id(n) and added views page's path in "special pages" under DA settings, views page is added in a Mini Panel "block" of Panels Module and is exposed:
Mini Panel Block (with views page inside) shows only the domain specific content again.
With "comment" type view:
-Same situation with "node" type views, also this type of view contains no domain filter at all.
No workaround with Domain Views path I am afraid.
I think this would be a very useful and complementary function for DA module and that's why this is intended to be a feature request.
Thanks.
Cagil
Comment #3
agentrickardI appreciate the test, but it isn't a surprising result.
The workaround is to contribute code to make Domain Views work properly to meet your needs. If you read the other thread, you'll see that it isn't finished yet.
What you are asking for is a very tricky problem. It won't just magically appear. I already tried the obvious solution, and it did not work.
You are going to have to invest some work into coding a solution, or accept that the feature will not exist. I suggest collaborating on the Domain Views module as the best path.
If you are not a coder, perhaps nonsie can help you out.
Comment #4
chawl commentedI am not really good at Drupal API yet. Though I can not contribute with a patch, an inspiring hack may be.
Thank you for your time.
Comment #5
chawl commentedThis seems Domain Views related for now, changing status.
Comment #6
agentrickardClosing this one to concentrate on Views integration.