We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. dilby
  2. General Discussion
  3. Monday, 21 September 2015
  4.  Subscribe via email
Hi all -

I've been using extra fields in T3 for quite a while, using the method shown here.

However, I've now added a list to the extra fields and need to know how to show conditionals based on the value selected in that list. For example, if value 1 selected, then show this.

My XML:

  <field name="list" type="list" default="" label="Manufacturer Used" description="">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</field>
</fieldset>



	<?php if ($params->get('list')) : ?>

<p class="list_option">
<?php echo $attribs->get('list') ?>
</p>
<?php endif; ?>


As you can see my code is only based on the conditional that any value is selected; help selecting the value appreciated!

Thanks :)
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
i dont have the code.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi,

Please change to following code:
<?php if ($params->get('list')) : ?>

to
<?php if ($params->get('list') == 1) : ?>

This could make it work.

Regards.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.