Keyword

if($this->lists['categories'] == category name do:

  • ranibb
  • ranibb's Avatar Topic Author
  • Offline
  • New Member
More
10 years 6 months ago - 10 years 6 months ago #126451 by ranibb
Hi,

I have about 15 categories ( x1, x2, x3, ..)

and i have about 15 extra fields ( x1, x2, x3,...)

if category x1 has a value of y1, then set extra filed x1 to valye y1 and disable it. it changes only according to category name.

both (x) categories & (x) extra fields have identical values..

i am trying to play with code in this file:

public_html/administrator/components/com_k2/views/item/tmpl/default.php


but i didn't have any luck yet, can you help please?

Regards,
Rani

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #126452 by Lefteris
Hi. What do you want to achieve exactly? I am sure that there is a simpler way to achieve what you want. Instead of creating hidden extra fields why you don't just check the category value in front-end. An other idea would be to split the extra fields in multiple groups and assign them to different categories.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum