Okay.... I have a DD object, (Admin Controls), which will hold a several properties. These properties will each relate to a specific thing which I may wish to show/hide within various Admin-Create/Admin-Modify Pages. EXAMPLE: I may create a set of DD proeprties to control whether someone editing a Xarpage can see a DD field for adding a Sub-Title to the page. If the Admin Control is set to YES, then the person editing the page will beable to see the feild. If the Admin Control is set to NO, then the person will not see that field. ----------------------------------------------------------------------------- The Admin Control DD object will have to be referenced... #xarModAPIFunc('dynamicdata','user','getitems',array('modid' => 182, 'itemtype' => 3,'itemid' => 14))# current($testing) ----------------------------------------------------------------------------- Then each property would have to be checked against... #$testing['dd-property-name']# its ON its OFF Its Empty ? (OKAY... all the Elseif stuff is a little OTT, but I need to see what is happening... if anything :) ) ----------------------------------------------------------------------------- This should be done within the relevant admin-modify-objectname.xt file for Dynamic data. In this scenario, the "admin-modify" I'm refering to is a xarpage... in DD this is called xarpages_6... ... admin-modify-xarpages_6.xt In this file I need to do conditional checks to find and seperate the DD properties that I will want to control the visibility of. <>
Where it says "<> Should be where I do my conditional checks to see what the Admin Control says... #xarModAPIFunc('dynamicdata','user','getitems',array('modid' => 182, 'itemtype' => 3,'itemid' => 14))# current($testing) #$testing['dd-property-name']# IT'S ON - SO SHOW...
IT'S OFF - SO SHOW NOTHING! IT'S EMPTY (STUFFED UP PASSING THE VALUE!) SOMETHING ELSE HAS HAPPEND !
-------------------------------------------------------------------------------------- I believe the above to be correct. Though I few I have ommited something, or have a fault in my application of the logic, (or the logic itself :) ), for simply using the the text for IT'S ON / IT'S OFF... I get the expected results. As soon as I add the actualy Label and Input tags.... it shows up no matter what, whether it is switched on or off! >>??<<