Change maxlength of apartment title

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Change maxlength of apartment title

Postby saha66 » 08 Oct 2014, 17:14

Hi,

I want to change the maxlength of apartment title in adding a property from 255 to 40 characters but i did not find any thing.

And also want to know how to change the size of image displaying in listings.

Can anybody help me.

Thanks in advance.
saha66
Passer
 
Posts: 30
Joined: 28 Aug 2014, 09:31
Reputation point: 0

Re: Change maxlength of apartment title

Postby Xpycm » 08 Oct 2014, 18:35

Hi

1) protected\modules\apartments\models\Apartment.php file
In this file replace
Code: Select all
array('title', 'i18nLength', 'max' => 255), 

with
Code: Select all
array('title', 'i18nLength', 'max' => 40), 


for the study: http://www.yiiframework.com/wiki/56/

2) themes\classic\views\modules\apartments\views\_view.php file
Code: Select all
$res = Images::getMainThumb(300, 200, $data->images); 


300 - width, 200 - height
Dropbox
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 281
Joined: 30 Dec 2011, 11:06
Reputation point: 2


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 26 guests

cron