Hello everybody,
I have a problem, maybe I did something wrong, but I do think there is some issue with the URL aliases messing up things in the database.
Let's say:
- I have a lot of URL aliases for my content pages, all the content is static except of some news pages, structured in way
LEVEL1/LEVEL2a/LEVEL3 ==> node/17
LEVEL1/LEVEL2b/LEVEL3 ==> node/25
etc... not all the pages do have the same depth.
I use this structure with the section module to have different themes for different pages in the system.
Now I want to use 2 url aliases for news, promoted on the frontpage: reading directly from the db using the URL aliases below.
LEVEL1/NEWS/news1: refering to node/17
LEVEL1/NEWS/news2: refering to node/25
PROBLEM: the original url aliases are lost, lets say the menu items do know where to find the pages, but the structure of the site is messed up.
What can I do about it, defining two url aliases to the same node without messing up things for the menu structure and the structure of my site?
Any help, ideas are welcome, TIA
Bart
Comments
Problem caused
Update on previous comment:
Problem is caused when you update an url alias already asociated to some node and you change it to another (where at that moment allready an url alias points to).
Example:
I have two nodes:
node/13 with alias company
node/14 with alias products
WITHOUT any problem I can create an alias e.g. mynews which points to node/13
BUT, when I later try to update alias mynews (because I want to highlight other story, other page) and I change the node/13 to node/14, the URL alias products is lost.
node/13 with alias company still exists, but when I re-update mynews, which points to node/14 at the moment, to node/13, the alias company doesn't exist anymore and I only have one alias left: mynews.
Is there a workaround, because I realy want to use this flexibility.
Thank you for trying to help me out,
Bart
Try the taxonomy theme module
Not sure about what the issue with the URL aliasing is, but you could try using taxonomy theme module to implement section specific themes.
Up to the time ...
Delete on update
The problem is that on the update of an alias it automatically delete the previouses...
Have a look at
path_set_custom_urlfunction and maybe comment the DELETE...Sounds great
Thank you, I'll try that one later on this day.
Bart