Announcement

Collapse
No announcement yet.

Brochure fragments side by side

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

    #16
    For the shop, you need to set that up differently.. I think it is the advanced user guide.. or it's somewhere on this forum. Norman helped me out before so it can't be far. You need to amend the product template to define the number of products across the page, using the defined variable numcols..
    Shout if you can't find it.
    Jenny
    Hanson Web Design
    www.hansonwebdesign.co.uk
    jenny@hansonwebdesign.co.uk
    Actinic hosting, Actinic Software, template design and re-design

    Comment


      #17
      but i'd somehow like to have the main products index page set into columns.... ie. 4 cols, 4 rows...
      I'm not sure if you're talking about the Section that lead to each product page, otr having the Products themselves in columns.

      If it's the Sections then look in Design / Options / Sections where you can alter the column count.

      If it's laying your product out in multiple columns then I've done a similar patch to the one in this thread that does just that. See http://community.actinic.com/showthr...&threadid=4370 and take the newest attachment posted by me.

      Norman
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #18
        Thank you both,

        Most helpful...well Im off to play some more.

        I didnt realise how flexible Actinic could actually be.

        I played with it quite sometime ago... and at the time i wasn't too impressed, but I now have to say it looks like it'll do what i want it to do.

        Thanks again for your help.

        No doubt I'll be back

        Comment


          #19
          Does the code work for v7 at all?

          The fragments appear to have changed from: -

          <br>
          <br>

          to

          <tr>
          <td colspan="3" valign="top">
          "OK Venus?"
          "OK Steve!"
          "Right then, lets go!

          Comment


            #20
            This site http://www.paws4inspiration.co.uk is now v7 with 2 fragments side by side. So I say yes it works in v7
            Jenny
            Hanson Web Design
            www.hansonwebdesign.co.uk
            jenny@hansonwebdesign.co.uk
            Actinic hosting, Actinic Software, template design and re-design

            Comment


              #21
              The way fragments are laid out is different in v7 in order to allow fragments to appear correctly within the product pages.

              Jenny - your current code to lay out products side by side will probably not work anymore. However, I will come up with a way to do this in v7 on Monday.

              Comment


                #22
                If you want products in columns then the readme is at www.drillpine.biz/actinicstuff/

                If you want your Sub-Section links to be in columns then that's done in Actinic / Design / Opti0ons / Sections.

                Norman
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #23
                  Here is how to edit brochure fragment templates so they appear in a number of columns in v7(with thanks to Norman Rouxel).

                  First, locate the following code in Act_BrochurePrimary.html:
                  Code:
                  <table width="CUSTOMVAR:ACTSTDWIDTH" cellpadding="5" cellspacing="0" border="0" cols="3">
                    NETQUOTEVAR:BROCHUREBODY
                  </table>
                  Change it to read...
                  Code:
                  <script language=JavaScript>
                  <!--
                  var currentcol = 0;
                  var colwidth = Math.floor(100 / CUSTOMVAR:NUMCOLS);
                  // -->
                  </script>
                  
                  <table width="CUSTOMVAR:ACTSTDWIDTH" cellpadding="5" cellspacing="0" border="0" cols="3">
                  
                  NETQUOTEVAR:BROCHUREBODY
                  
                  <script language=JavaScript>
                  <!--
                  if ( currentcol != 0 )
                   {
                   while ( currentcol++ < CUSTOMVAR:NUMCOLS ) document.write('<td width="' + colwidth + '%">&nbsp;</td>');
                   document.write('</tr></table></td></tr>');
                   currentcol = 0;
                   }
                  // -->
                  </script>
                  
                  </table>
                  Then edit the code of your chosen fragment layout template and replace it with
                  Code:
                  <script language=JavaScript>
                  <!--
                  if ( currentcol++ == 0 ) document.write('<tr><td colspan=3><table border=0><tr>');
                  document.write('<td width="' + colwidth + '%" valign=top>');
                  // -->
                  </script>
                  
                  <noscript><tr><td width="100%"></noscript>
                  
                  NETQUOTEVAR:FRAGMENTANCHOR
                  <table border="0" width="100%" cellpadding="5" cellspacing="1">
                    <tr>
                      <td valign="top" align="left">NETQUOTEVAR:BROCHURE_IMAGE</td>
                    </tr>
                    <tr>
                      <td valign="top">
                        <strong>NETQUOTEVAR:BROCHURE_TITLE</strong><br><br>
                        NETQUOTEVAR:BROCHURE_TEXT</td>
                    </tr>
                  </table>
                  
                  </td>
                  
                  <script language=JavaScript>
                  <!--
                  if ( currentcol >= CUSTOMVAR:NUMCOLS )
                    {
                    document.write('</tr></table></td></tr>');
                    currentcol = 0;
                    }
                  // -->
                  </script>
                  
                  <noscript></tr></noscript>
                  Finally, go to 'Advanced | Custom Properties' and create a new custom property called 'NUMCOLS'.

                  Then go to 'Design | Options | Site Defaults' and add 'NUMCOLS' to the grid (selecting 'Use as CUSTOMVAR' if the option is given). Set the value to however many columns you want your fragments laid out in.

                  Comment


                    #24
                    Chris. If you're able to edit that post could you make a minor change.

                    The line:-

                    while ( currentcol++ < CUSTOMVAR:NUMCOLS ) document.write('<td width="' + colwidth + '%"></td>');

                    would be better as

                    while ( currentcol++ < CUSTOMVAR:NUMCOLS ) document.write('<td width="' + colwidth + '%">&nbsp;</td>');

                    As this allows coloured backgrounds to appear through any additional empty cells.

                    Norman
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #25
                      Change made.

                      Thanks Norman.

                      Comment


                        #26
                        used the instructions for altering fragment layout... working ok but I have a gap appearing between the second and third column... view the brochure homepage here:

                        www.hificare.co.uk

                        the 'bose sale' image is a fragment in the third colum of the table... it needs to be closer in to the second column (klv15sr2s, nvgs22 etc.) but it sticks out further to the side with a bigger gap appearing...

                        ... can anyone tell me how to fix this?

                        Comment


                          #27
                          There is a problem with your HTML - your tables are all over the place which you can see at the bottom of the page - that 'Back to Top' link should have a blue background and be aligned to the right.

                          I suggest you start with a new Act_BrochurePrimary.html (from 'Formats/Themes/Curves') and re-apply the code. Also ensure that all the fragments in the front page of the store all are using a fragment layout template with the JavaScript code in.

                          Comment


                            #28
                            Cannot find code in Act_BrochurePrimary.html

                            Jenny/Norman,
                            In your instructions for pudding columns side by side in a fragment you
                            say the follwoing.

                            Edit Act_BrochurePrimary.html - replace the line:-


                            NETQUOTEVAR:BROCHUREBODY<br>

                            Am I being too tired on a Friday but I cannot seem to see the code
                            NETQUOTEVAR:BROCHUREBODY<br>
                            within the Act_BrochurePrimary.html web page?

                            Any pointers?
                            Radd

                            Comment


                              #29
                              Fragment editing of html code

                              Been to user guide.
                              Where do you go to edit the code of your chosen fragment layout template?
                              Been into template manager and looked at advanced user guide but just can't seem to see it?
                              Many thanks
                              Radd

                              Comment


                                #30
                                You can either edit templates in notepad or dreamweaver (but newbies beware). Look in your site 1 or whatever it called and all the templates are there. Do a search for NETQUOTEVAR:BROCHUREBODY<br> within the act_brochure... using notepad and replace it with the code as stated.. If you really can't cope send me an email.
                                Jenny
                                Hanson Web Design
                                www.hansonwebdesign.co.uk
                                jenny@hansonwebdesign.co.uk
                                Actinic hosting, Actinic Software, template design and re-design

                                Comment

                                Working...
                                X