Announcement

Collapse
No announcement yet.

SD 2013 PageType variable unreliable in MOTO layouts.

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

    SD 2013 PageType variable unreliable in MOTO layouts.

    The PageType variable is unreliable within the MOTO Form. It seems to work within the Standard MOTO Form layout. But returns an empty value within sub-layouts. E.g. Standard MOTO Product Layout.

    See attached screenshot which show this happening in the two layouts mentioned above.
    Attached Files
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    Hi Norman,

    Sorry I cannot seem to reproduce this (see attached image).

    Do you have any more details on how to recreate it?
    Attached Files

    Comment


      #3
      It still fails here. Steps are:
      New site.
      Design / Library / Layouts / MOTO Form / Standard MOTO Form, put the following after the <body ...> tag line:
      Code:
      <br>Page Type: <actinic:variable name="PageType" /><br>
      Design / Library / Layouts / MOTO Layouts / Standard MOTO Product Layout, put the following at the top:
      Code:
      <br>Page Type: <actinic:variable name="PageType" /><br>
      Close Library, click New Order, select product ref "2" and click Show. Get result as attached image.
      Attached Files
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        P.S. Also happens in SD 2014 Beta - 14.0.0 OKMB.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          My apologies for the delay.

          I have reproduced this now and passed this to our development team.

          Many thanks.

          Comment


            #6
            Norman, can you explain what application this might have? Even if it did work as designed, AFAICS the PageType variable used anywhere in the MOTO Form would only ever return 'MOTO Form'.
            Bruce Townsend
            Ecommerce Product Manager
            Sellerdeck Ecommerce Solutions

            Comment


              #7
              This has now been classed as a bug: ref. SD-4797.

              The only workaround would be to use the variable in the top level or to set a PHP or JavaScript global variable which can then be used in lower levels.

              Comment

              Working...
              X