Needs work
Project:
Workflow-ng
Version:
5.x-2.x-dev
Component:
Configurable Content Links
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2008 at 17:23 UTC
Updated:
13 May 2008 at 14:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
amitaibuCan't you just add the CCL as a link with the full URL in your email?
Comment #2
nekobul commentedAlso it will be good to expose CCL tag, which can be used in actions like send email.
Comment #3
nekobul commentedI have tried adding the link, but it is displayed in the node content. If I disable the CCL access in the access control, it is not displayed in the node content, but trying to call the link results in "access denied" message.
Comment #4
amitaibuYou can theme it out in the post itself, no?
Comment #5
nekobul commentedIt is possible to theme it out, but it will look weird because the wrapping
Comment #6
nekobul commentedThe attached archive contains a couple of enhancements I have made to the cclinks module:
Please review and enjoy.
Comment #7
amitaibu@nekobul,
Please submit the patch according to these guidelines - http://drupal.org/patch/create
Comment #8
nekobul commentedHere it goes Amitai.
Comment #9
amitaibudid you patch it against 2.x-dev?
Anyway I get an error:
and 'content types' list is empty.
Comment #10
nekobul commentedAmitai,
I have patched it against 2.0 . My mistake. Please find attached the changes against 2.x.dev.
Comment #11
fago* to make $vid optional, use $vid = NULL in the function signature.
* You can set node/nid as default drupal goto path.
* Perhaps better use
<none> instead of <not show>.Comment #12
nekobul commentedI have tried your first suggestion, but it doesn't work as expected. I have link like this:
/cclinks/cclink0/99
Where 99 is the $nid. When I use $vid = NULL in the function signature, the upper link doesn't work. The original code I did sent works properly.
I didn't quite understand your second and third comment. Can you please elaborate?
Comment #13
nekobul commentedHere is the code that doesn't work, based on your suggestion:
Comment #14
fago@/cclinks/cclink0/99: It already works now when you use /cclinks/cclink0/99/0.
I've fixed the display of my above comment, sry.
The second point is about this unnecessary code:
+ if (!isset($_REQUEST['destination'])) {
+ // If destination is not selected, go to related node by default.
+ drupal_goto('node/'. $nid);
+ }
+ else {
+ drupal_goto();
+ }
Try to keep the code simple. Same issue with $vid = NULL - avoid func_get_args. It's not necessary.
Comment #15
nekobul commentedI think your suggestion about keeping the code simple makes alot of sense. Please find attached only the change in cclinks_admin.inc from not show -> none
Regards,
Ivan