hello.
is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org didn't yield anything relevant.
I don't recall if there is a direct way (ie. config option) to make the path alias textfield mandatory, but if nothing else you could use hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to make the field required.
On Mon, Jun 22, 2009 at 7:13 AM, Mohammed@atexplorer.com < mohammed@atexplorer.com> wrote:
hello.
is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org didn't yield anything relevant.
-- All The Best, Mohammed Al-shar'
-- [ Drupal support list | http://lists.drupal.org/ ]
hello William,
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
thank you. Mohammed.
On 6/22/2009 3:09 PM, William Smith wrote:
I don't recall if there is a direct way (ie. config option) to make the path alias textfield mandatory, but if nothing else you could use hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to make the field required.
On Mon, Jun 22, 2009 at 7:13 AM, Mohammed@atexplorer.com mailto:Mohammed@atexplorer.com <mohammed@atexplorer.com mailto:mohammed@atexplorer.com> wrote:
hello. is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org <http://drupal.org> didn't yield anything relevant. -- All The Best, Mohammed Al-shar' -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
William's was not suggesting to hack anything. He is suggesting to make a small custom module to add the feature you want. I think his suggestion is an excellent one actually. That's in fact how I would do it. It's about 6 lines of code altogether probably.
F
Hi Mohammed -
I think you misunderstand the hook system. It is designed so that you *don't* have to hack core files. You would implement this in your site's custom module space (if you don't have one, you can create one easily). You would then implement the hook as *your_module_name_*form_alter(&$form, $form_state, $form_id)
This is the way that Drupal is designed to be extended and is not at all a hack. You can read more here: http://api.drupal.org/api/group/hooks/6
Best, William ** On Mon, Jun 22, 2009 at 9:07 AM, Mohammed@atexplorer.com < mohammed@atexplorer.com> wrote:
hello William,
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
thank you. Mohammed.
On 6/22/2009 3:09 PM, William Smith wrote:
I don't recall if there is a direct way (ie. config option) to make the path alias textfield mandatory, but if nothing else you could use hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to make the field required.
On Mon, Jun 22, 2009 at 7:13 AM, Mohammed@atexplorer.com < mohammed@atexplorer.com> wrote:
hello.
is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org didn't yield anything relevant.
-- All The Best, Mohammed Al-shar'
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- All The Best, Mohammed Al-shar'
-- [ Drupal support list | http://lists.drupal.org/ ]
hello William and Fred,
thank you very much for the explanation! if only I can write code I will use this power of drupal extensively. any more hints or a skeleton module that I can try? unfortunately I won't be able to write this on my own, even though the code is only few lines long.
thank you both very much, and I am sorry for the miss understanding.
Mohammed.
On 6/22/2009 4:19 PM, William Smith wrote:
Hi Mohammed -
I think you misunderstand the hook system. It is designed so that you *don't* have to hack core files. You would implement this in your site's custom module space (if you don't have one, you can create one easily). You would then implement the hook as /your_module_name_/form_alter(&$form, $form_state, $form_id)
This is the way that Drupal is designed to be extended and is not at all a hack. You can read more here: http://api.drupal.org/api/group/hooks/6
Best, William *||* On Mon, Jun 22, 2009 at 9:07 AM, Mohammed@atexplorer.com mailto:Mohammed@atexplorer.com <mohammed@atexplorer.com mailto:mohammed@atexplorer.com> wrote:
hello William, thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts? thank you. Mohammed. On 6/22/2009 3:09 PM, William Smith wrote:I don't recall if there is a direct way (ie. config option) to make the path alias textfield mandatory, but if nothing else you could use hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to make the field required. On Mon, Jun 22, 2009 at 7:13 AM, Mohammed@atexplorer.com <mailto:Mohammed@atexplorer.com> <mohammed@atexplorer.com <mailto:mohammed@atexplorer.com>> wrote: hello. is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org <http://drupal.org> didn't yield anything relevant. -- All The Best, Mohammed Al-shar' -- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ]-- All The Best, Mohammed Al-shar' -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Have you looked at the Pathauto module?
(http://drupal.org/project/pathauto)
________________________________
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Mohammed@atexplorer.com Sent: 22 June 2009 14:30 To: support@drupal.org Subject: Re: [support] force users to enter path alias
hello William and Fred,
thank you very much for the explanation! if only I can write code I will use this power of drupal extensively. any more hints or a skeleton module that I can try? unfortunately I won't be able to write this on my own, even though the code is only few lines long.
thank you both very much, and I am sorry for the miss understanding.
Mohammed.
On 6/22/2009 4:19 PM, William Smith wrote:
Hi Mohammed -
I think you misunderstand the hook system. It is designed so that you *don't* have to hack core files. You would implement this in your site's custom module space (if you don't have one, you can create one easily). You would then implement the hook as your_module_name_form_alter(&$form, $form_state, $form_id)
This is the way that Drupal is designed to be extended and is not at all a hack. You can read more here: http://api.drupal.org/api/group/hooks/6
Best, William
On Mon, Jun 22, 2009 at 9:07 AM, Mohammed@atexplorer.com mohammed@atexplorer.com wrote:
hello William,
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
thank you. Mohammed.
On 6/22/2009 3:09 PM, William Smith wrote:
I don't recall if there is a direct way (ie. config option) to make the path alias textfield mandatory, but if nothing else you could use hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to make the field required.
On Mon, Jun 22, 2009 at 7:13 AM, Mohammed@atexplorer.com mohammed@atexplorer.com wrote:
hello. is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org didn't yield anything relevant. -- All The Best, Mohammed Al-shar' -- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
hello Clark.
thank you. I did, and I think it's an excellent module. however, since the site I want this functionality for is in Arabic, pathauto doesn't work very well with such characters, and I don't like the transliteration that it does.
thank you once again, Mohammed.
On 6/22/2009 4:40 PM, Clarke Robin wrote:
Have you looked at the Pathauto module?
(http://drupal.org/project/pathauto)
- From: * support-bounces@drupal.org
[mailto:support-bounces@drupal.org] *On Behalf Of *Mohammed@atexplorer.com *Sent:* 22 June 2009 14:30 *To:* support@drupal.org *Subject:* Re: [support] force users to enter path alias
hello William and Fred,
thank you very much for the explanation! if only I can write code I will use this power of drupal extensively. any more hints or a skeleton module that I can try? unfortunately I won't be able to write this on my own, even though the code is only few lines long.
thank you both very much, and I am sorry for the miss understanding.
Mohammed.
On 6/22/2009 4:19 PM, William Smith wrote:
Hi Mohammed -
I think you misunderstand the hook system. It is designed so that you *don't* have to hack core files. You would implement this in your site's custom module space (if you don't have one, you can create one easily). You would then implement the hook as /your_module_name_/form_alter(&$form, $form_state, $form_id)
This is the way that Drupal is designed to be extended and is not at all a hack. You can read more here: http://api.drupal.org/api/group/hooks/6
Best, William
On Mon, Jun 22, 2009 at 9:07 AM, Mohammed@atexplorer.com mailto:Mohammed@atexplorer.com <mohammed@atexplorer.com mailto:mohammed@atexplorer.com> wrote:
hello William,
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
thank you. Mohammed.
On 6/22/2009 3:09 PM, William Smith wrote:
I don't recall if there is a direct way (ie. config option) to make the path alias textfield mandatory, but if nothing else you could use hook_form_alter (http://api.drupal.org/api/function/hook_form_alter/6) to make the field required.
On Mon, Jun 22, 2009 at 7:13 AM, Mohammed@atexplorer.com mailto:Mohammed@atexplorer.com <mohammed@atexplorer.com mailto:mohammed@atexplorer.com> wrote:
hello.
is this at all possible? I want users to fill in the path alias field and make it obligatory. it sounds simple, but searching drupal.org http://drupal.org didn't yield anything relevant.
-- All The Best, Mohammed Al-shar'
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list |http://lists.drupal.org/ ]
-- All The Best, Mohammed Al-shar'
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list |http://lists.drupal.org/ ]
-- All The Best, Mohammed Al-shar'
The content of this email (and any attachment) is confidential. It may also be legally privileged or otherwise protected from disclosure.
This email should not be used by anyone who is not an original intended recipient, nor may it be copied or disclosed to anyone who is not an original intended recipient.
If you have received this email by mistake please notify us by emailing the sender, and then delete the email and any copies from your system.
Liability cannot be accepted for statements made which are clearly the senders own and not made on behalf of Network Rail.
Network Rail Infrastructure Limited registered in England and Wales No. 2904587, registered office Kings Place, 90 York Way London N1 9AG
-- [ Drupal support list | http://lists.drupal.org/ ]
Quoting "Mohammed@atexplorer.com" mohammed@atexplorer.com:
hello William,
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
Using hook_form_alter() doesn't ``hack core''. You create a custom module and set the form attribute to make the field required. There is no other method.
-- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/
hello Earnie
thank you very much. William and Fred have also explained this to me already, and I thank the 3 of you for leading me to this discovery which adds to the beauty of drupal in my "eyes". however, I explained to them that my only problem with this is that it requires writing code, and I don't think I can do this, even though it's just a few lines long.
thank you. Mohammed.
On 6/22/2009 7:33 PM, Earnie Boyd wrote:
Quoting "Mohammed@atexplorer.com" mohammed@atexplorer.com:
hello William,
thanks for the answer. I don't prefer to use this method as I need to hack core files. any other thoughts?
Using hook_form_alter() doesn't ``hack core''. You create a custom module and set the form attribute to make the field required. There is no other method.
-- Earnie -- http://r-feed.com/ -- http://for-my-kids.com/ -- http://www.4offer.biz/ -- http://give-me-an-offer.com/
-- [ Drupal support list | http://lists.drupal.org/ ]
If you have an eye for usability or UI design or documentation writing or some other non-coding skill, you may be able to get someone in #Drupal to code it up for you in exchange for reviewing a patch or three. There's lots of things you can do that don't involve code that Drupal desperately needs, and the currency of open source is labor. :-)
(No guarantee that it will work, but "you look at my issue and I'll look at yours" is a common arrangement.)
On Monday 22 June 2009 1:22:38 pm Mohammed@atexplorer.com wrote:
hello Earnie
thank you very much. William and Fred have also explained this to me already, and I thank the 3 of you for leading me to this discovery which adds to the beauty of drupal in my "eyes". however, I explained to them that my only problem with this is that it requires writing code, and I don't think I can do this, even though it's just a few lines long.
thank you. Mohammed.
But when the currency of open source isn't labre, it can also be, you guessed it, currency.
http://drupal.org/paid-services
Just another potential option.
Luke
On Mon, 22 Jun 2009, Larry Garfield wrote:
If you have an eye for usability or UI design or documentation writing or some other non-coding skill, you may be able to get someone in #Drupal to code it up for you in exchange for reviewing a patch or three. There's lots of things you can do that don't involve code that Drupal desperately needs, and the currency of open source is labor. :-)
(No guarantee that it will work, but "you look at my issue and I'll look at yours" is a common arrangement.)
On Monday 22 June 2009 1:22:38 pm Mohammed@atexplorer.com wrote:
hello Earnie
thank you very much. William and Fred have also explained this to me already, and I thank the 3 of you for leading me to this discovery which adds to the beauty of drupal in my "eyes". however, I explained to them that my only problem with this is that it requires writing code, and I don't think I can do this, even though it's just a few lines long.
thank you. Mohammed.
I'm looking for some ideas about how to handle overlapping markers using Gmap module. I created a support request here http://drupal.org/node/499438/ . Please respond via the issue rather than here.