Are there any plans on this?

Comments

hnln’s picture

sub

wojtha’s picture

Jop, 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.

aleksandar.jakovljevic’s picture

sub

Miczka’s picture

subscribed

jonasdowney’s picture

subscribe

FreeFox’s picture

I would love to see this for D7. Hope you get some time someday :)

glenn_jones’s picture

Hi 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

dr0bz’s picture

sub

mxt’s picture

PLEASE, port this module to Drupal 7 !!!

Thank you very much for your work

Wolfgang Reszel’s picture

Does anyone know an alternative for D7?

wojtha’s picture

I'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:

7 files changed, 845 insertions(+), 955 deletions(-)
 rewrite nodesymlinks.admin.inc (66%)
 rewrite nodesymlinks.js (78%)
 rewrite nodesymlinks.module (66%)

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.

Wolfgang Reszel’s picture

Title: Port NodeSymlinks to drupal 7 » Port NodeSymlinks to Drupal 7
Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Fixed

I 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.

wojtha’s picture

Are 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;')));

Wolfgang Reszel’s picture

Oops, you're right. Don't know why I though it was empty. ;-) Thanks for helping.

Wolfgang Reszel’s picture

How 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mraichelson’s picture

If 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.)

wojtha’s picture

@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.