Posted by MacMladen on January 4, 2012 at 9:04pm
7 followers
Jump to:
| Project: | Frequently Asked Questions |
| Version: | 7.x-1.0-rc1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
| Issue tags: | D7 stable release blocker |
Issue Summary
I'd like to change path for main faq-page and I see no option to do it?
Is it hard coded? Or is it somewhere in views?
Comments
#1
Did you look at the project page?
#2
I did and I found that I can make alias.
But I also looked at code and found that it is hard coded.
I belive that it should be possible to change path in settings or in menu like with other modules. Not a two seconds job but not too complicated either and some need it esp those building in non english language.
I've just changed module with
sed -i "s/faq-page/myfaq/g" faq.module(use anything you like instead ofmyfaq) and it works fine, but as Drupaler, I'd like it more to be done in settings.#3
So first off you should never alter a module like that. If you personally want to fix the situation you should either create a patch or wait for someone that does. Also, you say "like other modules" perhaps you should list out another module that does this but "correctly".
#4
I do not want to alter module this way, it is just a quick hack to get it easily work on my site, nothing more than that and I enclosed what I did for both developers and users that can find it valuable.
That was more a question on if the path is hard-coded or it could be changed some other way and if it is hard coded then my suggestion is that it should not be. I needed it localised but maybe some would want it other way in english as well. The ability to change it could enable other case scenario usage, perhaps.
#5
The way to use a different path the "faq-page" is to alias the page. This is how FAQ has always been, so far it's worked out pretty well. Hope this helps.
#6
Dear developer(s), I'm glad you made this module and I'm thankfull that you did. My remark was just a support question (in case I was missing something obvious). While the case was as it is, design by decision, I've just suggested a path for improvement and this is what community is all about. And while
aliasis a sort of solution, it would be nicer (and not too complicated either) to have it in field on settings page. Just a suggestion, nothing more. Thanks for your time answering.#7
I'm not sure if Stella designed the FAQ module the way she did for a reason or if she didn't think about the menu path being based off a setting in the FAQ module. Either way I think it's an interesting idea. Wouldn't mind implementing it, after running it by Stella.
Moving this to postponed until further conversation with Stella :)
#8
Any update regarding this? I'd be very willing to test a patch if needed.
#9
marking as D7 stable release blocker