1 njit Nov 24, 2005 23:23
3 njit Nov 25, 2005 07:35
blueyed wrote:
But regarding the renderers it seems you rather want to hide just the fieldset, so that the default ones get set when you save the post. You could do the same with the other elements:
Find out the HTML ID of the element (hoping that they have one) and then in the .css file use
#id_of_elemen { display:none; }
I think hiding it through the CSS is indeed the way to go. How can i find the Element-ID of the Items i need to hide?
4 njit Nov 25, 2005 08:25
AUTOBR looks like this:
// --------------------------- AUTOBR -------------------------------------- ?>
<input type="checkbox" class="checkbox" name="post_autobr" value="1" <?php
if( $post_autobr ) echo ' checked="checked"' ?> id="autobr" tabindex="6" /><label for="autobr">
<strong><?php echo T_('Auto-BR') ?></strong> <span class="notes"><?php echo T_('This option is deprecated, you should avoid using it.') ?></span></label><br />
Where can i use the 0 && ?? I tried it with the IF but that does not work..
5 njit Nov 25, 2005 08:44
I found out that placing a <div id="autobr">...</div> worked. I have been able to hide the AutoBR and the Upload button in the CSS.
Thanks for pointing me in the right direction
Thinking about Phoenix, the next major version to be released, this should get handled with a "simplified Admin Skin".
We don't have one yet, nor do we have hooks for this, but that would be the way to go.
ATM you could just go to those IFs and put an "0 &&" at the beginning of the condition and they'll always evaluate to false.
But regarding the renderers it seems you rather want to hide just the fieldset, so that the default ones get set when you save the post. You could do the same with the other elements:
Find out the HTML ID of the element (hoping that they have one) and then in the .css file use
I've just looked at Phoenix' code, and there are no elements yet, at least for the Files and Upload button, so you probably have to add them, if you want to use the CSS-method for them (I'd just comment the Upload button out).
Hope that helps.