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.
1) Create a feed and save it in a category
2) The next time you go to edit the feed, the category is listed as "none"
Comment | File | Size | Author |
---|---|---|---|
#14 | aggregator2_2.module | 86.66 KB | Ron Williams |
#11 | aggregator2-remember-feed-taxonomy.patch.txt | 1.49 KB | sillygwailo |
#10 | aggregator2_form.patch | 624 bytes | Steve Dondley |
#4 | aggregator2.patch | 1.06 KB | Steve Dondley |
Comments
Comment #1
Steve Dondley CreditAttribution: Steve Dondley commentedThis problem was caused by me. I had the vocabulary set to "feed item" and not "feed".
Comment #2
Steve Dondley CreditAttribution: Steve Dondley commentedUgh, this is confusing. This bug does, in fact, apply to the "item categories" selection.
Comment #3
Steve Dondley CreditAttribution: Steve Dondley commentedComment #4
Steve Dondley CreditAttribution: Steve Dondley commentedHere's a patch.
Comment #5
hintbw CreditAttribution: hintbw commentedTested this patch on 4.7 final (with clean urls on) and it keeps the items category information and applies to new feed items. +1 for committing the patch
Comment #6
bkark CreditAttribution: bkark commentedI applied the patch but am still having problems when trying to select multiple feed item categories...it's only saving one of the categories. It looks like the one being saved is the first selected category in the list.
Comment #7
srodriguez CreditAttribution: srodriguez commentedI am having the same problem with 4.7. It adds the tags the first time around but when the feed is updated afterwards the tags for each feed item don't show up unless I manually update each feed, which won't work since my new site revolves around tags. I tried the patch and it seemed to make the feed item tags disappear from the feed edit page. I am trying to figure out why the first time it works and gives the appearance of working well but then breaks after cron runs.
Comment #8
sillygwailolivvylove: that's a separate issue, which is at http://drupal.org/node/62794
I tested the patch offered and it fixes this issue, that is feeds not remembering which category. +1 for committing.
Comment #9
Steve Dondley CreditAttribution: Steve Dondley commentedI just discovered this patch does not work with vocabularies that have multi-select taxonomy structures. In other words, it only works with feeds that are assigned to one single term.
Comment #10
Steve Dondley CreditAttribution: Steve Dondley commentedOK, this patch seems to work on feeds with more than one term associated with them and even with more than one term across different vocabularies.
Beyond that, I have not tested to see if it works with synonymous terms and other advanced taxonmy hierarchies.
Comment #11
sillygwailoThat last patch requires the patch before it. Here's a combined patch against the CVS version (that is I applied the first patch, then the second patch, and got a diff from the CVS version of aggregator2.module) which seems to work with both a single taxonomy term and multiple terms.
Comment #12
Steve Dondley CreditAttribution: Steve Dondley commentedOops. Thanks for backing me up, Richard.
Comment #13
jivyb CreditAttribution: jivyb commentedCould someone post a file that has the complete agg2 patched module code? (not just the diff/patch)
Thanks!
Comment #14
Ron Williams CreditAttribution: Ron Williams commentedAttached is the patched file