You can replace url's on the fly, or resave it to the database with the
following...
You can also put a cfloop around the whole thing and do it for every
record in the database
!--- GET ALL PAGES WITH BAD URLS FROM DATABASE ---
CFQUERY Name=SetURL datasource=#Application.Datasource#
SELECT
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,
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 a/
tags.
Let's say your user put in a href=http://blah.com?name=joe J. SmithJoe
J. Smith/a. What you want to appear is actually
a
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
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 allows you
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
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).
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
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 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
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
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
[urlVar]#/cfoutputbr /
/cfloop
My problem is the name element doesn't keep the same case as the actualy url
variable name. Src and storyID gets displayed as SRC and STORYID in the
output. How can I keep the case the same when I loop thru the URL structure
?
-Original Message-
From: Tuan Tran [mailto:[EMAIL PROTECTED]
Sent: Friday, May 05, 2006 11:35 AM
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:
http://someurlhere.com?Src=blahblahstoryID=1234
Now if I do
]#/cfoutputbr /
/cfloop
My problem is the name element doesn't keep the same case as the actualy url
variable name. Src and storyID gets displayed as SRC and STORYID in the
output. How can I keep the case the same when I loop thru the URL structure
]#/cfoutputbr / /cfloop
My problem is the name element doesn't keep the same case as
the actualy url variable name. Src and storyID gets
displayed as SRC and STORYID in the output. How can I keep
the case the same when I loop thru the URL structure?
You can't, really. CF doesn't think
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
as SRC and STORYID in the
output. How can I keep the case the same when I loop thru the URL structure?
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239620
Archives: http://www.houseoffusion.com/cf_lists
]
Sent: Friday, May 05, 2006 11:35 AM
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:
http://someurlhere.com?Src=blahblahstoryID=1234
Now if I do the following I'll get the name/value pair of the URL vars
My page would actually have this as the link
http://someurlhere.com/disclaimer.cfm?destination=http://go.reuters.com/newsArticle.jhtml?type=healthNewsstoryID=12037965src=eDialog/GetContent
The suspect the trouble is the second '?' character. It should not be allowed.
The simplest solution,
Hi Tuan
Maybe something like this would help,
cfset ourString = Src=blahblahstoryID=1234Yahoo=hello
cfloop list=#ourString# index=i delimiters=
cfset ourString2 = #i#
cfoutput#i#/cfoutput/br
cfloop list=#ourString2# index=i2 delimiters==
cfoutput#i2#/cfoutput/br
/cfloop
hr
/br
/cfloop
Ok, this is what you want to do. I ran this test code and I get all your
second level url variables.
cfdump var=#url#
cfoutput
a
href=http:url.cfm?destination=#urlEncodedFormat('http://go.reuters.com/newsArticle.jhtml?type=healthNewsstoryID=12037965src=eDialog/GetContent')#Test/a
/cfoutput
Hey All,
I'm having trouble finding a snippet to loop over the URL structure...any
examples??
TIA
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED
cfoutput
cfloop collection=#url# item=i
#i#
/cfloop
/cfoutput
-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
-
Vancouver Island ColdFusion Users Group
Founder Director
www.cfug-vancouverisland.com
- Original Message -
From: Bryan Stevenson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, September 03, 2002 1:16 PM
Subject: URL structure
Hey All,
I'm
PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: URL structure
Date: Tue, 3 Sep 2002 13:16:04 -0700
Hey All,
I'm having trouble finding a snippet to loop over the URL structure...any
examples??
TIA
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
t
26 matches
Mail list logo