Announcement

Collapse
No announcement yet.

Calling another html file from Act primary templates?.

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

    Calling another html file from Act primary templates?.

    Within my website on the right hand side is a java script scrolling marquee. To achieve this I had to insert the code into the two Act primary templates. As it is quite complex to update this I would like to insert the javascript code into another html file and then call the file from the Act primary templates. Anyone got any nidea how to do this?.

    Thanks in advance
    MJ

    www.OneStopSafetyShop.co.uk

    #2
    Create a new HTML page and call it marquee.html

    Create a new CUSTOMVAR under Advanced | Custom Properties and call it MARQUEE. Edit the Act_Primary.html template and insert CUSTOMVAR:MARQUEE to the appropriate place.

    If you want the marquee to appear on every page go to Design | Options | Site Defaults and add a new property for MARQUEE and specify the value marquee.html and check the "use as CUSTOMVAR" , "file name" and "use file content" boxes

    then to change the marquee text all you need to do is edit the marquee.html page and upload with Actinic


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Originally posted by jont
      Create a new HTML page and call it marquee.html

      Create a new CUSTOMVAR under Advanced | Custom Properties and call it MARQUEE. Edit the Act_Primary.html template and insert CUSTOMVAR:MARQUEE to the appropriate place.

      If you want the marquee to appear on every page go to Design | Options | Site Defaults and add a new property for MARQUEE and specify the value marquee.html and check the "use as CUSTOMVAR" , "file name" and "use file content" boxes

      then to change the marquee text all you need to do is edit the marquee.html page and upload with Actinic
      I have tried this and also tried adding the links manually to the template but just can not get it to display that way.
      Absolutely baffled by this one.

      thanks

      Comment


        #4
        You will need to copy the Marquee.html file into your Actinic PreviewHTML directory to see it functioning in the offline preview.

        Does this help.
        Bill
        www.egyptianwonders.co.uk
        Text directoryWorldwide Actinic(TM) shops
        BC Ness Solutions Support services, custom software
        Registered Microsoft™ Partner (ISV)
        VoIP UK: 0131 208 0605
        Located: Alexandria, EGYPT

        Comment


          #5
          Originally posted by wjcampbe
          You will need to copy the Marquee.html file into your Actinic PreviewHTML directory to see it functioning in the offline preview.

          Does this help.
          Yup, tried that and also tried it on the live site (uploaded the html file) but still does not work, think it maybe because it's javascript. Wondered if you had to call the javascript itself and not the html?.

          Thanks

          MJ

          Comment


            #6
            You could just use "NETQUOTEVAR:INCLUDE filename.html". Simply put it in the template where you want the content to appear and actinic should include it when building the pages.

            Mike
            -----------------------------------------

            First Tackle - Fly Fishing and Game Angling

            -----------------------------------------

            Comment


              #7
              Thanks, that one worked.

              Rgds

              MJ

              Comment

              Working...
              X