2 tilqicom Apr 23, 2010 03:47

Hi tilqicom!
Yes, i would like to disable link "link to url" you have a suggestion.
Thank you.
You can disable the whole field for yourself and the users by deleting the field from files.
OR
you can use if( $current_User->ID ==1) and show it to the Admin only assuming you havent changed it.
Allthough both methods are not foolproof, those are not possibly the best options.
Where are file? for:
"you can use if( $current_User->ID ==1) and show it to the Admin only assuming you havent changed it. "
managerblue wrote:
Where are file?
I gotta look into that, unfortunately i was just going to bed.I'll post exact insturctions how to do the above tomorrow.Lets hope meantime someone else gives that "better" other option
Thank you, tilqicom.
"post exact insturctions how to do the above tomorrow"
okay getting rid of the textarea in expert view should suffice.
open up your
...\inc\items\views\_item_expert.form.php
and modify the below lines
Line 135:
$Form->text_input( 'post_url', $edited_Item->get( 'url' ), 20, '', '', array('maxlength'=>255, 'style'=>'width: 100%;') );
to
$Form->hidden( 'post_url', $edited_Item->get( 'url' ), 20, '', '', array('maxlength'=>255, 'style'=>'width: 100%;') );
and also
Line 225:
$Form->text_input( 'post_urltitle', $edited_Item->get('urltitle'), 40, '', '', array('maxlength'=>210, 'style'=>'width: 100%;') );
to
$Form->hidden( 'post_urltitle', $edited_Item->get('urltitle'), 40, '', '', array('maxlength'=>210, 'style'=>'width: 100%;') );
remember this will only 'hide' that field, it's not the best solution to 'disable' that functionality, and you will lose your changes in the next upgrade, and do the whole thing again.
uhhm.. are you trying to disable the link to url field ?