Announcement

Collapse
No announcement yet.

Inserting Fragment at catalog level - Section Page

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

    Inserting Fragment at catalog level - Section Page

    I want to add a fragment to my main catalog homepage. The fragment works fine on the main home page and i've just duplicated it and added it to the catalog tree. The problem arises when I try to add the layout code to the Section Page with Section Name layout. Using the <actinic:variable name="BrochureFragmentList" /> or <actinic:variable name="FragmentLayout" /> the fragment doesn't display (it is set to visible) and placing it anywhere else within the layout I get coding errors come up :

    1) The 'FragmentImageFileName' variable has been placed within the 'Standard Fragment Image' layout, but it won't work there.
    2) The 'FragmentTitle' variable has been placed within the 'Standard Fragment Image' layout, but it won't work there.
    3) The 'FragmentImageWidth' variable has been placed within the 'Standard Fragment Image' layout, but it won't work there.
    4) The 'FragmentImageHeight' variable has been placed within the 'Standard Fragment Image' layout, but it won't work there.

    Where should I be putting it and which layout can I use within the product categories? We're using them for promo banners and product information

    Thanks in advance

    #2
    It will display a fragment on that page for you as standard, no need to touch any coding, at most you will need to reverse your sub section lists so the fragment goes to the top.

    Comment


      #3
      Thanks for that, but unfortunately it just isn't displaying the fragment for me, in preview on the PC or when uploaded to the dev site.

      Comment


        #4
        You've broken something then when you touched the layouts, go into the design library and revert all changed layouts back to factory settings using the the right click menu. Alternatively, just import the snapshot you took before you started changing things.

        Comment


          #5
          I've reverted back to factory settings for 'Section Page with Section Name At the Top' and also for the 'SubSectionListTop' layout (whilst carefully keeping copies of my amended versions as the formatting is much more presentable) but neither layout have anything that includes the fragment in their original form.

          Any more ideas? trying to add the Fragment Layout again generates the errors again.

          Comment


            #6
            Why are you trying to add a Fragment Layout to the Section Layout code?
            Can you not just add the fragment from within ACtinic? Or am I missing the problem?

            Comment


              #7
              @drounding - that is the problem. I have inserted a fragment into both my root shop catalogue and into a product category in the content tree but it doesn't appear in either page.

              I want it to show at the top of the category/page under the breadcrumb trail but inserting the <actinic:variable name="FragmentLayout" /> into the 'Section Page with Section Name at the Top' or into the generates the script errors mentioned above.

              Can you advise?

              Thanks

              Comment


                #8
                Why are you messing with layouts when you were told that it does this as standard? Can you not understand that it does this as standard, the fact that it doesn't for you, is because you have played and broke it?

                Comment


                  #9
                  And can you not read? I reverted back to all the original layout settings (I'm using a template purchased from an Actinic partner BTW so you'd think they'd get this sort of thing right, and yes I have also asked them for help) and it still did not work.

                  I'm 'messing with layouts' because I stupidly thought that going on the Actinic Design Course at the Actinic offices and having the 'Actinic Design Manual' supplied on the course was kind of the point of them selling the course.

                  Excuse my honesty here but I don't have time to waste, instead of asking me the same thing again and again, telling me how to get a fragment into even the standard actinic layout, because it clearly isn't doing this as standard, would be really helpful, or let someone else help me instead.

                  I don't mean to be rude but you're not really helping.

                  Comment


                    #10
                    Your problem is very simple Laura, what actinic does as standard, your site is not. Either you or your chosen partner have therefore screwed something up. You told us initially that you'd been playing with things, in post #2 i told you it does it as standard, that should have rung a very large alarm bell in your head, that you SHOULD not need to mess with code, in post #7, it's clear you still are. If you keep playing with things in the hope they suddenly fix themselves, you'll never get there i can assure you!

                    Stop inserting anything! Your only task is to work out what you or your partner have missed off so that actinic functions are not working as they do for everybody else. My 'guess' (remember none of us have a chuffing clue what you have done!) is that you have either screwed the section name at the top layout or you have screwed your product list layout, if i had to put my house on anything i'd say youve screwed the productlist, this would also tie in with it not having been fixed in the design library as i guess you just worked on layouts in there, not list layouts which do not indicate changes in the same way.

                    Open up the product lists group in the design library and revert those 3 to factory settings.

                    One final thought, make sure you are not missing the fact that the fragment is showing at the bottom of the page, if it is and you want be the first person to do so, you just need to reverse your sub section lists like i outlined in my very first post.

                    Please bear in mind you haven't got a clue what you are doing and we cannot see it, it's a terrible combination, therefore help us to see what you are doing, better to spend 10 minutes taking some screenshots for us to see, than moaning or questioning whether i can read.

                    Comment


                      #11
                      Ok here goes... i did revert back all the layouts to factory from the design library, but this didn't make a difference so I went back to the newer ones. The Fragments are not appearing at the bottom of the pages, I did think to check that first.

                      Here's some shots of it in action :
                      Home page with Brochure Fragments working fine - the image you see here is an image in a 'special offers' fragment.



                      The copy of the fragment is in the content tree :


                      Here's the design tree :


                      Here is the code from the Section Page with Section Name at the Top Layout (which, the only change I have made to is the Sub Section List with Horizontal Dividers, so that it displays 3 sub categories in a row instead of just 1, hence the '(Copy)'. I always make a copy of a layout to ensure the originals are preserved for me to go back to if required). There's nothing here to let it display a fragment either above or below the sub section list.

                      Code:
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%200">
                      
                         <Actinic:WELCOME/>
                      
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSearchUsedOnFrontPage%22%20%2f%3e%20OR%20%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e" >
                            <actinic:variable name="SearchPageInnerLayout" />
                         </actinic:block>
                      
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22SplashText%22%20%2f%3e%20%21%3d%20%22%22">
                            <actinic:variable name="MarketingMessage" />
                         </actinic:block>
                      
                      </actinic:block>
                      
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22IsMainFormUsed%22%20%2f%3e">
                            <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />"> 
                               <input type="hidden" name="SID" value="<Actinic:Variable Name="SectionID"/>" />
                               <input type="hidden" name="PAGE" value="PRODUCT" />           
                               <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
                               <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
                               <input type="hidden" name="RANDOM" value="<actinic:variable name="Random" />" />
                               <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
                                  <!-- Hidden field when in trial mode -->
                                  <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
                               </actinic:block>
                      </actinic:block>
                      
                      <actinic:variable value="Message for Unregistered Customers" name="UnregCustomerMessage" if="%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20FALSE" />
                      
                      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e%20%3d%3d%20False%29" >
                      <h1><actinic:variable name="SectionName" /></h1>
                      <div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
                         <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%201%29%20OR%20%28%3cactinic%3avariable%20name%3d%22IsHotLinkListOmitted%22%20%2f%3e%20%3d%3d%20FALSE%29">
                            <actinic:variable name="ParentSectionListTop" />
                         </actinic:block>
                      </actinic:block>
                      	      <actinic:variable name="SubSectionListTop" value="Sub Section List With Horizontal Dividers (Copy)" />
                       
                         <actinic:variable name="CartErrorListXML" />
                      
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountDescriptionIsShownForSection%22%20%2f%3e"> 
                            <actinic:variable name="SectionDiscountList" />
                         </actinic:block>
                      
                            <actinic:variable name="ProductList" />
                      
                         <actinic:block if="%3cactinic%3avariable%20name%3d%22SingleAddToCartButtonIsUsed%22%20%2f%3e%20AND%20%3cactinic%3avariable%20name%3d%22SectionHasVisibleProduct%22%20%2f%3e" >
                            <div align="right">
                               <actinic:variable name="SingleAddToCartButton" />
                            </div>
                         </actinic:block>
                      
                      
                            <actinic:variable name="SubSectionListBottom" if="%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e%20%3d%3d%20False" />
                      
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22SingleAddToCartButtonIsUsed%22%20%2f%3e">
                      	<div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
                      </actinic:block>
                      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e%20%3d%3d%20False%29" >
                         <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%201%29%20OR%20%28%3cactinic%3avariable%20name%3d%22IsHotLinkListOmitted%22%20%2f%3e%20%3d%3d%20FALSE%29">
                            <actinic:variable name="ParentSectionListBottom" />
                         </actinic:block>
                      </actinic:block>
                      
                      <actinic:variable value="Message for Unregistered Customers" name="UnregCustomerMessage" if="%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20FALSE" />
                      
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22IsMainFormUsed%22%20%2f%3e">
                            </form>
                      </actinic:block>
                      
                      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3d%3d%200%29%20AND%20%28%3cactinic%3avariable%20name%3d%22InformationType%22%20%2f%3e%20%3d%3d%202%29" >
                         <actinic:variable name="TermsAndConditions" value="About Us" if="%3cactinic%3avariable%20name%3d%22IsAboutUsTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Purchase" if="%3cactinic%3avariable%20name%3d%22IsMakingAPurchaseTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Shipping And Handling" if="%3cactinic%3avariable%20name%3d%22IsSHChargesTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Delivery" if="%3cactinic%3avariable%20name%3d%22IsDeliveryScheduleTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Backorders" if="%3cactinic%3avariable%20name%3d%22IsBackordersTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Tax Charges" if="%3cactinic%3avariable%20name%3d%22IsTaxChargesTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Credit Card Security" if="%3cactinic%3avariable%20name%3d%22IsCCSecurityTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Guarantee" if="%3cactinic%3avariable%20name%3d%22IsGuaranteesTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Reaching Us" if="%3cactinic%3avariable%20name%3d%22IsReachingUsTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Privacy Policy" if="%3cactinic%3avariable%20name%3d%22IsPrivacyPolicyTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Returns Policy" if="%3cactinic%3avariable%20name%3d%22IsReturnsPolicyTermsShown%22%20%2f%3e" />
                         <actinic:variable name="TermsAndConditions" value="Remittance Terms" if="%3cactinic%3avariable%20name%3d%22IsRemittanceTermsShown%22%20%2f%3e" />
                      </actinic:block>
                      Does this help at all with a diagnosis?

                      Comment


                        #12
                        OMG! Thank you Thank you Thank you Thank you Thank you!

                        That was just too simple for words! 'Fragment Layout' in the Product List with Hori Dividers and shazam, one fragment at the top of the subsection page and the product page too!

                        Amazing! Thank you so much. Days of headache fixed in seconds!

                        Comment


                          #13
                          Originally posted by leehack View Post
                          Open up the product lists group in the design library and revert those 3 to factory settings.
                          The above said the same 20 hours ago.......

                          Comment

                          Working...
                          X