insert white space at the beginning of the name of the facilities

More
8 years 11 months ago #5644 by igino.addari
Hi
I would like to automatically delete the white space at the beginning of the name of the facilities.
I do not know in which file write trim.
I had purchased the plug hub and if the hotel owner writes the name with white space at the beginning is in first place in alphabetical order.

Regards

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

More
8 years 11 months ago - 8 years 11 months ago #5646 by vietvh
Hi,

Nice week to you.

About your request, you can open this file:

/administrator/components/com_solidres/models/facility.php

Then insert the following line at the end of method prepareTable() (around line 119)
$table->title = trim($table->title);

We will consider adding this change as well.

Regards,
Last edit: 8 years 11 months ago by vietvh. Reason: Corrected file path
The following user(s) said Thank You: igino.addari

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

More
8 years 11 months ago #5648 by igino.addari
Hi
I'm sorry but this modify not work?
Where do I put the line more precisely?
Thanks

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

More
8 years 11 months ago #5651 by vietvh
Hi,

Please create a new support ticket with your website address, super admin account and FTP account, we will check it for you.

Regards,

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

More
8 years 11 months ago #5661 by igino.addari
I am in localhost.
You could send me the file facility.php changed?

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

More
8 years 11 months ago #5668 by vietvh
Hi,

We've sent it to your email.

Regards,
The following user(s) said Thank You: igino.addari

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

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?