template codng

I was approached today to hide a table column when a certain item type was being displayed .For our purposes lets call them guitars and drums

As part of the table, I was looping through an array to print out a list of links.to different types of guitars. For Drums, I didn't need that column

The variable we'll call, $instrument_type

First lets just look at the loop

I had this issue last week, my boss came to me and me to split up the fields between two separate tabs on a template file.

The extra challenge was that we could not edit the module and only the .tpl file.

I decided to write out two html tabs and specify a query in the link

<?php // here is the code for making tabs?>

Subscribe to RSS - template codng