Announcement

Collapse
No announcement yet.

How do I ensure images/text appear on shop homepage only?

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

    How do I ensure images/text appear on shop homepage only?



    Hello!

    I've been reading through lots of interesting and useful posts. This is my first post and I am new to Actinic so I'll apologise in advance if the answer to this is obvious!

    I've recently started using Actinic Catalog V8 in conjunction with Dreamweaver where I have my main site template. I am not sure if what I have done so far is correct, but it seems to work fine. I have inserted some script for a scroll bar and gallery in my Dreamweaver template. This is showing on all of the shop pages. However, my issue is that I only want it to show on the homepage.

    I found a section in the Advanced User Guide which explains how to achieve this. However, when I tried to follow the instructions it did not work. I kept receiving an error saying that there were 95 errors in the coding!

    To be honest, I didn't fully understand the instructions (which probably explains why it didn't work!) as the 'edit condition' box did not appear automatically. I actually went into this via the library. I'm not sure if what I did is correct. Also, I think I should have inserted the code directly into Actinic rather than in Dreamweaver?

    I am wondering if anyone can explain in 'simple terms' how I can achieve this, as I am still fairly new to Actinic and I am starting to tear my hair out!

    Any suggestions would be greatly appreciated.
    Jules

    #2
    Hi,

    You have a couple of options:

    1. create a design and apply it to the home page only

    2. create a condition around the areas of the design that you only want to show on the home page and put in the variable 'IsBrochureHomePage' - to do this within Actinic:

    - highlight the code in the layout code window
    - click the 'Insert Block' icon (green circle with +)
    - copy and paste the following into the condition window:

    <actinic:variable name="IsBrochureHomePage" />

    - click 'OK'


    If the 'condition' window does not come up it is probably because you are looking at the code in advanced view rather than simple view (to change it click on the first icon in the layout code toolbar (green square with arrows pointing inwards)).
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Condition box is still not automatically appearing..

      Hi Tracey,

      I have followed your instructions and switched the view but the condition box is still not automatically appearing, so I am not sure where to add the code. Do you have any other suggestions I could try please?

      Thanks,
      Jules

      Comment


        #4
        Hi Julie,

        I'm not sure why your condition box is not appearing if you are in the simple view, however, you can copy the following code into your layout in Actinic:

        - put this bit before the code you only want to appear on the home page

        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e">
        - put this bit after the code you only want to appear on the home page

        Code:
        </actinic:block>
        ********************
        Tracey
        SellerDeck

        Comment


          #5
          It's still not working..

          Hi Tracey,

          I have tried doing what you suggested but when I preview the pages the scroller script and the image that I only want to appear on the homepage has disappeared from every page (homepage included) Do you have any ideas?

          Thanks,
          Jules

          Comment


            #6
            Hi,

            Is this uploaded somewhere that I can take a look at it?
            ********************
            Tracey
            SellerDeck

            Comment


              #7
              Hi Tracey,

              I haven't uploaded it anywhere yet. I can send you a site snapshot if you tell me where to send it to. My outer layout including the items that I only want on the homepage has been created using Dreamweaver. Is it possible that this is causing the problem?

              Regards,
              Jules

              Comment


                #8
                Hi Julie,

                has been created using Dreamweaver. Is it possible that this is causing the problem?
                It shouldn't make any difference. How big is your snapshot? If it's less than 10MB then you can send it to tgsupport[at]actinic[dot]co[dot]uk (replace the 'at' and 'dots' for the usual).
                ********************
                Tracey
                SellerDeck

                Comment


                  #9
                  Hi Julie,

                  Looking at the snapshot, the reason that the scrolling text has disappeared from your home page is because you do not have the 'use as website home page' box ticked in the home page details | general tab. If you tick that then the scrolling text will appear - note that it doesn't appear in the preview pane but it does if I do an offline page preview.

                  I'm still not sure what the problem is with your condition editor window is not opening as it does for me. If you are in the 'advanced view' in the layout code window and you click the 'insert block' icon does anything happen? You should see:

                  <actinic:block if="">

                  </actinic:block>
                  ********************
                  Tracey
                  SellerDeck

                  Comment


                    #10
                    Hi Tracey,

                    That seems to have sorted it, thanks. I just have one more question. My plan is to integrate Actnic into my current website. So, my main homepage will stay as it is and then when people click on the 'Shop' link they will then be taken to the Actinic shop homepage. The reason I left the 'use as website home page' box unticked was because I thought it may use Actinic as my main homepage instead of the one I already have, if that makes sense. By ticking the 'use as website homepage' will this have any impact on my current website as I have outlined above?

                    The condition editor seems to be working ok now so I'm not sure what happened there! probably me!

                    Many thanks for your time and patience.
                    Jules

                    Comment


                      #11
                      If you use the page name index2.html or shop.html - or anything that is not index.html for the actinic page, then it should have no effect on your existing index.html page.

                      You will need to make your connecting link on the main page point at whatever name you end up using (but of course you already know that).
                      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
                        IsBrochureHomePage

                        I know this is an old post, but I'm trying to show some specific content and also hide some other specific content using the 'IsBrochureHomePage' variable. I am using it within the outer layout (which is custom) but every time I start up Actinic I get errors saying that the variable cannot be used here.

                        It does actually seem to work but why am I getting errors?

                        Not a problem to me but I don't want this to show up in my clients version when I ship it over.
                        Web . Design . Multimedia . Branding

                        Comment


                          #13
                          are you using the same overall layout in your brochure and catalogue pages?
                          Try wrapping your entire IsBrochureHomePage code in another blockif for PageType == "Brochure" and see if that helps.
                          Tracey

                          Comment


                            #14
                            I am using the same layout for all the pages.
                            Your suggestion for adding an the extra block if around it worked perfectly... no errors!

                            Many thanks Tracey.
                            Web . Design . Multimedia . Branding

                            Comment

                            Working...
                            X