Closed (fixed)
Project:
Custom Publishing Options
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Dec 2011 at 21:52 UTC
Updated:
22 Jan 2022 at 10:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kevinquillen commentedNot sure if I want to take this on. Feel free to submit patches to enable this- I will be working at VBO integration in this issue.
Comment #2
kevinquillen commentedFeel free to post patches for the Drupal 6 version, it is staying as-is, security fixes only.
Comment #3
socialnicheguru commentedsorry. I have moved onto Drupal 7 since then. does it work with fasttoggle?
Comment #4
kevinquillen commentedNot too easily, it seems. Fasttoggle seems young still.
Here is a rough patch that seemed to work. I am not sure if I want to integrate directly into CPO or not, this seems a little edge case (vs Rules, Views, and Features) as it only seems 300 installations reported are using Fasttoggle. I understand the UX ability it provides, but I am not sure I want the additional overhead to maintain.
Anyway, I was able to see custom options appear in Fasttoggle and on node view. It probably won't work from the node admin content screen, because CPO is overriding it- I didn't see anything appear, anyway.
Beyond that more work would be needed to implement hook_fasttoggle_labels etc as well as throw in additional checks to see if the node viewed has the CPO option assigned to it, it shouldn't display if not. Kind of seems like a lot of code to include for this... feel free to use the dev (or 1.0 tomorrow) with this patch, it should get you going.
For now I'd like to get 1.0 up, collect feedback and let the dust settle on the full release, then I can see where we can go.
Comment #5
kevinquillen commentedI basically can't do this until Fasttoggle solidifies its base and provides integration hooks. The patch above worked when I posted it, but Fasttoggle has since changed I suppose, and I can't get the options to appear anymore.
I outlined the challenge(s) here: #785138: Support for Custom publishing options? (D6 and D7)
Comment #6
nigelcunningham commentedPlease find attached a patch I've just prepared against current Fasttoggle 7.x-1.x. I've been working on making the API more integration-friendly, and did this patch as part of my testing.
Nigel (Fasttoggle maintainer)
Comment #7
kevinquillen commentedNice work. I will get this rolled into a future release.
Comment #8
nigelcunningham commentedThanks!
Comment #9
summit commentedHi, is this finished to be rolled in now please?
Thanks a lot for doing this.
greetings, Martijn
Comment #10
socialnicheguru commentedFasttoggle has changed a little.
I can't seem to get any type of views integration with my custom publishing options and fasttoggle.
Comment #11
nigelcunningham commentedYeah - sorry. I keep working on it and trying to improve the API.
I'm currently working towards a 2.0 release. I've removed the need for the menu items and some of the functions have changed a little - I'm seeking to make the API as flexible as reasonably possible so that most if not all of the integration requirements with other modules can be easily met.
I'll seek to provide a new version soon... but I have been saying that for a few months now!
Regards,
Nigel
Comment #12
socialnicheguru commenteddoes this new patch replace the ones as part of this issue"
https://www.drupal.org/node/2297603#comment-8980879
Comment #13
nigelcunningham commentedYes, the patch in https://www.drupal.org/node/2297603#comment-8980879 replaces this one.
I'll upload it here too and close the other issue.
Comment #14
deanflory commentedThe existing patch fails with the most recent dev/1.4 of custom_pub. Needs a re-roll.
Comment #15
nigelcunningham commentedHere's an updated patch for 7.x.
Regards,
Nigel
Comment #16
deanflory commentedThanks Nigel! I will check it out.
Comment #17
deanflory commentedComment #18
vladimirausThank you for contributions.
Commited.