Skip to Content Skip to Menu

cb query field

10 years 4 weeks ago #250114 by giorgionasis
Replied by giorgionasis on topic cb query field
hi,

i am ok with the format. my problem is how the [column_title] value will get a "a href" attribute so the user can click on that..

i change the query in order to retrive both id and alias of k2 item
i tried this but it doesn`t work..
Code:
<div>Title: <a href="index.php?option=com_k2&view=item&id=[column_id]:[column_alias]"[column_title]</a></div> <div>Published: [column_publish_up]</div>

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago #250243 by krileon
Replied by krileon on topic cb query field
You're missing a > just before the title column substitution so your href usage isn't valid.

FROM:
Code:
<div>Title: <a href="index.php?option=com_k2&view=item&id=[column_id]:[column_alias]"[column_title]</a></div>
TO:
Code:
<div>Title: <a href="index.php?option=com_k2&view=item&id=[column_id]:[column_alias]">[column_title]</a></div>


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.
The following user(s) said Thank You: nant

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

10 years 3 weeks ago - 10 years 3 weeks ago #250296 by giorgionasis
Replied by giorgionasis on topic cb query field
hallo there,

i have corrected it before you post but still it is not working..

i also see the divs in frontend..like this..
Code:
<div>Title: <a href="index.php?option=com_k2&view=item&id=277:test">test</a></div> <div>Published: 2014-10-10 18:58:46</div>

also i am afraid that it won`t be a sef ulr? :/ i need the sef url just the articles do please..

thank you
Last edit: 10 years 3 weeks ago by giorgionasis.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago - 10 years 3 weeks ago #250360 by krileon
Replied by krileon on topic cb query field
Use the below as a simple test.

Code:
<strong>THIS SHOULD BE BOLD</strong>

If it's not bold then the plugin is applying htmlspecialchars. If it is I believe that's fixed in latest release, which requires CB 2.0.

No the URL isn't going to be SEF unless Joomla picks it up and SEFs it. It's not being ran through the SEF API in Joomla or CB. It's just plain HTML with substitutions.


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.
Last edit: 10 years 3 weeks ago by krileon.

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

10 years 3 weeks ago #250368 by giorgionasis
Replied by giorgionasis on topic cb query field
i just tested it. same problem.in frontend i have exactly the same.
but i am using CB 2.0 and the latest version of cb query field.. :/

so there is no way to have a sef url, right?

thank you

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago - 10 years 3 weeks ago #250419 by krileon
Replied by krileon on topic cb query field
No, it's not going to SEF it. It's just HTML. You need to run a URL through routing API for it to become SEF, which requires PHP. The HTML not working is a bug though and am working to fix for a new release.


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.
Last edit: 10 years 3 weeks ago by krileon.
The following user(s) said Thank You: giorgionasis

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

Moderators: beatnantkrileon
Powered by Kunena Forum