Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Entering values into form fields

 

 


simonwh
User

Sep 26, 2006, 1:49 PM

Post #1 of 3 (1989 views)
Shortcut
Entering values into form fields Can't Post

Hi

I want to create a couple of preformatted html links on an article page for readers to copy and past into their own pages or forums.

I created a text field for each link (a basic URL, an HTML link and a UBB Code link) and entered the correct artman placeholders but the formatting is going squiffy when published on a page.

This . . .


Code
<input type="text" name="html" onFocus="this.select()" value='<a href="$url_thispage_ue$">$art_name$</a>'


turns to this . . .


Code
<a href="http%3A%2F%2Fwww.difflock.com%2Fmagazine%2Fpublish%2Farticle_17.shtml">Testing</a>


Is there any way to stop it replacing the forward slashes, etc with other characters?


ross
Staff / Moderator


Sep 26, 2006, 3:42 PM

Post #2 of 3 (1986 views)
Shortcut
Re: [simonwh] Entering values into form fields [In reply to] Can't Post

Hi Simon.

Thanks for posting!

The reason all those % symbols are coming in there is because of the _ue modifier on the url_thispage placeholder.

Basically, that’s URL encoding the value of that placeholder. What you’ll want to try here is just taking the modifier off so your code looks like this:


Code
<input type="text" name="html" onFocus="this.select()" value='<a href="$url_thispage$">$art_name$</a>'


Give that a shot and let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



simonwh
User

Sep 27, 2006, 7:06 AM

Post #3 of 3 (1974 views)
Shortcut
Re: [ross] Entering values into form fields [In reply to] Can't Post

Thanks, that worked!