Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As per this issue:
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.
Comment | File | Size | Author |
---|---|---|---|
#9 | 826964_domain_mapper.patch | 6.43 KB | blackdog |
#7 | 826964_feeds_domain_mapper_2.patch | 5.68 KB | blackdog |
#6 | 826964_feeds_domain_mapper.patch | 5.49 KB | blackdog |
Comments
Comment #1
alex_b CreditAttribution: alex_b commentedYep, 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.
Comment #2
ehudash CreditAttribution: ehudash commentedsubscribing...
Comment #3
skizzo CreditAttribution: skizzo commentedSubscribing. Anyone can provide a patch???
Comment #4
ehudash CreditAttribution: ehudash commentedI see that #632920 is fixed. Does anyone have new info regarding the Domain Access inheritance status?
Comment #5
MichelleIt'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
Comment #6
blackdog CreditAttribution: blackdog commentedHere'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.
Comment #7
blackdog CreditAttribution: blackdog commentedUpdated patch a bit. Tests still fails.
Comment #8
blackdog CreditAttribution: blackdog commentedYet 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.
Comment #9
blackdog CreditAttribution: blackdog commentedAnd the patch.
Comment #10
Ayesh CreditAttribution: Ayesh commentedSubscribing...
Patched manually. Looks like it's working fine.
Comment #11
maestrojed CreditAttribution: maestrojed commentedI 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');
Comment #12
Ayesh CreditAttribution: Ayesh commentedThis 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.
Comment #13
Summit CreditAttribution: Summit commentedSubscribing, needing Domain access feeds mapper for D7.
Comment #14
colorado CreditAttribution: colorado commentedThank you for this - I can confirm the patch from #9 works as described!
Comment #15
twistor CreditAttribution: twistor as a volunteer commented