As per this issue:

http://drupal.org/node/632920

It would be great to be able to inherit Domain Access settings. As someone who runs multiple sites on DA, it is very difficult to justify the use of auto undatind feeds via cron.php. because the content does not appear on the right Domain -- in many ways it is just easier to run it manually to ensure it does so. Considering so much progress has been done on getting other settings inherited, this would really fix an important drawback to to using this module with Domain Access.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Version: 6.x-1.0-alpha9 » 6.x-1.x-dev

Yep, waiting on #632920: Inherit properties from parent feed node (taxonomy, author, OG, language) - will be trivial to add after #632920 is in. Filing feature request against HEAD.

ehudash’s picture

subscribing...

skizzo’s picture

Subscribing. Anyone can provide a patch???

ehudash’s picture

Priority: Normal » Major

I see that #632920 is fixed. Does anyone have new info regarding the Domain Access inheritance status?

Michelle’s picture

It's not a proper fix but if anyone needs a bandaid: #910146: How to copy things from the feed node when there's no mapper

Michelle

blackdog’s picture

Status: Active » Needs review
FileSize
5.49 KB

Here's a patch that implements the Domain Mapper, with tests. First tests I've written though, so not completely sure I've got it right.

blackdog’s picture

Status: Needs review » Needs work
FileSize
5.68 KB

Updated patch a bit. Tests still fails.

blackdog’s picture

Yet another small update on the test, but still failing. The problem is that it seems like the domain module isn't properly loaded in the test, which makes it impossible to set the domain on the feed node, since there is no domain form. I don't have time to follow up right now, but if anyone feels like having a go, I created an issue with the Domain module to see if the maintainer could help: #1076076: SimpleTesting Domain.module.

The mapper works like a charm though.

blackdog’s picture

FileSize
6.43 KB

And the patch.

Ayesh’s picture

Subscribing...
Patched manually. Looks like it's working fine.

maestrojed’s picture

I don't think this is working for me but I am also confused by the title of this thread.

Does this patch allow you to import data using Feeds with Domain Access? I have installed other Feeds mappers before so I am somewhat confident in what I am doing. I ran the patch confirmed the new files are there but their are no additional targets in the config dropdown that would imply the domain access field.

My Problem:
I need to grant many nodes access to multiple domains and am trying to figure out the best way to do this.

Would I mess up other things if I just force it into the database?
//Assign NID 1 to Domain 3 and Domain 5.
INSERT INTO domain_access (nid,gid,realm) VALUES
(1,0,'domain_site'),
(1,3,'domain_id'),
(1,5,'domain_id');

Ayesh’s picture

This patch is not for this.
This mapper is useful when you have a feed node to create children. Not when using a stand alone form.
title is pretty correct. Inherit DA settings FROM PARENT NODE. This simply means inherit FEED NODE's(where you add feed-url or upload files) DA settings to child nodes.

Anyway, try to input DA settings as a php array and map to Domains.

Summit’s picture

Subscribing, needing Domain access feeds mapper for D7.

colorado’s picture

Thank you for this - I can confirm the patch from #9 works as described!

twistor’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)