Closed (fixed)
Project:
Custom Contextual Links
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Nov 2011 at 21:00 UTC
Updated:
22 May 2012 at 19:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
bmx269 commentedAre asking to have the settings exportable with Features?
Comment #2
adrianmak commentedYes, exactly.
Comment #3
bkoether commentedGood idea adrianmak,
I will add it to the roadmap.
Ben
Comment #4
bkoether commentedTop priority for version 1.2
Comment #5
bkoether commentedHope to have that in 1.3. Sorry for the delay on this feature request.
Comment #6
BarisW commentedHi Benjamin,
this is on the roadmap for a few months now. Any news yet? You've assigned the issue to yourself, which means that others won't work on it as they expect you to do it. Are you working on this? If not, I am willing to implement it.
Please let me know it you need any help.
Comment #7
bkoether commentedHi BarisW,
Life and work has me booked up quite a bit at the moment. So any help on this would be welcome.
I didn't had the time yet to start on this at all but my plan was to use CTools in order to create exportables (http://drupal.org/node/928026).
Really would appreciate your help with this!
Comment #8
BarisW commentedHi Benjamin,
no problem. I'll have a look. There is one drawback for using Ctools: all links must be identified using a system name. Which means the schema should be altered and a system name should be implemented (including in the interface). This is why Views, Rules, Context etc all use system names.
It is possible without using system names, but then the feature integration should be done manually, not using Ctools. I've wrote a blog about this: http://www.bariswanschers.com/blog/exporting-your-module-configuration-u...
I'll post a patch within a week or so.
Comment #9
BarisW commentedHi Benjamin,
here's a first patch. Features is working with this patch. I didn't implement the Ctools way, but the good old Features way. Te define whether a configuration is overridden, there should be a unique identifier, other than an ID (as said before). In my patch, I used the Title as key, which works in most use cases. However; the interface doesn't restrict you from using the same Title twice, and then the Features integration won't work.
So two things can be done:
Please test.
Comment #10
BarisW commentedI've improved it a bit more by adding a 'machine name' column that is used as unique identifier.
This patch implements te following:
Please test and let me know if it all works as expected ;)
Comment #11
BarisW commentedBy the way Benjamin. If you want, you may make me co-maintainer as well so I can help you with future development of this magnificent module. If you do, I can commit this patch myself.
Comment #12
mojzis commentedBaris, i failed to apply the patch :( is there anything special about it ? thanks
Comment #13
BarisW commentedHmm, weird. I've tried creating a new patch using git diff. Can you check if this one works?
Comment #14
mojzis commentedstill not. maybe i am doing something wrong ? i cloned master, is that where you started ?
could you be one commit ahead or something ? i dont have the features file at all. menu hook stops at 55 while you have it at 59
Checking patch ccl.features.inc...
error: ccl.features.inc: No such file or directory
Checking patch ccl.install...
Checking patch ccl.module...
error: while searching for:
return $items;
}
/*
* Implements hook_contextual_links_view_alter().
*
error: patch failed: ccl.module:59
error: ccl.module: patch does not apply
Comment #15
BarisW commentedAh, I think I found what went wrong. I've should used
git diff HEADinstead ofgit diff.This one should work.
Comment #16
mojzis commentedthe features file is OK now, but ccl.module is still a problem. can you please check why your ccl_menu ends @ line 59 ? here : http://drupalcode.org/project/ccl.git/blob/HEAD:/ccl.module its at 55 ...
sorry for all the trouble and i am really looking forward to testing this :)
Comment #17
BarisW commentedWeird. I didn't changed the hook_menu logics, only applied Drupal coding standards.
I've removed the unneeded single line on 14 and added on extra line on 56.
Maybe you can try and add the code manually? The module only needs these two extra functions:
Comment #18
bkoether commentedThanks BarisW for providing this patch.
And sorry that it took so long for me to test it and to add it to the dev branch.
Committed to 7.x-1.x-dev, will be in 7.x-1.3 (release next week).
Comment #19
BarisW commentedSweet, thanks. Next time, would you be so kind to add Proper Git Attribution, so the commit ends up on my Profile? :)
Comment #20
bkoether commentedSorry... I referenced you in the commit message but forgot about the --author flag.