We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Fieldtype for URLs?
I'm making a list of links in Perch Runway. I'd really like to be able to do some checks that the user has pasted in a URL correctly. Does it start with http://? Does it contain spaces? Maybe even does it return a 404 (though I'm less worried about that). Is this a good case for a Fieldtype?
Or perhaps a similar thing could be achieved with tags in my template? For example, how would I test for "does this start with http:// or https://"? (If not, I could add this myself).
Is there a way to replace something in templates? So I could remove any spaces at the start or end of the field, for example (or does that happen automatically anyway?
Want to reply to this thread?Login with Perch