Ticket #2538 (closed enhancement: fixed)

Opened 7 years ago

Last modified 5 years ago

Do we have a field property that means the help text is always expanded for that field?

Reported by: tmb Owned by: cjg
Priority: Customer Report Milestone: EPrints 3.2.x (general bugs/features for 3.2)
Component: - Version: 3.0-beta-1
Severity: normal Keywords:
Cc:

Description (last modified by cjg) (diff)

We have a feature on *searches* to show help, by default.

No such feature exists for input fields in the workflow.

If we were to do it, I would prefer it to be a property of the workflow, with the same options as for searches. Or possibly configurable in either eprint_fields.pl or workflow.

This would involve working on several parts of InputForm? including the surrounds, Component.pm, Field.pm and Field/Multi?.pm

I'm fine for it to go in 3.2 or even a new release of 3.1 if needed.

Change History

follow-up: ↓ 5   Changed 7 years ago by cjg

Is this a property of the field in eprints_field.pl or in the context of the workflow? ie <field name="foo" showhelp="yes" />

?

  Changed 7 years ago by cjg

  • milestone changed from EPrints 3.0 RC 1 to EPrints 3.1 beta

  Changed 6 years ago by cjg

  • type changed from defect to enhancement

  Changed 5 years ago by tmb

  • priority changed from unset to Customer Report
  • milestone changed from EPrints 3.x (new features go here) to EPrints 3.1.x

in reply to: ↑ 1   Changed 5 years ago by cjg

  • description modified (diff)

Replying to cjg:

Is this a property of the field in eprints_field.pl or in the context of the workflow? ie <field name="foo" showhelp="yes" /> ?

  Changed 5 years ago by tdb01r

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from EPrints 3.1.x to EPrints 3.2

Resolved in r4413.

I've added a property on <component> which is collapse_help="no". This will prevent the help from starting collapsed.

So to be clever you could do this:

<epc:choose>
<epc:when expr="usertype='admin'>
<component><field ref="title"/></component>
</epc:when>
<epc:otherwise>
<component collapse_help="no"><field ref="title"/></component>
</epc:otherwise>
</epc:choose>
Note: See TracTickets for help on using tickets.