Quick Question

pfgannonpfgannon ModeratorAdministrator
is there a way to change a certain thing on multiple pages? for example if i wanted to change my logo on every page is there a way to do this without editing each individual page?

Comments

  • PythonPython Forum Leader The Royal RAM
    yes. there are a couple of ways:

    SSI - Server side includes
    This way you would put your top logo into a file on its own and then include that file into all your other files. that way when you edit the header file it changes on every page. all your pages must end with .shtml and your server must support ssi!

    PHP Includes ** Dev Dreams uses this!
    This is the same as SSI apart from the fact that your server needs to support PHP



    if you want help with doing the above just ask..

    The Royal Ram

  • ChroderChroder Senior Member The Royal RAM
    If you don't have SSI, PHP, CGI or any other server-side technology you could just put your header between (for example)

    <!-- START HEADER -->

    <!-- END HEADER -->

    then use a text editor's advanced Regualr Expression search+replace to replace the header in a bunch of files at once.
  • SEbasicSEbasic Advanced User VPS - Virtual Prince of the Server
    You can also use CSS.

    A change in a CSS file is site wide.

    CSS is by far the easiest language to use. for instance:::


    <html>
    <head>
    </head>
    <body>
    <div class="image>&nbsp;</div>
    </body>
    </html>

    and in the css...

    .image {
    background-image: url(images/filenamegoeshere)
    }

    It's THAT SIMPLE!!!!!
    Rave it up.
  • pfgannonpfgannon Moderator Administrator
    so basically for all the things you stated above... i should do them b4 i completly build my site
  • PythonPython Forum Leader The Royal RAM
    well you should just choose which method you are going to use, then build your site

    The Royal Ram

  • pfgannonpfgannon Moderator Administrator
    ok i was just wondering because i want to change alot of stuff on my site... but i guess its not possible
  • SEbasicSEbasic Advanced User VPS - Virtual Prince of the Server
    no, you can do it.

    It'll take a little while, but it's possible
    Rave it up.
  • pfgannonpfgannon Moderator Administrator
    yeah... im too lazy...
    ill just do it on my next site
    or ill just use post nuke or ill use phpnuke
  • PythonPython Forum Leader The Royal RAM
    he he, cms - the lazy way

    The Royal Ram

  • kinkkink serious member VPS - Virtual Prince of the Server
    um if you dont have a script that places the logo then youll have to do it manually
  • jmcjmc Senior Member The Royal RAM
    SEbasic wrote:
    You can also use CSS.

    A change in a CSS file is site wide.

    CSS is by far the easiest language to use. for instance:::


    <html>
    <head>
    </head>
    <body>
    <div class="image>&nbsp;</div>
    </body>
    </html>

    and in the css...

    .image {
    background-image: url(images/filenamegoeshere)
    }

    It's THAT SIMPLE!!!!!

    i like this method myself
  • kinkkink serious member VPS - Virtual Prince of the Server
    i think it depends on how your site is set up you might possibly have to go through all your html pages to effect the change or find a design include file or maybe even something else
Sign In or Register to comment.