Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-01-07 15:37:13
- matteo
- Member
- Registered: 2013-12-19
- Posts: 26
How Hide parts of custom fields in article panel
Can I delet or hide parts of custom field?
For example can I hide the label “Bozza” or “to approve” by custom field “State”?
{Edited topic title to better match the request. – Uli}
Last edited by uli (2014-01-07 16:43:18)
Offline
Re: How Hide parts of custom fields in article panel
Hello, try rah_replace plugin:
<txp:rah_replace from="Bozza,to approve" to="">
<txp:custom_field name="State" />
</txp:rah_replace>
Offline
#3 2014-01-07 16:06:30
- matteo
- Member
- Registered: 2013-12-19
- Posts: 26
Re: How Hide parts of custom fields in article panel
I meant in the Textpattern admin …
Offline
#4 2014-01-07 16:11:57
- matteo
- Member
- Registered: 2013-12-19
- Posts: 26
Re: How Hide parts of custom fields in article panel
For example in content>write change the parts of customfields and replace with a new text.
I tried with jquery but a some parts when digit the button save appear again.
The console display the error : event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Offline
#5 2014-01-07 16:12:04
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How Hide parts of custom fields in article panel
CSS’s display: none
? Or do you want to remove the text field’s content? jQuery will be handy for that.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#6 2014-01-07 16:13:49
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How Hide parts of custom fields in article panel
matteo wrote #277865:
For example in content>write change the parts of customfields and replace with a new text.
I tried with jquery but a some parts when digit the button save appear again.
The console display the error : event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
Please be more specific. What exactly do you want to address?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#7 2014-01-07 16:14:47
- matteo
- Member
- Registered: 2013-12-19
- Posts: 26
Re: How Hide parts of custom fields in article panel
I tried with jquery but a some parts when digit the button save appear again.
The console display the error : event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
CSS display: none is however a good idea. thanks!
Offline
#8 2014-01-07 16:26:09
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: How Hide parts of custom fields in article panel
If you need to rename a custom_field label, however, and have spaces, apostrophes, accented letters etc., all the stuff that easily breaks TXP’s faultless working, then there’s a plugin from Robert: wet_babble.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline