Query Tags field - custom label

2 months 1 week ago #330083 by ds-sric-support
Query Tags field - custom label was created by ds-sric-support
See attached; the html is being stripped in the Custom Label. I would like the tags to be clickable, as they refer to other user profiles.

Is there another way to approach this?

Thanks

Dave
Attachments:

Please Log in to join the conversation.

2 months 1 week ago #330085 by ds-sric-support
Replied by ds-sric-support on topic Query Tags field - custom label
I also tried some substitutions in here as follows:

[cb:userfield field="avatar" user="[value]" /] [cb:url location="profile_view" user="[value]" /] [label] @[value]

Avatar isn't essential, I was just experimenting, but I'm seeing escaped rather than rendered html output for the avatar (see attached)
Attachments:

Please Log in to join the conversation.

2 months 1 week ago #330090 by krileon
Replied by krileon on topic Query Tags field - custom label
You can't use HTML there. Query Tag is the same as a regular Tag field except its predefined list of tags can come from a query. Neither field types will allow HTML. Will review adding display parameters to support being able to have HTML based output.

forge.joomlapolis.com/issues/8995

For now you'd probably need to use something like CB Code Field and write the necessary PHP or a Query field and write the necessary SQL to output the field however you want.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

2 months 1 week ago #330091 by ds-sric-support
Replied by ds-sric-support on topic Query Tags field - custom label
Ok understood. I can see how I can get full output customisation with CB Code but the tag/autocomplete driven process for inputting wouldn't be available if I went down this route, correct?

Please Log in to join the conversation.

2 months 1 week ago #330094 by krileon
Replied by krileon on topic Query Tags field - custom label
You'd use the tag field still for the storage behavior, but you'd set it to not display on profile and instead use a code or query field to handle the display.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

2 months 1 week ago #330120 by ds-sric-support
Replied by ds-sric-support on topic Query Tags field - custom label
So in this scenario I'd need to double-up all fields of this type?

Are custom field types still a 'thing'? Is there any documentation around how to create these? I couldn't see anything obvious.

I've noticed that for editing, Query Tag uses select lists rather than autocomplete and the lookups for these could include up to 8000 items, which presents a problem as these are all loaded into the DOM.

A previous version of the site I'm working on (created by a separate, now retired developer) used custom field types. This was back in the days of Joomla 1.5.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn