Is it possible to customize the url for the journal?

I'd like to remove "e-journal" & the publication id from the url path, because I only going to publish 1 journal and the whole site will be about this journal.
Also the categories from my articles have an URL like this "/ejournal/term/2/_/taxonomy:term:14" but in pathauto I set them like this "/topics/my-topic/".

Thank you in advance

Comments

romca’s picture

Category: support » feature

hi,
sorry for the delay. I am not an user of pathauto personally, but looking at its documentation, it should be possible to change urls (ejournal is using drupal's l() and url() functions, so no hardcoded links). What is needed though, is to place pathauto rule inside of the pathauto module. Ejournal is not enhancing node module, not even taxonomy or user modules (even though we use them).

I am changing the category to feature request, it can be done for both for d5 and d6, i can't promise anything though for now. If you want to go ahead, please post it back to the queue.

The code can be in the ejournal core, but I would prefer to place the code in a separate inc:

from the docs:
>>
Ideally this code will be integrated into a module, but a developer may extend
a module they don't maintain by implementing these functions in a file
of the form pathauto_.inc in the pathauto directory.
<<

or we can use the ejournal's plugin autoloading

What i don't understand is this bit:
>>
Note that as of Pathauto 5-2 this API is vastly simplified. If all you want is
to enable tokens for your module you will simply need to implement two functions

hook_token_values
hook_token_list

See the token.module for more information about this process.
<<

we are using tokens module but i don't know how to use it for path aliases. Somebody would have to do a little research, that would be nice.

Southpaw’s picture

*Bookmarked*

romca’s picture

Status: Active » Postponed (maintainer needs more info)
drein’s picture

Yes, this is a cool feature.
I have the same problem, in the configuration menu, when you have to type title of journal and web page where store journal, it doesn't work. Obviously, I can go to example.com/ejournal/1, but not ejournal.com/name_of_journal.
I have pathauto installed, but, I don't know if I shoud configure something about ejournal in that module.

Anyway, I want to thank you for having solved the 2 3 bugs that I reported last week, so ejournal becomes my favourite module for this kind of content.
Still thanks.