I found a topic for this, but only for the 2.4.1 editing the form.php.
I'm using joomla 1.7 and K2 2.5.4 and the file form.php don't axist anymore. The file that I have found was itenform.php, but I coundn't found the code they talk about.
There may be chages but this code from the old forum for 2.4.1 by Olivier worked for me
You can do it like this :
- Override the core K2 item form layout by copying the file'components/com_k2/views/item/tmpl/form.php' to 'templates/YOURJOOMLATEMPLATE/html/com_k2/item/form.php' - Edit this newfile and add this js code to it (in 2.4.1, i've added this in line 208, just before the end of the K2 js part) :
Is exactly what i did have on k2.4.1 and was working perfect. Then. Now, after i upgraded k2 to 2.5.5, the override is not overriding anymore.
Is Joomla 1.5.26 with k2 2.5.5 ( just upgraded from 2.4.1)
I have edited ..\media\k2\assets\js\k2.js at the line 239 from
$K2('#catid option[disabled]').css('color', '#808080');
to
$K2('#catid option[disabled]').css('font-size', '0px');
not nice but is working on Firefox. Not working on IE9, Chrome, etc.
I have edited ..\media\k2\assets\js\k2.js at the line 239 from $K2('#catid option[disabled]').css('color','#808080'); to $K2('#catid option[disabled]').css('font-size','0px');
is not a good solutution.
Anyone knows how to hide the disabled categories when adding an article? (disabled = depending on usergroup)