I have ABT enabled. I have created a taxonomy, and related it to a content type.

ABT lets me choose, how much I want to affect access through this relation. I can choose between "yes, restrict access even if node is not tagged", "yes, but allow access if node is not tagged" and "no".

However, when I export my content type + taxonomy with features, the value is "no", no matter what I chose.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mstef’s picture

That's cause ABT stores in it's own table, instead of the field config. This should be changed..

lise.perceives’s picture

I've tried constructing a patch along those lines. This is the first time I create a patch. I'll fix problems with it, if any occur.

lise.perceives’s picture

Status: Active » Needs review

Updating status to trigger test.

Status: Needs review » Needs work

The last submitted patch, abt-use_field_config-1834132-6713626.patch, failed testing.

mstef’s picture

You need to make the patch from inside the module directory

This is how you have it now (first line of the patch):

diff --git a/profiles/agnitio/modules/contrib/abt/abt.install b/profiles/agnitio/modules/contrib/abt/abt.install
lise.perceives’s picture

I can see, that the dev version seems to solve the same problem, but in quite a different way. However, it's not possible to roll forward from abt recommended to abt development at the moment, as there's no update function yet.

I'll hold any more code work until I've decided what to do about this regarding my own needs.

lise.perceives’s picture

Status: Needs work » Needs review
FileSize
11.62 KB

Updated patch (same code, but formated correctly).

Oops! Need to update abt.test also.

lise.perceives’s picture

abt.test corrected, trying again.

lise.perceives’s picture

Corrected error (function name beginning with $).

lise.perceives’s picture

Trying to fix one case, where 0 != 1.

lise.perceives’s picture

Trying to fix same error in another way. (Old abt way is not to save a row in abt_map, if access isn't regulated at all.)

betz’s picture

Status: Needs review » Needs work

The patch at #11 isn't exporting the abt settings for me.
Fresh install after patching abt.

lise.perceives’s picture

Did you export the field(s), that abt was related to?

What did you export?

  • adooo committed 287ce6c on 7.x-1.x
    Issue #1834132 by lise.perceives: Features does not export ABT settings
    
adooo’s picture

Category: Bug report » Feature request
Issue summary: View changes
Status: Needs work » Closed (fixed)

It should be in dev now - I'll have it in a realease after few more issues.