Hi,
I've added some code to give the administrator the possibility of choosing on which node types to render the links; the patch (from "bzr diff") is attached.
There is at least one thing I know that should be added/refactored (e.g. the way to get the module options) but, first, I need to know if this is a feature you would like to add to the module, so I can work more on it.
jedihe
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | fasttoggle-645152-5.patch | 6.79 KB | traviscarden |
| #4 | fasttoggle-645152-4.patch | 6.75 KB | traviscarden |
| #2 | fasttoggle-645152-2.patch | 5.81 KB | traviscarden |
| checks.patch | 2.57 KB | jedihe |
Comments
Comment #1
jedihe commentedIt makes more sense for a patch to be marked as "needs review", I think.
jedihe
Comment #2
traviscarden commentedHere's a patch that lets you set which node options are available on a per content type basis as well as add or remove links from the node links individually on a per content type basis. It moves the settings to the content type config screen as depicted below. As a consequence of the design change, stored settings are moved into separate variables around content types, which makes it possible to separate them into individual Features modules.
Comment #3
traviscarden commentedMarked #1407222: Make Fast Toggle node links optional as a duplicate of this issue (and, by extension, #1201386: Option to hide links on pages and #1264254: Include option to hide toggle link from node.).
Comment #4
traviscarden commentedHere's an updated version of the patch that includes a little JavaScript UI enhancement that disables "Add to node links" options that aren't enabled "Togglable options". Of course the backend wouldn't add links to non-togglable options anyway, but it's a confusing user experience to be able to select them for inclusion as though it would add them.
Comment #5
traviscarden commentedOops. I found a small issue (the form was presenting the "Comment settings" option even if comment module was disabled). Here's an updated patch.
Comment #6
nigelcunningham commentedPatch applied (with small adjustments for previously applied patches). Thanks!