Announcement

Collapse
No announcement yet.

Image Paths In Actinic Generated Javascript

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

    Image Paths In Actinic Generated Javascript

    Hello Actinic Community!

    The current Actinic site I am developing includes Javascript which references the child_sections[n] variables.

    My customers images are in a sub-directory under Site1.

    The values placed in child_sections[n].sImage do not include the sub-directory, and so I cannot preview the images within the Actinic application.

    Is there a way to get the preview to place the correct path within the value of child_sections[n].sImage or do I have to have the customer move all of the images to be directly in Site1?...

    #2
    Since you are using JavaScript why not do something like

    var imageprefix = location.href.indexOf('PreviewHTML') > -1 ? '../myimagepath/' : '';

    and then concatenate imageprefix with your image name.

    Alternatively keep a copy of these images in PreviewHTML.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Good Idea Norman

      Norman - great idea to do the Javascript href.

      Thanks for the inspiration!

      click-through.

      Comment

      Working...
      X