Announcement

Collapse
No announcement yet.

Coding errors - how can i make this work?

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

    Coding errors - how can i make this work?

    Hi.

    I have changed the code in act_primary to try and generate the product descriptions in the meta description tag instead of doing each one manually as there are thousands of products.

    This now produces 2,500 coding errors and nothing appears in the description tags - see code below.

    Can you help please?



    <head>
    <title><actinic:block php="true" >echo strip_tags('<actinic:variable name="PageTitle" />');</actinic:block></title>
    <meta name="description" content="<actinic:variable name="ProductDescription" />" />


    Wayne.
    www.fetishwear-uk.co.uk


    Actinic SEO

    We are specialists in Actinic SEO and have over 12 years experience with this software. PM me for more details if you need any help.


    sigpic

    #2
    You're getting coding errors because you are using the ProductDescription variable out of context.

    Wrap the product description with the following blocks: (only use this if you have one product on the section page)
    PHP Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionHasVisibleProduct%22%20%2f%3e" >
         <
    actinic:block type="ProductList" >
           <
    actinic:variable name="ProductDescription" />
         </
    actinic:block>
    </
    actinic:block
    Rob Williams
    Ink Cartridges
    Stinky Ink - Blog

    Comment


      #3
      Hi Rob.

      Thanks for your help.
      I do have one product per section, yes.

      How do I apply your code to mine below, sorry to be thick.

      Wayne.

      <head>
      <title><actinic:block php="true" >echo strip_tags('<actinic:variable name="PageTitle" />');</actinic:block></title>
      <meta name="description" content="<actinic:variable name="ProductDescription" />" />
      www.fetishwear-uk.co.uk


      Actinic SEO

      We are specialists in Actinic SEO and have over 12 years experience with this software. PM me for more details if you need any help.


      sigpic

      Comment


        #4
        Your meta description should look like:
        PHP Code:


        <meta name="description" content="<actinic:block if="%3cactinic%3avariable%20name%3d%22SectionHasVisibleProduct%22%20%2f%3e" ><actinic:block type="ProductList" ><actinic:variable name="ProductDescription" /></actinic:block></actinic:block>" /> 
        Rob Williams
        Ink Cartridges
        Stinky Ink - Blog

        Comment


          #5
          Thank you Rob.

          I will give this a go.

          Thanks.

          Wayne.
          www.fetishwear-uk.co.uk


          Actinic SEO

          We are specialists in Actinic SEO and have over 12 years experience with this software. PM me for more details if you need any help.


          sigpic

          Comment


            #6
            Hi Rob.

            I have implemented the code but still get the errors

            variable'ProductDescription' is used out of context (2598 times)

            Can you help?

            Wayne.
            www.fetishwear-uk.co.uk


            Actinic SEO

            We are specialists in Actinic SEO and have over 12 years experience with this software. PM me for more details if you need any help.


            sigpic

            Comment


              #7
              Hi Rob.

              Have got this working, however the description appears at the top of every page too - see link below.

              http://www.gaynors-goodies.co.uk/aca...1367_blk_.html

              Strange, why is this?

              Thanks.

              Wayne.
              www.fetishwear-uk.co.uk


              Actinic SEO

              We are specialists in Actinic SEO and have over 12 years experience with this software. PM me for more details if you need any help.


              sigpic

              Comment


                #8
                You have

                <meta name="description" content="<font color="#009900">Not available on overnight delivery - Normally dispatched within 3 - 5 days</font><br />Join the mile high club in this kinky air cadet dress&#44; with easy access front zip&#44; epaulettes&#44; badge&#44; and mock hipster belt&#46; Available in dreamy sky blue&#44; or black PVC&#46; Both trimmed with silver and vibrant pink&#46; Comes with matching flying cap&#46; <br />Free shipping&#33;" />
                Which is being interpreted as

                <meta name="description" content="<font color=" #009900">

                with the following text interpreted as being outside the meta tag.

                You'll have to strip the HTML tags from your description.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Ah! thats it.

                  Thank you Norman and Rob for your help.

                  Good job you guys are here, excellant support.

                  Well done.

                  Wayne.
                  www.fetishwear-uk.co.uk


                  Actinic SEO

                  We are specialists in Actinic SEO and have over 12 years experience with this software. PM me for more details if you need any help.


                  sigpic

                  Comment

                  Working...
                  X