Announcement

Collapse
No announcement yet.

Page Title not working in v11

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

    Page Title not working in v11

    Hi,

    Currently upgrading a site to v11 from v10 and am having troubles with the title tag.

    We imported a snapshot from v10 and all seemed to be ok, however all page titles are showing as the 'Company Name' within Business Settings.

    In v10 the section / brochure pages title was working from the Page Settings > Page Title field, but alas, no more....

    Any ideas, changes I should of made, much appreciated...

    Guy

    Lock Shop Warehouse - Lead Developer
    Offering a huge range of discounted locks, padlocks & safes
    Regards,

    Guy

    Lead Developer - Lock Shop Warehouse
    Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

    #2
    Could it be related to this known bug: http://community.actinic.com/showthread.php?t=51418
    Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

    Comment


      #3
      I had that same problem but that was easier to fix, I just changed it back in Business Settings > Company Name and thats fine now.

      My issue is related to every page on my site having exactly the same Title tag, ie:

      HTML Code:
      <title>My Company Name</title>
      In Actinic all looks the same as before, I am using:

      Code:
      <title><actinic:variable name="PageTitle" /></title>
      As I was in v10, however in v11 this does not work.

      I was thinking some previous script changes could be causing it, by this i mean ones i made in v10 and have not come across to v11 as expected. However, I've gone over my records and can't see any adjustments that could impact on this....

      Any help tracking this down would be great.

      Guy
      Regards,

      Guy

      Lead Developer - Lock Shop Warehouse
      Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

      Comment


        #4
        I've encountered this in a client site also.

        the "Page Title" variable was picking up the Company Name

        Try replacing your PageTitle variable with SectionPageTitle (I think that's what I did)
        Tracey

        Comment


          #5
          Using SectionPageTitle does fix the problem on my section pages, however it seems to have the following problems:
          • Doesn't work on Brochure Pages
          • Doesn't work on v11's new Product Pages
          • Doesn't create a string from the short description when the page title is empty (not such a big problem, as the first 2)


          I think I really need PageTitle to start working again.....
          Regards,

          Guy

          Lead Developer - Lock Shop Warehouse
          Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

          Comment


            #6
            I agree
            We used a solution that worked for our particular needs but it's not perfect and "fixing" it (or at least explaining why it's changed and what the alternatives are) would be a better option.
            Tracey

            Comment


              #7
              The issue seems to be all down to my customized layouts, v11 is not as happy as v10. When I change to a default layout all is fine so I think I have alot of tweaking to do so i can establish what caused the problem.

              I'll post back with an update when I figure it out.

              Guy
              Regards,

              Guy

              Lead Developer - Lock Shop Warehouse
              Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

              Comment


                #8
                I managed to get it working as expected. In my v10 site I had the head tag and its contents within a layout referenced by HeaderArea, it looked as follows:

                Code:
                <actinic:variable name="HeaderArea" />
                
                	<actinic:variable name="INNERLAYOUT" />
                By removing the html head tag and its content (including the title tag with the PageTitle variable) and placing it directly at the top of my overall layout all is fine again. It now looks like this:


                Code:
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
                
                	<title><actinic:variable name="PageTitle" /></title>
                
                	<actinic:variable name="MetaTags" />
                	
                	<actinic:variable name="BaseHref" />
                	
                	<actinic:variable name="JavaScriptFunctions" />
                	
                	<actinic:block if="%3cactinic%3avariable%20name%3d%22IsP3PPolicyUsed%22%20%2f%3e"><link rel="P3Pv1" href="<actinic:variable name="P3PFullPolicyLink" />"></actinic:block>
                	
                	<link href="actinic.css" rel="stylesheet" type="text/css">
                	
                </head>
                
                <body>
                
                <actinic:variable name="HeaderArea" />
                
                	<actinic:variable name="INNERLAYOUT" />
                HeaderArea is still used at the top of my pages, but now only contains page elements.

                Guy
                Regards,

                Guy

                Lead Developer - Lock Shop Warehouse
                Offering discounted padlocks, and a huge range from the best door lock suppliers, all alongside other essential security products.

                Comment


                  #9
                  This had me scratching my head in 2016 too. Seems like the PageTitle variable doesn't behave properly if it's not placed directly in the top level layout.

                  I tested this simple layout (as viewed from the top level layout)
                  TEST1
                  --------
                  Code:
                  <head>
                  <title><actinic:variable name="PageTitle" /></title>
                  <actinic:variable name="00CustomCode" value="00Testing" />
                  <title><actinic:variable name="PageTitle" /></title>
                  </head>
                  Where 00Testing contains just
                  Code:
                  <testtag><actinic:variable name="PageTitle" /></testtag>
                  and on upload it shows
                  HTML Code:
                  <title>Modern Radiator Valves! Page 1</title>
                  <testtag>Sample Company</testtag>
                  <title>Modern Radiator Valves! Page 1</title>
                  So I toyed with passing the value as a PHP variable
                  TEST2
                  --------
                  Code:
                  <head>
                  <actinic:block php="true" >$title = "<actinic:variable name="PageTitle" selectable="false" />";</actinic:block>
                  <title><actinic:variable name="PageTitle" /></title>
                  <actinic:variable name="00CustomCode" value="00Testing" />
                  <title><actinic:variable name="PageTitle" /></title>
                  </head>
                  and changed 00Testing to
                  Code:
                  <actinic:block php="true">	echo "<testtag>$title</testtag>";</actinic:block>
                  and after upload the html looked like this.
                  HTML Code:
                  <title>Modern Radiator Valves! Page 1</title>
                  <testtag>Modern Radiator Valves! Page 1</testtag>
                  <title>Modern Radiator Valves! Page 1</title>
                  I'm just posting this here should anyone require a solution for getting the PageTitle variable into a sub template.

                  In our case we have some titles/meta descriptions that utilise dynamic value placeholders that need to be switched out for calculated values on upload.

                  ##EDIT##
                  The " Page 1" is appended by SellerDecks pagination system, so this still carries over with the PHP variable method.
                  Dave

                  Comment


                    #10
                    Genius!
                    Thank you
                    DaveSMR

                    . So a problem flagged in v11 and with a community solution in V16 is still not fixed in V18.2 - Hey ho!
                    Jonathan Chappell
                    Website Designer
                    SellerDeck Website Designer
                    Actinic to SellerDeck upgrades
                    Graphicz Limited - www.graphicz.co.uk

                    Comment

                    Working...
                    X