Announcement

Collapse
No announcement yet.

Dropping the offline path for image paths, when uploading a catalog?

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

    Dropping the offline path for image paths, when uploading a catalog?

    Hello everyone -

    I was wondering if there was a way of coding, (possibly with Block if's) so that when you reference images with filenames and their directories - e.g images/image1.jpg for offline purposes e.g. to preview and see the images in Actinic - that, when the site is uploaded the directory/path string is dropped.

    IN ACTINIC -> ONLINE
    images/image1.jpg -> image1.jpg

    EXACTLY LIKE when a product image is entered or browsed for the product details part of 'Content' (with a full path to file ) and then when the catalog is uploaded (and all files are put in /acatalog/ remote folder) the image reference is automatically changed to acatalog/image1.jpg or something similar (for example).

    #2
    I'm not sure exactly what you're asking...

    If you add the files to the additional files list in Actinic then the images will automatically be uploaded to the catalog directory.

    Comment


      #3
      No blockif's needed. Actinic since V8 does this automatically.

      If you have:

      <img src="images/image1.jpg" />

      It will work just fine offline and online. Try it and see.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Hi drounding - I thought you might suggest the additional files route..

        Unfortunately it wouldn't be an option, as the images are all already in the catalog - so it would seem a little unneccessary to add them to the additional files list as well.

        I will try to explain a little more clearly.. I have thumbnail images in my Site1/Product_images/thumbs/ folder..

        To put an instant of one of these thumbs in the code so that you can preview the images/content you would therefore have (For example)

        1.
        Code:
        <img src="/Product_images/thumbs/Image1.jpg">
        When the site is uploaded I would like the code to become

        2.
        Code:
        <img src="Image1.jpg">
        or

        3.
        Code:
        <img src="acatalog/Image1.jpg">

        Of course you could use javascript to return the path and image names correctly - which could be the start to the solution - but if there is a standard way of doing this then it would be very useful.

        Does this make sense?

        To hopefully Explain further - This is standard in Actinic :

        When a product image is entered into the product details part of 'Content' (with a full path to file) when the catalog is uploaded, the image reference is automatically changed to acatalog/image1.jpg or something similar.

        Is it possible to replicate this behaviour, to automatically change (when uploading) paths in offline layouts so that when they are uploaded they point to the online remote folder.

        Comment


          #5
          See my post #3.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Sorry Norman got crossed posts there,

            So - If I have:

            <img src="/Product_images/thumbs/Image1.jpg"/>

            Then it will automatically recode to <img src="Image1.jpg"/> when I upload ???!!

            That would be great!

            Comment


              #7
              Try it and see. It would have been a lot quicker to try it than all this posting ;-)
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                I will indeed!

                Sorry if I wasted your time - better to have posted and lost than never to have posted at all.

                Thanks.

                Comment


                  #9
                  You will need to drop the first forward slash from your img tag.

                  Comment

                  Working...
                  X