Closed (fixed)
Project:
NodeSymlinks
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 May 2011 at 10:00 UTC
Updated:
18 May 2012 at 09:03 UTC
Are there any plans on this?
Comments
Comment #1
hnln commentedsub
Comment #2
wojtha commentedJop, I've started local D7 branch month ago, but I'm very busy these days... but I'd like to create at least dev version ASAP.
Comment #3
aleksandar.jakovljevic commentedsub
Comment #4
Miczka commentedsubscribed
Comment #5
jonasdowney commentedsubscribe
Comment #6
FreeFox commentedI would love to see this for D7. Hope you get some time someday :)
Comment #7
glenn_jones commentedHi guys,
Thanks for this great module. You have no idea how this module could solve complex problems.
Only... A port to Drupal 7 would be very useful.
Any idea when you would get this done?
Thx on front,
Glenn
Comment #8
dr0bz commentedsub
Comment #9
mxtPLEASE, port this module to Drupal 7 !!!
Thank you very much for your work
Comment #10
Wolfgang Reszel commentedDoes anyone know an alternative for D7?
Comment #11
wojtha commentedI've just commited initial port to D7 version. Sorry that it took so long, but there were massive changes in the Drupal API and the supported modules (Token, Pathauto) and I'm not using this module on any of my sites currently so it has been pure volunteer contribution.
The architecture doesnt change much, but as you can see from the Git statistics, the port caused changes in the 70% of the code:
The current status of the NodeSymlinks 7.x could be considered as ALPHA version, but I leave it as snapshot release only until I resolve the upgrade path from the D6 version.
Comment #12
Wolfgang Reszel commentedI just get this error:
Parse error: syntax error, unexpected T_FUNCTION in sites/all/modules/nodesymlinks/nodesymlinks.inc on line 322
EDIT: It was an empty line, after deleting it, I get no error. Strange.
Comment #13
wojtha commentedAre you sure it was an empty line?
The erro is caused this is due to PHP 5.2 incompatibility. I'm using an anonymous function syntax which has been introduced in PHP 5.3 at nodesymlinks.inc on line 322.
Change the line 322 to the following:
- $nodesymlinks = array_values(array_filter($nodesymlinks, function($x) {return $x['delete'] != 1; }));
+ $nodesymlinks = array_values(array_filter($nodesymlinks, create_function('$x', 'return $x[\'delete\'] != 1;')));
Comment #14
Wolfgang Reszel commentedOops, you're right. Don't know why I though it was empty. ;-) Thanks for helping.
Comment #15
Wolfgang Reszel commentedHow can I alter the Node/Page title which NodeSymLinks generates for Symlinks? I tried template_preprocess_node() and hook_node_view() both in template.php and a separate module with higher weight. I always get the original node title.
Comment #17
mraichelson commentedIf this module depends on a version of PHP can we add the php property to the info file to flag the required version?
(There's info in the Writing .info files documentation.)
Comment #18
wojtha commented@mraichelson I'm going to remove the PHP 5.3 dependencies since it could be limiting and there is only one place which needs PHP 5.3 - the custom array filter function.