Hi Andy
Thanks for hanging on.
The next step is going to be trickier as we are now getting into the code.
Here's a basic outline of what you'll need to do:
1. Loop through all the values stored in your "property_features" field. This works pretty much the same way as you are already displaying the original feature field you setup.
2. In each loop, you'll be working with the "num" value of each feature saved. You need to use that number to look up the full feature record from the other table you created.
3. Then, finally, you pick with field to display based on what language the rest of the page is in.
The code will look something like this:
<?php foreach ($listing['property_features'] as $feature): // loop through all features ?>
<?php $featureRecord = mysql_get("name of your new features table", $feature); // load feature record ?>
<?php echo $featureRecord['es_feature']; // display feature in language ?>
<?php endforeach ?>
Notes:
- I've highlighted a couple parts in red that you'll definitely need to change.
- you will likely need to play with the code a bit to get it working.
- notice how I am not using the :label option you were originally. This is because we need the actual number stored in your database and not just the label.
- I can help you further with this step in consulting
Let me know any questions.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/