Announcement

Collapse
No announcement yet.

A seriously beautiful trick to parse ssi's through the cgi-bin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A seriously beautiful trick to parse ssi's through the cgi-bin

    I never new this was possible:
    using a customvar as you would a ssi.
    http://community.actinic.com/showthr...=parse+ssi+cgi
    (I used Jans method)

    I've always been annoyed when designing with actinic that because the cart, user login pages etc parse through the cig-bin that content I usually draw in through an ssi could not be displayed. This always meant I would have to hard code the content I usually parsed through an ssi onto pages which would go through the cgi. This in turn meant I lost the real benefit of content in an ssi which is that changes can be made to one file and effect the entire site (it also meant I would have to remember, months down the line, that this was the case, which I usually didn't).

    in short the method is:
    1.create a custom property in advanced>>custom properties (I called mine SSI)
    2.confirm you want to use this as a customvar in design>>options>>site defaults.
    3. In design> options> site defaults,
    • set the value to the page and path you wish to use as the ssi (example: ../../ssi.htm)
    • tick the boxes: use as customvar, use file name and use file content

    4. insert CUSTOMVAR:SSI into Act_Primary.html or your choice of template file.

    You can extend this further and even draw in .php files if you know how to have your server read php as html using a .htaccess file.

    ( Jan if you read this you'll know this makes a big difference to my method of displaying a random product on the homepage on a daily,weekly,monthly basis)

    regards
    bangers
    Boxhedge New Media Design
    Design and development solutions for SME's.
    Tel: 0118 966 2786
    Examples of work can be found at http://www.boxhedge.com
Working...
X