Hello,
I have 2 questions:
1. My apologies if I have choosen wrong forum for my post. I think it is problem of URL fields where drupal uses URL.
How can I add "http://" automatically to the URL field at the begining of Web Link submitting form (and other drupal modules use URL field)? How can I output an error in submitting weblink form if user removes "http://" at URL field?
Drupal Web Links module doesn't open sites if user forgot to input "http://" at the begining at URL field of web-link submission form. Before I had the same problem to customise users profile with home page (URL field) field.
2. How can I limit a number of web-links categories (for example up to 3) that user has selected in web-link submit form?
Thanks,
Roman
Comments
Comment #1
ideaoforder commentedHey Roman, it looks like a few people would like me to address that http:// issue, so I'll try to get that updated sometime in the near future.
As far as permissions goes, there are a number of modules that can regulate user permissions by category--I've used taxonomy_access.module for this in a 4.7 environment and it worked great--and that was on a pretty big site with lots of different moderators/perms.
Unless you mean the max number of categories a person can put a weblink in--that I'm not sure about. But in general, Web Links uses standard taxonomy functions--so you'd want to find a module that works with taxonomy--rather than trying to change those settings for Web Links.
Cheers!
Comment #2
romandr commentedThanks,
Roman
Comment #3
rmiddle commentedOk. Need to look at defaulting to http:// in the form. Not that hard just need to create the patch.
Thanks
Robert
Comment #4
nancydruActually, Robert, the way I read the OP is that hook_validate needs to use
valid_url($url, true).@Roman: on question 2 above, that would be outside the scope of WL. There may be some other module that could do that.
Comment #5
rmiddle commentedNancyDru,
I was going to add http:// by default in new entry and add valid_url to the validation form if it wasn't already there. If you want todo be my guest I will get to it at some point.
Thanks
Robert.
Comment #6
rmiddle commentedComment #7
rmiddle commented6.x head now includes the http:// on the all new links. Working on getting that pushed into 5.x-1.20 on the 5 version.
Thanks
Robert
Comment #8
rmiddle commentedPorted to 5. So now both versions are running in CVS. Will be included in Alpha6 / 1.10.
Comment #9
rmiddle commentedComment #10
nancydrudidn't close automatically