- Posts: 5
COMMUNITY FORUM
K2 extra fields - customisation
- KALLIRROI BARTZIOKA
-
Topic Author
- Offline
- New Member
Less
More
8 years 11 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
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.
- Javi Mata
-
- Offline
- Senior Member
8 years 11 months ago #154896
by Javi Mata
Twitter: @Javi_Mata
Web: www.javimata.com
Replied by Javi Mata on topic K2 extra fields - customisation
i think that k2Required have a point or a # before...
try using content: "\002A";
try using content: "\002A";
Twitter: @Javi_Mata
Web: www.javimata.com
Please Log in or Create an account to join the conversation.
- KALLIRROI BARTZIOKA
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
8 years 11 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.
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
8 years 11 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
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
-
- Offline
- Elite Member
Less
More
- Posts: 169
8 years 11 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>');
});
Please Log in or Create an account to join the conversation.
- KALLIRROI BARTZIOKA
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
8 years 11 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.
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 11 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.
The user should NOT have the ability to publish or edit other items.
Please Log in or Create an account to join the conversation.
- KALLIRROI BARTZIOKA
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 5
8 years 11 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
"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.