Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

custom labelKey stopped working 01 Feb 2017 15:31 #14970

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
I have been using the following filter in my model for a month or two
<field name="filter_territories"
			   type="relation"
			   submit="true"
			   placeholder="COMPONENT_FILTER_NULL_"
			   label="COMPONENT_JSEARCH_TERRITORIES"
			   class="element-filter {{_region_region}}"
			   ui="chosen"
			   filter="array"
			   multiple="true"
			   relation="territories"
			   labelKey="{_region_region} - {territory}"/>

This basically gives me multi-select of (for example)

Africa - Uganda
North America - Canada
North America - United States

and each line has the region in its class i.e class="element filter Africa" which allows me to colour code

but without noticing exactly when it occurred, the {} has stopped working. I am still running 3.0.10 and I can no longer do custom labelKeys, nor use {} anywhere in the filter
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

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

custom labelKey stopped working 03 Feb 2017 11:41 #14973

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Oops... correct, the 'relation' field do not include this one yet.

I am currently rewritting the fields.
Relation is already one of those new fields avoiding JDom and base on Joomla native parent class.
Coding is now a piece of cake

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

custom labelKey stopped working 06 Feb 2017 09:48 #14978

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
They have been working until recently, which has unfortunately has caused a big problem on one of my production sites with no way to correct it unless I write my own multiselect box.

Can you advise of a time scale for a fix so I can make this decision
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

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

custom labelKey stopped working 06 Feb 2017 21:28 #14981

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.

It should be better now.
The function was there, but there was a conflict with a variable. It was not working correctly.
Coding is now a piece of cake
The following user(s) said Thank You: MorganL

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

custom labelKey stopped working 06 Feb 2017 22:09 #14982

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
You sir are a coding saint!

Thanks!
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The following user(s) said Thank You: admin

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

  • Page:
  • 1
Time to create page: 0.105 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started