You can replace url's on the fly, or resave it to the database with the
following...
You can also put a around the whole thing and do it for every
record in the database
SELECT PageDataField FROM tbl_gallery
WHERE ID =
http://"; , "http://phat-links.com/page.cfm?goto=","ALL";)#>
#newPag
Tuan,
I believe the suggestion I made earlier would work for you.
-mark
-Original Message-
From: Tuan Tran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 2:15 PM
To: CF-Talk
Subject: Re: URL Structure
I do already have a disclaimer page. Lets say I have a page called
I do already have a disclaimer page. Lets say I have a page called content.cfm
and a page called disclaimer.cfm. The user will use a CMS tool to write the
content for the content.cfm page. They have no control over the layout of the
page (headers, navigation, footers, or anything like that).
Now that is rather interesting. I can see some use for that behavior.
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-
| 1 | |
- Binary Soduko
| | |
-
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confid
That is def v cool mark, I had never even thought of doing that :-)
-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED]
Sent: 10 May 2006 18:28
To: CF-Talk
Subject: RE: URL Structure
Tuan,
I'm not sure what you are trying to do, but here's a trick that all
So I'm basically trying to find a way to have the disclaimer page extract the
complete URL from the referring page (which is the page the content editor
makes).
Do you have this disclaimer page? Or are you asking how to substitute a
disclaimer page when a user clicks on a link in content made
Tuan,
I'm not sure what you are trying to do, but here's a trick that allows you
to manipulate links after the facts, as long as they are inside of "
tags.
Let's say your user put in "http://blah.com?name=joe J. Smith">Joe
J. Smith. What you want to appear is actually
http://blah.cfm?nameJoe%2
Yes, the user can view the source code which would take them out of WYSIWYG
mode. Then they would have to sniff thru all the HTML to find the link and
wrap it w/ coldfusion code before they save the document. This is precisely
something I don't want them to do because they are not developers,
The users simply uses the CMS tool and clicks on the "create hyperlink" button
and copys and paste the link in the field. The user never sees any html.
What happens after the field is submitted? I would presume that there would be
an opportunity to wrap the submitted field in an urlencodedform
The users simply uses the CMS tool and clicks on the "create hyperlink" button
and copys and paste the link in the field. The user never sees any html.
> The problem I have with this is I'm not the one putting these links on
> the page. There are users who uses a content management system that
The problem I have with this is I'm not the one putting these links on the
page. There are users who uses a content management system that enters in the
content for the website. I want to avoid making the users use ColdFusion code
b/c they don't understand it and it will complicate things for
The problem I have with this is I'm not the one putting these links on the
page. There are users who uses a content managment system that enters in the
content for the website. I want to avoid making the users use Coldfusion code
b/c they don't understand it and it will complicate things for t
Ok, this is what you want to do. I ran this test code and I get all your
second level url variables.
http://go.reuters.com/newsArticle.jhtml?type=healthNews&storyID=12037965&src=eDialog/GetContent')#">Test
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento,
Hi Tuan
Maybe something like this would help,
#i#
#i2#
This is only rough but im sure you get the jist, obviously you would need to
pretty it up and the var set would be your query string instead, i mean
there are numerous paths you could take, this was the route I initially
tho
My page would actually have this as the link
http://someurlhere.com/disclaimer.cfm?destination=http://go.reuters.com/newsArticle.jhtml?type=healthNews&storyID=12037965&src=eDialog/GetContent
The suspect the trouble is the second '?' character. It should not be allowed.
The simplest solution, b
I'm actually creating a disclaimer page that redirects the users. So the user
sees a disclaimer page indicating they are leaving the site and connecting to
an outside site. Then they get redirected to that site. For some reason my
disclaimer redirect code wasn't working correctly for links th
I think the simplest solution is to uCase the variables when you pass
them via the URL.
On 05/05/06, Tuan Tran <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>
> I'm trying to get the name/value pair from url variables. Lets say I have a
> url like this:
>
> http://someurlhere.com?Src=blahblah&story
I don't think you can - CF has always uppercased the Keys.
-Original Message-
From: Tuan Tran [mailto:[EMAIL PROTECTED]
Sent: 05 May 2006 16:35
To: CF-Talk
Subject: URL Structure
Hi Everybody,
I'm trying to get the name/value pair from url variables. Lets say I have a
url like this
> I'm trying to get the name/value pair from url variables.
> Lets say I have a url like this:
>
> http://someurlhere.com?Src=blahblah&storyID=1234
>
> Now if I do the following I'll get the name/value pair of the
> URL vars:
>
>
> #urlVar# = #url[urlVar]#
>
> My problem is the name elem
You can just parse it as a list of lists. The main list is a list
delimited by &. The sub lists are delimited by =. You would need to
urlDecodedFormat() on the right hand side.
Oh, and the variable itself comes from cgi.query_string.
On 5/5/06, Tuan Tran <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
I don't think you can. CF is case-insensitive for one thing.
It looks like case MIGHT be preserved in CGI.QUERY_STRING. So you could
try the following:
#listFirst(keyvalue,"=")# =
#listLast(keyvalue,"=")#
A couple of problems with that, of course:
- Any URL variables you've explicitly
Here is one way to loop URL var.
Name Value Pair: #namevaluepair#
Variable name: #varname# = [#evaluate('url.#varname#')#]
But the URL vars are in a structure. hmmm...
works so you can reengineer that code.
but to shorten this works
#varname#:
#evaluate('url.#varname#')#
From: "Bryan
NevermindI found it ;-)
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
-
Macromedia Associate Partner
www.macromedia.com
#i#
-Brad
> -Original Message-
> From: Bryan Stevenson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 03, 2002 4:16 PM
> To: CF-Talk
> Subject: URL structure
>
>
> Hey All,
>
> I'm having trouble finding a snippet to loop over the URL structure...any
> examples??
>
24 matches
Mail list logo