Modifying EP Group web pages

About the website

  • The website uses Cascading Style Sheets (CSS) to help ensure that pages created by different authors have a more consistent look.
  • Pages are created on the fly with PHP (no Java or JavaScript used). The website template which all main web pages are based on includes a navigation bar.
  • You have been given read/write access to the directories and files that you have been assigned to allow you to update your web pages at your own time. Symlinks are not allowed from your user area to ensure that our website is not affected by any home file-system difficulties.

Source web pages are now accessible by executing the webshell script from your desktop. On running the webshell script, the web server's home area will be mounted on your desktop and you will be placed directly in the $WEBROOT (/home/webmain/html) directory. When you exit from that shell, it is automatically unmounted. This leaves the web server to do its main job of serving web pages.

How to make changes

You can make use of your favourite web page editor (e.g. Mozilla / WebMonkey Composer, Frontpage, etc.) but please note the following:
  • Avoid using the
    <font>
    tag.
  • Make use of header tags like
    <h1>, <h2>, <h3>
    to control text size.
  • Preferably write in XHTML (i.e. remember to close your tags).
  • The website template only requires XHTML code between and in your web page. It will also accept fully-formed web pages but the look of the generated page may be affected due to certain parameters in the other sections of the web page.
  • To create links to web pages that make use of the website template (i.e. same look with navigation bar), define them like this:
    <a href="index.php?page=XXXX"></a>
    
    ,where XXXX is the pathname of the file (excluding its extension) below $WEBROOT (e.g. exp/ATLAS/newlink). For security reasons, the extension is assumed to be .html. Links to web pages not using the website template can be defined as per normal: For internal pages (NB: extension is required)
    <a href="path/relative/to/current/page/link.html"></a>
    

For external pages

<a target="_blank" href="http://atlasinfo.cern.ch/Atlas/public/Welcome.html"></a>

If you want to add .php files, you need to let me know as I maintain a control list of allowed pages.

In web pages with or without the website template, images are specified with its location relative to the current page. For example:

<img src="path/relative/to/current/page/picture.jpg" alt="DESCRIPTION_OF_PICTURE" />

For accessibility, most images have been given the ALT tag. If modifying/replacing any pages, do remember to include the ALT tag.

Tips

  • When using the website template, keep web pages simple and avoid using tables as layout mechanisms.
  • Avoid using more colours than necessary.... No flashing text please!
  • Avoid spam by encoding your e-mail address. Try out the CERN e-mail encoder.
  • Avoid JavaScript in your webpages.
  • Java is not permitted.

-- ChunLikTan - 09 Feb 2010

Topic revision: r3 - 04 Oct 2017 - 13:08:21 - TWikiAdminUser
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback