URL Field Extension
Posted: 02 June 2008 08:26 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  205
Joined  04-12-2008

Hi

Just finished creating my first extension based on this thread.

The latest version including a short documentation can be found here:

URL Field Extension for Expressionengine

I really love EE, don’t get me wrong, but one thing i have to rant about is the missing API for developers. Hooks and all are nice, but if you have use preg_replace so many parts of HTML code to build-in your functionality the happyness stops. I just hope EE 2.0 will correct this and provide a better API for developers.

 Signature 

Designchuchi | Twitter
URL Field Extension
Required Category

Profile
 
 
Posted: 02 June 2008 09:54 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5665
Joined  04-15-2006

Peter,

Let me be the first to say a very big well done on this one. A fantastic little extension that does exactly what it says on the tin and then some!! wink

Brilliant addition to ExpressionEngine. Thanks again!

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (15)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 02 June 2008 12:16 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  307
Joined  11-29-2005

Peter,

Great work.  I just posted a request for this last week, and here it is!  Bravo.

Ben

 Signature 

e x p design: a consultative approach to web site design and development.
- - -
EE Pro Network | Expression Engine Install Best Practices

Profile
 
 
Posted: 21 June 2008 10:23 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  329
Joined  04-23-2008

This might be totally missing the point of your extension, but would it be possible to add an option to remove the formatting that is produced through this field type? I wanted to do something like this:

<a href="{url_field}">Source</a>

I know this can be done with a standard text field, but I think the validation check is a good idea. I’ll be having some more novice computer users updating the site, so it would be great if the validation check can give them a sense of pattern for publishing.

Cheers!

 Signature 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana
Note to self: I am

not a nerd. I swear.
Profile
 
 
Posted: 21 June 2008 11:00 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  205
Joined  04-12-2008

Hi

I’m not aware of any formatting issues? You can chose the url_field (as any other field type) not to have any formatting.

If I type “http://www.example.com” in the url_field, the url is returned exactly as is.

 Signature 

Designchuchi | Twitter
URL Field Extension
Required Category

Profile
 
 
Posted: 21 June 2008 06:26 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  329
Joined  04-23-2008

That’s odd.. I’m not getting the same results. When I try and edit the formatting for the URL Field, it basically says that “Text formatting is not available for your chosen field type”.

When I plug in {source} into a template, which is the name of my URL field, I get this outputted:

<a href="http://hypebeast.com/2008/06/nike-blazer-lax-los-angeles-exclusive/">http://hypebeast.com/2008/06/nike-blazer-lax-los-angeles-exclusive/</a>

Seems formatting is done automatically, so I can’t specify a name for the link. Ideas are appreciated.

 Signature 

Now, if only I can combine my two favorite things in the world.. Transformers + ExpressionEngine = Nerd Nirvana
Note to self: I am

not a nerd. I swear.
Profile
 
 
Posted: 21 June 2008 06:36 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5665
Joined  04-15-2006

Try going to :

Admin->Weblog Administration->Weblog Management->Edit Preferences (Your Weblog Name)->Weblog Posting Preferences->

You should see an option that says :

Automatically turn URLs and email addresses into links?

Change that to No and see if that fixes it?

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (15)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 21 June 2008 10:58 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  205
Joined  04-12-2008

Thanks Mark, faster as usual raspberry

That should chang the behaviour indeed mr_dimsum, please report back if not.

 Signature 

Designchuchi | Twitter
URL Field Extension
Required Category

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 62620 Total Logged-in Users: 32
Total Topics: 77124 Total Anonymous Users: 17
Total Replies: 416474 Total Guests: 198
Total Posts: 493598    
Members ( View Memberlist )
Newest Members:  drizdlkkolNicolightScotixdsabojaroslawgaskakkkkSharifur Rahmanbill fredarc