Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] custom labelKey stopped working

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

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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 administrator has disabled public write access.
The following user(s) said Thank You: MorganL

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

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

Thanks!
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.
The following user(s) said Thank You: admin
Time to create page: 0.058 seconds

Get Started