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.059 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started