Closed (duplicate)
Project:
Block edit
Version:
6.x-1.10
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2010 at 08:36 UTC
Updated:
27 Dec 2011 at 20:47 UTC
Hi
Thanks for great module - I have this awkward problem :-(
My problem: Block edits links are sent in simplenews mails - both html and text:
* [Edit]
http://mydomain.net/node/2/edit?destination=node%2F13%2Fedit
* [Delete]
http://mydomain.net/node/2/delete?destination=node%2F13%2Fedit
* [Edit type]
http://mydomain.net/admin/content/node-type/politik?destination=node%2F13%2Fedit
* [Manage fields]
http://mydomain.net/admin/content/node-type/politik/fields?destination=node%2F13%2Fedit
* [Display fields]
http://mydomain.net/admin/content/node-type/politik/display?destination=node%2F13%2Fedit
Why: I have created a newsletter type with cck node referer, which shows node teasers in mails
Current solution: Turn off block edit for teasers - which is a sad solution
Idea for new feature: Block edit links are integrated with simplenews and links are turned off for simplenews mails
:-) Bo
Comments
Comment #1
hanno commentedI have the same issue in combination with simplenews newsletters.
Edit links are sent to the subscribers when you have nodes included bij cck_nodereference and the person who sends the newsletter has node administration rights.
Comment #2
hanno commented#789804: can we add a hook_perm() for viewing block edit links partly solved this problem because permissions can be set.
Comment #3
hanno commentedI suggest we check the var build_mode to accomplish this. We could add a check in function block_edit_visible (line 243)
This solution needs testing.
Comment #4
hanno commentedFound the solution.
Below a patch that disallow the edit links to appear on print, rss, preview and other build modes. Edit links only makes sense in normal (display) mode.
line 241
Comment #5
joelstein commentedSee #812386: Disallow the edit links to appear in simplenews, rss, preview and print.