Closed (fixed)
Project:
Path Filter
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2010 at 22:49 UTC
Updated:
3 Oct 2012 at 15:14 UTC
Jump to comment: Most recent file
hello
is this module going to have continuity and a D7 version?
or should i stick with Pathologic or other modules?
Pathologic has the issue of not being capable of dealing with i18n.
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | pathfilter-7.tar_.gz | 13.07 KB | szaszg |
| #24 | 945512-working-d7port-D7.patch | 21.11 KB | szaszg |
| #18 | 945512-drupal-7-port.patch | 21.62 KB | boombatower |
| #16 | 945512-d7port-D7.patch | 11.23 KB | blischalk |
| #10 | pathfilter_d7.patch | 16.61 KB | blischalk |
Comments
Comment #1
hyperlogos commentedSame question, I use this module with D6 and love it and don't want to change. Not planning to move my site to D7 anytime soon but would like it for some other projects.
Comment #2
mstrelan commented+1
Comment #3
bavarian commentedsubscribing
Comment #4
freakx0 commented+1
Comment #5
blischalk commentedI have created a port of the pathfilter module for D7. I haven't contributed to a modules development before so I am not sure if this should be a patch file or how I should go about contributing it. I am attaching as a zip file for now to this thread for people to try and will contribute as a patch a little later as well.
Comment #6
blischalk commentedI have whipped up a patch that should provide an upgrade path from 6.x-1.0 to a 7.x-dev version.
Comment #7
blischalk commentedSetting status to needs review to have patch reviewed
Comment #8
mbutcher commentedblischalk: You might need to regenerate the patch against the CVS or Git version of the module in order for the patch to apply cleanly. The main difference is that the CVS copy will have a different .info file because Drupal.org automatically generates some of those values. This will typically cause the patch process to fail since it won't find the lines that it is supposed to delete.
At this point, it probably makes more sense to work with the git copy (git clone git://git.drupalcode.org/project/pathfilter.git, probably). IIRC, the process is just to clone, do your changes, and then use `git diff` to generate the patch.
Given the upheaval in the Drupal version control world (Git migration happens this week), perhaps the maintainer would prefer to just manually merge the patch you already provided.
For a first shot at providing a patch, I'd say you've done an awesome job.
Comment #9
blischalk commentedmbutcher: Thanks for the info! I will try re-rolling from the git version and re-attach.
Comment #10
blischalk commentedAttaching a patch for a d7 port created from the .git version
Comment #11
larynI had to learn how to install git and learn the basics of how to use it in order to test this on my development site, but it seems to be working fine on my installation. I'll update if I find any problems.
Comment #12
danny_joris commentedsubscribing
Comment #13
robmalon commentedSubscribing. I'm looking to add an external: functionality and analytics onclick tracking to this module. Is this the right place to do it for D7 or should I start a brand new module if a D7 Path Filter branch is not going to be made?
Comment #14
trothwell commentedsubscribing, do want. Thanks.
Comment #15
mrfelton commentedI've created a new branch for D7 development. This is based of pathfilter 6.x-2.x. Please can you re-roll your patch against that.
Thanks.
Comment #16
blischalk commentedI have re rolled the patch based on 6.x-2.x. I haven't had time to work on the tests but the files and internal paths appear to be working properly.
Comment #17
blischalk commentedSetting status to needs review.
Comment #18
boombatower commented#16 didn't apply at all.
Ran through http://upgrade.boombatower.com and applied part of #16 and rewrote quite a bit more. This seems to work for internal:. Haven't tested files stuff.
Comment #19
blischalk commentedHey boomba, just our of curiosity, what directory where you doing git apply from? To apply the patch in #16 when I created it I had the patch in the pathfilter folder with the rest of the files and ran it from there. I just repeated the same steps again and didn't have any issues. Could this be why it didn't apply for you? What kind of errors did you run into when trying to apply?
Comment #20
boombatower commented6.x-2.x checkout from path filter directory, and same with 7.x-2.x. I then re-rolled mine from 7.x-2.x.
I rejected almost every hunk.
Comment #21
kunago commentedSince I am using i18n module to manage my multilingual site, I had issues linked with grabbing the node's language. I cannot really repatch the whole module, however, the fix for me lies in the "_pathfilter_process_internal" function. The conditions that were to work with i18n were not working. I changed the code in the function to this:
This also resulted in an error in i18n module since it uses "db_result" function which is no longer present in D7. I had to create a patch for that function as well. See #1144914: Node get language cannot use db_result() function for details.
It would be nice if someone could reroll a new dev version of this module otherwise it might become quite messy while reporting what and where does not work.
Comment #22
mrfelton commentedI've committed the initial port from #18. Thanks.
@ kunago - would you mind creating a new ticket for your issue so that we can track it easier?
Comment #23
kunago commented@mrfelton - I created a new ticket: #1145450: Cooperation with i18n.
Comment #24
szaszg commentedHere is a big patch.
This rewrite some parts of pathfilter totally, but now all previous features come to live.
Changes:
- global $_pathfilter_replacement_patterns; dropped
- added a new 'global settings' (pathfilter_menu() and pathfilter_global_settings())
- added new settings 'verbosity' to reporting pathfilter actions to the user (this is only global)
- pathfilter_process() splitted up to easily use the process from 'hook_node_prepare'
- the 'currying' function(s) dropped, we do not need it...
- now, for all filter settings we can select 'default' which means global setting used
- _pathfilter_internalize() rewrote to use only one regexp
- regexp creator functions dropped
- new hook functions added: pathfilter_node_prepare() and pathfilter_node_presave() to convert links back and forth for editing and saving
- if we add links with language path prefix, pathfilter reserves it, if not (and i18 activated) use the 'old' i18 code (this fix #21 issue http://drupal.org/node/945512#comment-4418348, http://drupal.org/node/1145450)
Comment #25
kaizerking commentedthis patch @#24 should be run on which branch?
Comment #26
szaszg commentedpathfilter 7.x-1.x-dev http://drupal.org/node/1107008
But i attach a newer 'full' tgz.
Comment #27
kaizerking commentedPlease attache zip