Closed (fixed)
Project:
Node Relativity
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Jun 2007 at 09:47 UTC
Updated:
8 Sep 2007 at 19:33 UTC
Jump to comment: Most recent file
Comments
Comment #1
gregglesSorry - I don't use relativity.
In Pathauto5.x-2 the token module is used to create patterns, so if it implements the token hooks then Pathauto should be able to do something with it.
Comment #2
gregglesI realize now that was a little obtuse - when I said I don't use it I just mean that I have no idea how/if/where it could or would work with pathauto.
Comment #3
gregglesAlso, if relativity doesn't work with pathauto then that should be lodged as a feature request for relativity - not with Pathauto.
To the maintainer of relativity - there is an API.txt in the pathauto module and if you have questions on how to implement it I can answer them.
Comment #4
storbaek commentedThanks for your input so far Greggles. Another person fixed the pathauto / relativity issue by hacking the pathauto module, which I'm trying to do as well - but unsuccessfully so far. See http://drupal.org/node/151739. A search on drupal.org reveals that several persons are looking for sweet link between pathauto and relativity, as the two modules would form a perfect match together. I just hope that addon will be added to the correct module - being relativity or pathauto :-) Thanks again.
Comment #5
gregglesIndeed, the proper place to implement either (or both) the _pathauto and _token hooks is in the Node Relativity module.
Please don't change this back to the Pathauto queue.
Also, this is a feature request for that module. There is no "support" needed in this situation. The work to be done is clear to anyone who has taken the time to read the API documentation included in both of the modules.
Comment #6
owahab commentedhttp://drupal.org/node/152287 has some ideas about the same issue.
Just to prevent work duplicates, I will start with token support in relativity.
Comment #7
owahab commentedI thought about implementing simple token support and then enhance it.
Comment #8
owahab commentedAccording to greggles: pathauto will be able to "talk" to token module, I see no use to integrate with pathauto and token.
Token support will be enough.
Comment #9
owahab commentedCommitted to 2.x-dev.
If enough people said it's OK then the next release of 2.x will witness this feature.
Comment #10
darius commentedThanks, Omar. Question: do we need these settings of values to empty?
If yes, then can't you write it as loop through all the keys (from relativity_token_list, for example). This repeats a lot of lines, and relativity.module is already too long and hard to understand...
Comment #11
owahab commentedYou caught me. :)
I think we need to set the values to empty and yes it's a good idea to write more compact code.
I was trying in my patch to mimic token_node.inc which is working in a similar way and with a similar code structure. ;)
Comment #12
storbaek commented+1. I would welcome the update to the 2.x release.
Comment #13
storbaek commentedI would like to test the dev version, but does anyone know what I should write in pathauto (which uses the token module) to get the child name following the parent url?
Use case: Adding parent (e.g. parent51) www.yourhomepage.com/parent51 and adding a child (child 52) for this parent would give www.yourhomepage.com/parent51/child52.
Comment #14
owahab commentedUnfortunately, pathauto will not support tokens untill 2.x version is out (which is currently under development).
So right now we will be able only to support token module.
Comment #15
owahab commentedGrrr, let's clarify my last post:
Greggles informed me that only pathauto 2.x will be able to read tokens from token module.
And as you see, pathauto is still in 1.x, thus currently there won't be support for pathauto module in relativity.
(Hope it's clear now)
Comment #16
gregglesWell, kinda...
Pathauto 5.x-2 is in development and is available for testing: http://drupal.org/node/129349
In my tests it works reasonable well, but there are certainly some known bugs (even critical ones).
Comment #17
storbaek commentedPathauto: 5.x-2.x-dev
Token: 5.x-1.x-dev
Relativity: 5.x-2.x-dev
It should be working, but I do not seem to have pathauto and token work with node relativity - as it should. I'm using [parent-title]/[title] in pathauto, but it only adds the title of the child? Has anyone else tested this with success?!
Comment #18
owahab commentedComment #19
(not verified) commented