Calling a Particular Type Within ZOO for Joomla
Posted: Mon Jan 03, 2011 4:11 pm
Hello All,
I am receiving terrible support from the administrators over @ yootheme for their product ZOO. It is an awesome component for Joomla but the support is just non-existent so I have to jump in and test it over and over to see what will work. I have very little experience in php and usually get around any code by throwing stuff up against the wall and seeing if it sticks.
I have several particular types for this one app instance. This will probably not be important to you. I just need to check my code and see how to do something. So far I have been using this tutorial: http://www.yootheme.com/docs/home/item/ ... cular-type
I have successfully done this for one template of one more particular type. It automatically reverts to the main type for all items. So this is my current code:
I have several other particular types (allergies, doctorprofiles, drugprofiles...etc)
I would like to go to those as well but if I do this (say for allergies) it gives me an error on the line @ the last </div> tag. Any ideas?
I am receiving terrible support from the administrators over @ yootheme for their product ZOO. It is an awesome component for Joomla but the support is just non-existent so I have to jump in and test it over and over to see what will work. I have very little experience in php and usually get around any code by throwing stuff up against the wall and seeing if it sticks.
I have several particular types for this one app instance. This will probably not be important to you. I just need to check my code and see how to do something. So far I have been using this tutorial: http://www.yootheme.com/docs/home/item/ ... cular-type
I have successfully done this for one template of one more particular type. It automatically reverts to the main type for all items. So this is my current code:
Code: Select all
<div id="yoo-zoo" class="yoo-zoo <?php echo $css_class; ?> <?php echo $css_class.'-'.$this->item->alias; ?>">
<?php if ($this->item->type == 'patientprofiles') : ?>
<div class="patientprofiles"><?php echo $this->renderer->render('item.patientprofiles.full', array('view' => $this, 'item' => $this->item)); ?></div>
<?php else: ?>
<div class="item"><?php echo $this->renderer->render('item.full', array('view' => $this, 'item' => $this->item)); ?></div>
<?php endif; ?>
</div>I would like to go to those as well but if I do this (say for allergies) it gives me an error on the line @ the last </div> tag. Any ideas?
Code: Select all
<div id="yoo-zoo" class="yoo-zoo <?php echo $css_class; ?> <?php echo $css_class.'-'.$this->item->alias; ?>">
<?php if ($this->item->type == 'patientprofiles') : ?>
<div class="patientprofiles"><?php echo $this->renderer->render('item.patientprofiles.full', array('view' => $this, 'item' => $this->item)); ?></div>
<?php else: ?>
<?php if ($this->item->type == 'allergies') : ?>
<div class="allergies"><?php echo $this->renderer->render('item.allergies.full', array('view' => $this, 'item' => $this->item)); ?></div>
<?php else: ?>
<div class="item"><?php echo $this->renderer->render('item.full', array('view' => $this, 'item' => $this->item)); ?></div>
<?php endif; ?>
</div>