ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Siamese-Dream.Com
    Mega Mivite

    • Apr 2006
    • 3785

    #1

    ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

    Hi there, Everyone:

    How do I render / vrender a page depending on a conditional in a custom product field?

    My products have a custom field called "custom_cat_tree"

    I will populate it with values like, cattree1, or cattree2, or cattree3, etc.,

    If want to render a page that corresponds to that value, would it be like this?

    <mvt:item name="toolkit" param="vrender|&mvt:product:customfield_values:cus tomfields:custom_cat_tree;" />

    Or would I have to assign / vassign / sassign that custom field to a variable first? (and if so, how?)

    Thanks in advance.
    Last edited by Siamese-Dream.Com; 05-15-12, 09:10 AM.
    Mark Romero
    ~~~~~~~~
  • wcw
    Developer Partner

    • Mar 2006
    • 11329

    #2
    Re: ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

    Replace &mvt: with l.all_settings:
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment

    • Siamese-Dream.Com
      Mega Mivite

      • Apr 2006
      • 3785

      #3
      Re: ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

      Hi there, Bill:

      Unfortunately, this doesn't seem to be working for me.

      Code:
      <mvt:item name="toolkit" param="vrender|l.all_settings:product:customfield_values:customfields:custom_cat_tree;" />
      This doesn't return anything.

      there IS a custom field assigned to the product, and I can display the value of the custom field contents by doing this:

      Code:
      &mvt:product:customfield_values:customfields:custom_cat_tree;
      and there IS a page created with the appropriate code (the same as the value in the custom field)

      but that page doesn't render.

      I DO have toolkit assigned to the PROD screen that had the vrender code.

      Any other suggestions?

      Thanks in advance.
      Mark Romero
      ~~~~~~~~

      Comment

      • Siamese-Dream.Com
        Mega Mivite

        • Apr 2006
        • 3785

        #4
        Re: ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

        Has anybody else tried doing this? I seem to have hit a wall...
        Mark Romero
        ~~~~~~~~

        Comment

        • wcw
          Developer Partner

          • Mar 2006
          • 11329

          #5
          Re: ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

          Remove the ; at the end where you have custom_cat_tree;
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment

          • Siamese-Dream.Com
            Mega Mivite

            • Apr 2006
            • 3785

            #6
            Re: ToolKit Brain Cramp: Render Page Based On Conditional Custom Field?

            Thanks!!! That took care of it.

            It will be a lot easier to maintain a single product page template made up of various pieces (which are dependent on custom fields) than it will be to have to maintain several different PROD page templates.
            Mark Romero
            ~~~~~~~~

            Comment

            Working...
            X