Keyword

Re: customize my front-end editor

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago - 10 years 11 months ago #61354 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: customize my front-end editor
Hello Alex,

You need to set the correct category permission to the K2 User group your authors belong to.
From that point it is very easy with a simple JS script to remove or hide the disabled options from the select box.

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

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

More
10 years 11 months ago #61355 by Alex C.
Replied by Alex C. on topic Re: customize my front-end editor
Thank you Krikor for your reply, however, I'm very new to this.

I am setting up a website where the registered users can submit articles.
I have 16 main Categories and 10 sub-categories for each.
I would like to make it easier for the user to click on a link for a Category and then they would select from the drop down list only the sub-category where they want to add an article.

I know of templates overrides and all I need is a way to get itemform.php to display a specif Category with its respective children categories.

Can you help with this? or anyone out there?

Another issue I have is that I want to disable access to the server in the front end in the attachments tab, any ideas on how to do this, in the image tab I commented out the 'browser button' but I'm not able to in attachments?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #61356 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: customize my front-end editor
This requires some coding, If you don't have enough PHP experience I would'nt recommend editing extensively that form. Why don't instead use JS to alter the value of the select box?

As for the attachments the safest method is to use an .htaccess file it's the safest method.

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

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

More
10 years 11 months ago #61357 by webloesung
Replied by webloesung on topic Re: customize my front-end editor
Hello,
the adjustment for the listing only allowed categories (as stated Alex C.) is quite needed. We have same situation and would prefer to provide the user with better usability (especially in cases if user will choose the category he or she doesn't allow to add the article to -> error producing is guarranted :( ).


In case this requires some coding:
- could you please support us with giving a hint towards it
- or is it possible to have this in the upcoming K2 upgrade(s)?

Thank you!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 11 months ago #61358 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: customize my front-end editor
Thank you for feedback.

I can give you a push towards the right direction.
Provided you have already overriden itemform.php you need to add a small jQuery script which removed the disabled options from the select box.

A sample script can be found here: forum.jquery.com/topic/removing-disabled-options-from-a-select-box

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

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


Powered by Kunena Forum