Hello,
I have created several fields with CCK that I have added to the add new product page. I now have about 40 additional fields that contain information about my products. Each product only uses about 10 of those fields, so there are several that are blank depending on the product. I would like to create a "Specifications" table on the product page that will show all of the variables that have a value assigned to them for that product.
Here is an example of the layout with the "Specifications" table.
http://www.xikar.com/redesign/Final_Site/Xi1_individual_product_page.pdf
Is it possible to use TAPIr to create this table? Does is have the ability to only show the fields that have a value in them? Is there a better way to do this?
Here is an example of an array that contains the data:
[group_general] => Array
(
[field_style] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-style"><div class="field-label">Style: </div><div class="field-items"><div class="field-item">Titanium</div></div></div>
[#weight] => -1
[#printed] => 1
)
[field_body_material] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-body-material"><div class="field-label">Body Material: </div><div class="field-items"><div class="field-item">Aluminum</div></div></div>
[#weight] => 0
[#printed] => 1
)
[#title] =>
[field_body_finish] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-body-finish"><div class="field-label">Body Finish: </div><div class="field-items"><div class="field-item">Bead Blast</div></div></div>
[#weight] => 0
[#printed] => 1
)
[#attributes] => Array
(
[class] => fieldgroup group-general
)
[#weight] => 2
[#description] =>
[field_accent_material] => Array
(
[#access] => 1
[#value] =>
[#weight] => 1
[#printed] => 1
)
[field_accent_finish] => Array
(
[#access] => 1
[#value] =>
[#weight] => 1
[#printed] => 1
)
[field_blade_finish] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-blade-finish"><div class="field-label">Blade Finish: </div><div class="field-items"><div class="field-item">Brushed</div></div></div>
[#weight] => 3
[#printed] => 1
)
[field_blade_material] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-blade-material"><div class="field-label">Blade Material: </div><div class="field-items"><div class="field-item">440, HR57 Stainless</div></div></div>
[#weight] => 3
[#printed] => 1
)
[field_handle_material] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-handle-material"><div class="field-label">Handle Material: </div><div class="field-items"><div class="field-item">Aluminum</div></div></div>
[#weight] => 4
[#printed] => 1
)
[field_handle_finish] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-handle-finish"><div class="field-label">Handle Finish: </div><div class="field-items"><div class="field-item">Bead Blast</div></div></div>
[#weight] => 4
[#printed] => 1
)
[field_accessories] => Array
(
[#access] => 1
[#value] =>
[#weight] => 5
[#printed] => 1
)
[field_max_ring_gauge] => Array
(
[#access] => 1
[#value] => <div class="field field-type-number-integer field-field-max-ring-gauge"><div class="field-label">Max Ring Gauge: </div><div class="field-items"><div class="field-item">58Ring Gauge</div></div></div>
[#weight] => 5
[#printed] => 1
)
[field_lock_style] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-lock-style"><div class="field-label">Lock Style: </div><div class="field-items"><div class="field-item">Spring Action Sliding Button</div></div></div>
[#weight] => 5
[#printed] => 1
)
[field_features] => Array
(
[#access] => 1
[#value] =>
[#weight] => 5
[#printed] => 1
)
[field_sheath_material] => Array
(
[#access] => 1
[#value] =>
[#weight] => 7
[#printed] => 1
)
[field_leather_type] => Array
(
[#access] => 1
[#value] =>
[#weight] => 7
[#printed] => 1
)
[field_purity] => Array
(
[#access] => 1
[#value] =>
[#weight] => 8
[#printed] => 1
)
[field_volume] => Array
(
[#access] => 1
[#value] =>
[#weight] => 8
[#printed] => 1
)
[field_personalize_logo] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-personalize-logo"><div class="field-label">Personalize Logo: </div><div class="field-items"><div class="field-item">Laser Engraving</div></div></div>
[#weight] => 9
[#printed] => 1
)
[field_us_patent_number] => Array
(
[#access] => 1
[#value] => <div class="field field-type-text field-field-us-patent-number"><div class="field-label">US Patent Number: </div><div class="field-items"><div class="field-item">5937523</div></div></div>
[#weight] => 10
[#printed] => 1
)
[#printed] => 1
)How do I go about assigning this array to a TAPIr table and then only outputting the fields that have a value?
Thanks for any help you can give me.





Joined: 09/07/2007