Keyword

K2 extra fields - customisation

  • KALLIRROI BARTZIOKA
  • KALLIRROI BARTZIOKA's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #154830 by KALLIRROI BARTZIOKA
K2 extra fields - customisation was created by KALLIRROI BARTZIOKA
Hi,

There is a need to put an asterisk for the k2 extra fields which are set as required.
I added the following in k2.css

k2Required:before {
content:"*";
}
but it didn't work.
Can you give me a solution?

Thanks in advance,
Roi

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

More
8 years 3 months ago #154896 by Javi Mata
Replied by Javi Mata on topic K2 extra fields - customisation
i think that k2Required have a point or a # before...
try using content: "\002A";

Twitter: @Javi_Mata
Web: www.javimata.com

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

  • KALLIRROI BARTZIOKA
  • KALLIRROI BARTZIOKA's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #154909 by KALLIRROI BARTZIOKA
Replied by KALLIRROI BARTZIOKA on topic K2 extra fields - customisation
Thanks for your reply Javi Mata, but it didn't work.
I tried also adding this in k2.js

jQuery(document).ready(function() {
jQuery("[k2Required]").after("<span class='k2Required'>*</span>");
});

but it didn't work either.

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

  • KALLIRROI BARTZIOKA
  • KALLIRROI BARTZIOKA's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #154947 by KALLIRROI BARTZIOKA
Replied by KALLIRROI BARTZIOKA on topic K2 extra fields - customisation
Hi,

I use K2 version 2.7.0 on Joomla! 3.4.7 and I'm talking about front-end

Thanks in advance
Roi

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

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Elite Member
More
8 years 3 months ago #154957 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic K2 extra fields - customisation
Hi,
jQuery(document).ready(function() {
		jQuery('.k2Required').parent().after('<span class="required-field">*</span>');
});

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • KALLIRROI BARTZIOKA
  • KALLIRROI BARTZIOKA's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #155250 by KALLIRROI BARTZIOKA
Replied by KALLIRROI BARTZIOKA on topic K2 extra fields - customisation
I copy/paste that at media/k2/assets/js/k2.js
Nothing changed. I also tried several css variations during the week. The only I manage to achieve is to change the input text color.
Can you please give a closer look at it?
Shouldn't it be set as default at the first place? as it is common practice for mandatory fields.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155448 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 extra fields - customisation
Can you send me a link and some dummy credentials.
The user should NOT have the ability to publish or edit other items.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • KALLIRROI BARTZIOKA
  • KALLIRROI BARTZIOKA's Avatar Topic Author
  • Offline
  • New Member
More
8 years 3 months ago #155449 by KALLIRROI BARTZIOKA
Replied by KALLIRROI BARTZIOKA on topic K2 extra fields - customisation
Hi,

"The user should NOT have the ability to publish or edit other items. "
I don't have any issue regarding publishing. I just want to display an asterisk next to required k2 extra fields

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


Powered by Kunena Forum