- Posts: 28
- Thank you received: 0
OS Property support center
Full description required
- Davor
- Topic Author
- Offline
- Junior Member
-
Less
More
10 years 6 months ago #52831
by Davor
Full description required was created by Davor
Hello I would like to know if there is an option to check require full description. I would like to make it mandatory. On the same not how can I do/undo that for small description?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13057
- Thank you received: 1696
10 years 6 months ago #52857
by Mr. Dam
Replied by Mr. Dam on topic Full description required
Hi Davor,
To make the full description is mandatory, you can follow these steps.
1. Open file: components > com_osproperty > helpers > layouts > propertyedit.php
2. find
<div class="control-group">
<label class="control-label">
<?php echo JText::_('OS_FULL_DESCRIPTION')?>
</label>
<div class="controls">
<?php
echo $editor->display( 'pro_full_desc', stripslashes($row->pro_full_desc) , '95%', '250', '75', '20',false ) ;
?>
</div>
</div>
and add this code bellow
<?php
$require_field .= "pro_full_desc,";
$require_label .= JText::_('OS_FULL_DESCRIPTION').",";
?>
Good luck
Dam
To make the full description is mandatory, you can follow these steps.
1. Open file: components > com_osproperty > helpers > layouts > propertyedit.php
2. find
<div class="control-group">
<label class="control-label">
<?php echo JText::_('OS_FULL_DESCRIPTION')?>
</label>
<div class="controls">
<?php
echo $editor->display( 'pro_full_desc', stripslashes($row->pro_full_desc) , '95%', '250', '75', '20',false ) ;
?>
</div>
</div>
and add this code bellow
<?php
$require_field .= "pro_full_desc,";
$require_label .= JText::_('OS_FULL_DESCRIPTION').",";
?>
Good luck
Dam
Please Log in or Create an account to join the conversation.
- Davor
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
10 years 5 months ago #52903
by Davor
Replied by Davor on topic Full description required
Great will try that, but with the new release of OS Property I am guessing this will be overridden? Can I override the file in template folder?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13057
- Thank you received: 1696
10 years 5 months ago #52919
by Mr. Dam
Replied by Mr. Dam on topic Full description required
Hi Davor,
Of course, when you install new version of OS Property, your modified files will be overwriten. But before installing new version of component, you can backup your modified file and copy it again after installing new OS Property version.
Thanks
Dam
Of course, when you install new version of OS Property, your modified files will be overwriten. But before installing new version of component, you can backup your modified file and copy it again after installing new OS Property version.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Davor
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 28
- Thank you received: 0
10 years 5 months ago #52935
by Davor
Replied by Davor on topic Full description required
OK, but the more modifications are made, the harder is to keep track of all the files and changes. Could you do an override in the template folder? Please consider adding a check option for required or not in the next release. This would come in very handy.
Thank you again.
Thank you again.
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.