- Posts: 9
COMMUNITY FORUM
How to use a different frontend editor?
- Chris Vrakotas
-
Topic Author
- Offline
- New Member
I'm designing a site, where in the frontend registered users will create K2 items.
I want to modify the frontend page. The file is ../components/com_k2/templates/default/itemform.php
JCE editor is embodied in this file, normal, because I use it in Joomla.
But, I want registered users to use a simpler editor than JCE.
Is it possible to use another editor? How can I do it?
Thanks
Chris
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can use a different profile for JCE.
www.joomlacontenteditor.net/support/documentation/100-profiles/300-profiles-about
Alternatively you can change the preferred editor of each user.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris Vrakotas
-
Topic Author
- Offline
- New Member
- Posts: 9
Thanks a lot for the answer, I tried and It worked!!
I believe you've understood that I want a very simple UI, for the user, so I have 2 more questions
1. If I remove "Title alias (URL)" field, will it be ok? I know aliases are very important for Joomla, that's why I'm not sure.
2. After toggle right sidebar, I only want the circled fields about publishing dates to be visible (see attached pic imgur.com/AScaIJX ). How I remove the rest?
Thanks
Chris
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can also use CSS in order to hide it.
2. You can override the itemform.php , take a look at the fields -> github.com/getk2/k2/blob/master/components/com_k2/templates/default/itemform.php#L842-L865
You can basically hide the not-needed ones.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris Vrakotas
-
Topic Author
- Offline
- New Member
- Posts: 9
Regarding alias field I added
.alias {
display: none;
}
at template's custom css file (Gantry/Helium) but it's not working.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Also use clip: rect(0,0,0,0) and position: absolute instead of display: none.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
I added
#alias {
clip: rect(0,0,0,0);
position: absolute;
}
but its not working.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Love the Ψευδοστοιχείο translation :P
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
The new screengrab
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
jmp.sh/8o2Red7
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Junior Member
- Posts: 37
I've managed to hide the field alias (yesterday, I didn't recompile css for specific template part).
Now, as you can see it remains the label. What css rule I have to add?
imgur.com/a/UrETJ
Thanks
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Create a new class like this:
.visually-hidden {
position: absolute;
clip: rect(0,0,0,0);
}
Then apply that class to each you want to hide.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- ale
-
- Offline
- New Member
- Posts: 10
<input class="text_area k2TitleAliasBox" type="hidden" name="alias" id="alias" maxlength="250" value="<?php echo $this->row->alias; ?>" />
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.