Announcement

Collapse
No announcement yet.

/acatalog/ folder name variable

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

    /acatalog/ folder name variable

    Would it be possible to make the sData column field in the [Setupinfo] table, using nID of 350 for sName of sCatalogDir (i.e. the site folder name) a variable accessible in Actinic?

    This might be handy for people who have changed the acatalog to something else and perhaps require access to the folder name for other scripts or any custom links/scripts they might have added in Actinic.
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    #2
    Yes please. I have spent the last two days trying to work out how to access this very information in an online site.
    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


      #3
      Wouldn't the base href change to suit, so automatically done for you?

      Comment


        #4
        Home page BASE HREF does not have /acatalog/ in it though - this was what prompted the question as I had thought of that, however, it would still be handy to have!
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment


          #5
          The problem here, and the reason for Fergus post, is that unless Actinic provides a sure way to surface the information via an Actinic:variable or whatever, then what works on one site might not work reliably on another.

          We all want our add-ons to work reliably across multiple sites without having to do individual site customisations.
          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


            #6
            I use the CatalogURL variable quite a lot which gives you the full address of the store directory. Is this any use?

            Comment


              #7
              Is it available for query by an online Javascript?
              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


                #8
                Originally posted by cdicken
                I use the CatalogURL variable quite a lot which gives you the full address of the store directory. Is this any use?
                It could be used.
                You could have a little PHP code that stripped out the foldername to make it accessible to any scripts prior to uploading.
                Fergus Weir - teclan ltd
                Ecommerce Digital Marketing

                SellerDeck Responsive Web Design

                SellerDeck Hosting
                SellerDeck Digital Marketing

                Comment


                  #9
                  Is it available for query by an online Javascript?
                  It can be used anywhere - offline or online.

                  Comment


                    #10
                    Originally posted by cdicken
                    It can be used anywhere
                    ..... in Actinic though - don't go trying it in the park!

                    Code:
                    <actinic:block php="true" >
                        $foldername = explode('/','<actinic:variable name="CatalogURL" />');
                        $foldername = $foldername[3];
                        echo $foldername;
                    </actinic:block>
                    drop that in wherever you want the folder name to appear.
                    Crude, but effective.
                    Fergus Weir - teclan ltd
                    Ecommerce Digital Marketing

                    SellerDeck Responsive Web Design

                    SellerDeck Hosting
                    SellerDeck Digital Marketing

                    Comment


                      #11
                      Hmm - so is that a definite no to the original request then Chris?
                      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


                        #12
                        I'll raise a bug to get the variable added, but it probably won't be in the first production release though.

                        Comment


                          #13
                          Thanks Chris.
                          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


                            #14
                            A ha - turns out there is a variable. Try 'CatalogDirectory'. It will appear as '.' in preview, but include the correct value online.

                            Comment


                              #15
                              Originally posted by cdicken
                              A ha - turns out there is a variable. Try 'CatalogDirectory'. It will appear as '.' in preview, but include the correct value online.
                              Excellent. Nice one Chris.
                              Some interesting naming conventions there....... it's called "folder name" in network setup, sCatalogDir in database and CatalogDirectory as the variable name. Not making it easy for us here
                              Fergus Weir - teclan ltd
                              Ecommerce Digital Marketing

                              SellerDeck Responsive Web Design

                              SellerDeck Hosting
                              SellerDeck Digital Marketing

                              Comment

                              Working...
                              X