We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26503
    • 620 Posts
    I can't for the life of me seem to get property sets to work, any thoughts on what I may be doing wrong?

    I have a resource calling a simple snippet:
    [[!ShowVideoDev? &path=`vx110144-Breast-Section1_1.flv`]]


    that snippet has a property set added to it called 'VideoProperties' with 2 properties; 'height' & 'width' both with default values....

    I try to dump the properties to the page for testing:

    echo '<pre>';
    print_r($scriptProperties);
    echo '</pre>';
    


    and all I get is the passed 'path' property from the snippet call... If I set a default property in the ShowVideoDev snippet that will show up as well, but not the VideoProperties...

    Finally, I can set the snippet call to:
    [[!ShowVideoDev@VideoProperties? &path=`vx110144-Breast-Section1_1.flv`]]


    and the height and width will appear, but I shouldn't have to do that, should I?

    Am I missing something here, or doing something wrong?

      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

      Sean Kimball CLP, CLS.
      Technical Director / Sr. Developer | BigBlock Studios
      ._______________________________________________.
      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
      phone/fax: 905-426-5525
      • 9102 ☆ A M B ☆
      • 318 Posts
      Yes, you should have to do that. In order to use a property set, you have to call the snippet with that property set.

      In order for the properties to appear without the property set specified, you have to make that the default property set.