Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Outputting a certain phrase throughout a website

Explorer ,
Sep 10, 2008 Sep 10, 2008
Hi, It's me again the newb.

I have another question for one of you guru's. Before I start with my questions I want to thank everyone who has helped me out in the past on this forum. I've learned alot since on this forum.

So basically I have a footer on a web site that has 7 links on it. You can view the sample template below:
http://64.128.133.196/crownhonda/2009hondapilotlx/

I have about 120 of these pages to create before we get a real coldfusion developer on staff to create a system for anybody to update them. What I'm trying to do is figure out a way to output a domain name within the footer links. For example:

www.<output>domainname</output>.com/whatever.aspx

Everyone of our clients web sites are structured the same with the same. I want to output the domainname to all the links without having to go to each and everyone of them seperate to do it.

Make sense? Help is greatly appreciate it.

Thank You

Derek Bess

299
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2008 Sep 10, 2008
#cgi.http_host# or #cgi.server_name# will do the trick, depending on how
you want the output formatted.

i will also suggest you put your whole footer in a separate file and
<cfinclude> that at the bottom of your page where you want it to appear.
that way you will always need to edit only one file.

another option, depending on your setup, may be to use OnRequestEnd.cfm
or OnRequestEnd function in your Application.cfc - achieves the same
result as <cfinclude>'ing a footer file.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 11, 2008 Sep 11, 2008
LATEST
I think the problem with the CGI is that the domain name isn't the same as where the links take you.

Is there another way to do this without using CGI?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources