How to change the Summary field type

9 years 6 months ago #1 by hiunnati
While creating a new issue, in "Details - Issue" section Summary and Description comes as Text Area by default.

How to change the type of the Summary field to Text Box ?

Please Log in or Create an account to join the conversation.

9 years 6 months ago #2 by chrisc
The definition type is specified in the model form file.

In the models/forms directory is a file named itissues.xml. Edit the issue_summary field and change the type.

Note that there are files for the back end and the front end. I presume you will be changing the front end file.

You should also be aware that this would be a custom change that you would be required to make every time you upgraded to a bnew version of the component.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

9 years 6 months ago #3 by hiunnati
Hello,

Can you please help me how to change the "font end file" ? i tried something but it did not worked

i have a component named eXtplorer
that shows the folder structure of my site
then i visited to /..components/com_issuetracker/models/forms
i edited the file itissues.xml line 18

<field name="issue_summary" type="textarea"
label="COM_ISSUETRACKER_FIELD_ISSUE_SUMMARY_LABEL"
description="COM_ISSUETRACKER_FIELD_ISSUE_SUMMARY_DESC"
size="255" rows="2" cols="50"
class="inputbox textarea-span"
required="true" />

to

<field name="issue_summary" type="text"
label="COM_ISSUETRACKER_FIELD_ISSUE_SUMMARY_LABEL"
description="COM_ISSUETRACKER_FIELD_ISSUE_SUMMARY_DESC"
size="25"
required="true" />


Is this correct? because it did not worked :(

Please Log in or Create an account to join the conversation.

9 years 6 months ago #4 by chrisc
Try the following:

<field name="issue_summary" type="text" size="25" class="inputbox"
label="COM_ISSUETRACKER_FIELD_ISSUE_SUMMARY_LABEL"
description="COM_ISSUETRACKER_FIELD_ISSUE_SUMMARY_DESC"
required="true" filter="safehtml" />

Remember to clear any cache etc. that may be in use.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

9 years 6 months ago #5 by hiunnati
I am little confused.
After trying this, all the 'User' peoples are able to see the "summary" as text field
but the 'super Users' and 'Admin" is able to view it as text field.

is this correct?

Note: i also tried to change the field 'required = "false" ' just to check
but it did not worked. all the 'Issue Summary" field remains "Required" i.e. * appears next to it.

Please Log in or Create an account to join the conversation.

9 years 6 months ago #6 by chrisc
Ahh you are asking about the issue form not necessarily the issue display.

There is an extra bit of magic involved which modifies the fields displayed in the form, based upon who is viewing the issue.

In the front end com_issuetracker/views/form/view.html.php file there are a number of checks performed which modify the fields, you need to look at that file and make some changes in there as well.

Issue admin and staff generally always get a WYSIWYG editor, so that they have more control over the fields and can generally be more trusted. If you want to change that then the above file is the one to modify.

The issue_summary has to be a required field since it is defined as such in the database table. The above file is also involved in ensuring it is required.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries