[drupal-devel] export on books links
Hi, As so many people, I am again a little bit annoyed about various links under a node. In this case my client wants me to remove the export as FOO links. We use books for our static part (as discussed earlier in this ML: books make perfect static sites) of the site. But, all the export as links are clutter in that case. I have made some regexps to get these links out. But that somution is subideal. I see two solutions: rewrite the _link system completely. I have not time for this. Or introduce a permission 'export books'. Please give your comments or ideas on what route to take and what has the most chance to get in. Other options are most welcome too, off course! Bèr
As so many people, I am again a little bit annoyed about various links under a node. In this case my client wants me to remove the export as FOO links. We use books for our static part (as discussed earlier in this ML: books make perfect static sites) of the site.
But, all the export as links are clutter in that case. I have made some regexps to get these links out. But that somution is subideal. I see two solutions: rewrite the _link system completely. I have not time for this. Or introduce a permission 'export books'.
Please give your comments or ideas on what route to take and what has the most chance to get in. Other options are most welcome too, off course!
There were suggestions to rethink the _link() hook, so that it returns arrays of link parameters, so that the theme can display it however it likes (ie. display incons in place of prev/next in forums or the export links for books). Goba
On 29-Sep-05, at 12:49 PM, Gabor Hojtsy wrote:
There were suggestions to rethink the _link() hook, so that it returns arrays of link parameters, so that the theme can display it however it likes (ie. display incons in place of prev/next in forums or the export links for books).
This has to be done right -- as an array of links where the theme can choose whether or not to display. Let's file it as a task, and see if we can get some people signed up to do it. -- Boris Mann http://www.bmannconsulting.com
On 29.09.2005 22:13, Boris Mann wrote:
This has to be done right -- as an array of links where the theme can choose whether or not to display. Let's file it as a task, and see if we can get some people signed up to do it.
these tasks already exist: * `let _link() return structured link info <http://drupal.org/node/636>`_: my original feature request from October 11, 2002 (!) * `Allow overriding of links returned by modules <http://drupal.org/node/18260>`_: "A separate issue was opened for this here http://drupal.org/node/18260 (which references this). Closing this one to avoid confusion." by the way: i think this issue should be followed-up at http://drupal.org/node/636 -- ax Men are from Earth; Women are from Earth. Deal with it.
Bèr Kessels wrote:
Hi,
As so many people, I am again a little bit annoyed about various links under a node. In this case my client wants me to remove the export as FOO links. We use books for our static part (as discussed earlier in this ML: books make perfect static sites) of the site.
But, all the export as links are clutter in that case. I have made some regexps to get these links out. But that somution is subideal. I see two solutions: rewrite the _link system completely. I have not time for this. Or introduce a permission 'export books'.
Please give your comments or ideas on what route to take and what has the most chance to get in. Other options are most welcome too, off course!
Bèr
ber - this is even easier than whatyou did for profile fields. hook_link() should return an array with named key for each item. all that is needed is to add the key since the hook already returns an array.
Bèr, let me know if you need someone to work on this. I think that I can justify assigning it to one of the projects I've got going right now as I have a client who needs those very links to be gone from the book module as well. -Robert Bèr Kessels wrote:
Hi,
As so many people, I am again a little bit annoyed about various links under a node. In this case my client wants me to remove the export as FOO links. We use books for our static part (as discussed earlier in this ML: books make perfect static sites) of the site.
But, all the export as links are clutter in that case. I have made some regexps to get these links out. But that somution is subideal. I see two solutions: rewrite the _link system completely. I have not time for this. Or introduce a permission 'export books'.
Please give your comments or ideas on what route to take and what has the most chance to get in. Other options are most welcome too, off course!
Bèr
Bèr Kessels schrieb:
Hi,
As so many people, I am again a little bit annoyed about various links under a node. In this case my client wants me to remove the export as FOO links. We use books for our static part (as discussed earlier in this ML: books make perfect static sites) of the site.
But, all the export as links are clutter in that case. I have made some regexps to get these links out. But that somution is subideal. I see two solutions: rewrite the _link system completely. I have not time for this. Or introduce a permission 'export books'.
Please give your comments or ideas on what route to take and what has the most chance to get in. Other options are most welcome too, off course!
Bèr
i started to write a export book permission here http://drupal.org/node/27999 but thought that this will never gets included for 4.7. so I thought i do it later (after I finished my internship)
participants (7)
-
Axel Kollmorgen -
Boris Mann -
Bèr Kessels -
Gabor Hojtsy -
Moshe Weitzman -
Robert Douglass -
Tobias Maier