Announcement

Collapse
No announcement yet.

Product Description, External Database, and CSS

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

    Product Description, External Database, and CSS

    I have my main product descriptions in HTML on an external database. I have been using an HTML editor to create each product description and then just paste it into my database.

    Could someone tell me if it is possible to use CSS in this case, ie have the style info held just once in Actinic and just paste the description content into the database?

    No doubt I've used the wrong terminology, but hopefully someone will understand what I mean and either point me in the right direction or tell me to stop wasting my time.

    Andy

    #2
    If the product description variable in your product layout is surrounded by say:

    <p class="andyH">..product description variable..</p>

    and you add a class to the stylesheet like so:

    .andyH {
    blah blah
    }

    then all product descriptions should take those styles you set. BUT it does depend on what styling you actually want to do, as you wanted us to guess that part, so i've guessed at the answer.

    You put plain text in the database and actinic turns it into html for you, unless you've added your own formatting in certain places and tell actinic to do that part as html. Can you clarify?

    Comment


      #3
      Links to what you have done so far would be good!

      From what i have read you are doing excatly what CSS is designed for.
      Do a google search on CSS and you will find tons of information on the subject.
      "If my answers frighten you then you should cease asking scary questions"

      Comment


        #4
        Below is the URL for one of my items, and after that is the HTML for that item from my database. As far as styling is concerned I would just like to define the different heading font and sizes (by heading I mean the John Denver and Greatest Hits bits), and the size and font used by the main text and song titles. I'm sure this must be more efficient than what I'm doing at present.

        http://www.hamcor.co.uk/acatalog/Joh...usic_Book.html

        !!<
        <head>
        </head>
        <body>
        <div align="center">
        <p><strong><font size="4" face="times new roman">E-Z PLAY TODAY</font></strong></p>
        <p><strong><font size="7" face="times new roman">JOHN DENVER</font></strong></p>
        <p><strong><font size="6" face="times new roman">GREATEST HITS</font></strong></p>
        <p><font size="4" face="times new roman">Keyboard Sheet Music Book</font></p>
        <p><img src="http://www.hamcor.co.uk/images/Official-Merchandise.gif" alt="" border="0" /></p>
        </div>
        <p><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Twenty-three of the pop superstar's greatest including 'Annie's Song', 'Back Home Again', 'Leaving On A Jet Plane', 'My Sweet Lady' and 'Rocky Mountain High'</font></p>
        <ul>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">A Baby Just Like You </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Annie's Song </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Autograph </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Back Home Again </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Calypso </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Fly Away </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Follow Me </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">For Baby (For Bobbie) </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Friends With You </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">I Want To Live </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">I'm Sorry </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Leaving On A Jet Plane </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Like A Sad Song </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Looking For Space </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">My Sweet Lady </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Perhaps Love </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Poems, Prayers And Promises </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Rhymes And Reasons </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Rocky Mountain High </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Some Days Are Diamonds </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Sunshine On My Shoulders </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Take Me Home, Country Roads </font></b>
        <li><b><font size="3" face="Verdana, Arial, Helvetica, sans-serif">Thank God I'm A Country Boy </font></b>
        </ul>
        <p><em><b></b></em></p>
        </body>

        </html>
        >!!

        Comment


          #5
          Eeek!

          The URL should be

          http://www.hamcor.co.uk/acatalog/Joh...usic_Book.html

          Comment


            #6
            I see what you are doing now.
            It’s not what you want to be doing.

            For a start, there is no reason for the <head> and <body> tags.
            The information you are putting into actinic inserts it within the body of the main page.

            If it was me, I would create a copy of the product layout you are using, and manipulate the code for that layout so not to ruin the existing layout. Oh and of course backup!

            You can make the new product layout create certain things automatically using the product variables saving time re-entering information, and encase the layouts used for product descriptions and the song titles in a div tag and use CSS to style the information you want within that div tag. All you need to do then is to put the description and song titles directly into actinic with no html formatting.
            "If my answers frighten you then you should cease asking scary questions"

            Comment


              #7
              Thank you very much for your comments. At least know I know it is possible and will study that. As a small business with Christmas almost upon us, I didn't want to waste time walking down the wrong road.

              Andy

              Comment

              Working...
              X