Skip to main content
Inspiring
September 10, 2008
Question

Outputting a certain phrase throughout a website

  • September 10, 2008
  • 1 reply
  • 327 views
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

    This topic has been closed for replies.

    1 reply

    Inspiring
    September 11, 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/
    Inspiring
    September 11, 2008
    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?