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

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started