diff --git a/src/components/com_tjucm/media/css/tjucm.css b/src/components/com_tjucm/media/css/tjucm.css index 36ccdf27..49bcf13d 100644 --- a/src/components/com_tjucm/media/css/tjucm.css +++ b/src/components/com_tjucm/media/css/tjucm.css @@ -7,6 +7,6 @@ margin-left:5px !important; width:200px !important; } -p.wordwrap-for-long-description{ +p.tj-wordwrap{ word-break: break-word; } diff --git a/src/components/com_tjucm/site/layouts/detail/fields.php b/src/components/com_tjucm/site/layouts/detail/fields.php index 4bea8516..180bf14d 100644 --- a/src/components/com_tjucm/site/layouts/detail/fields.php +++ b/src/components/com_tjucm/site/layouts/detail/fields.php @@ -1,10 +1,10 @@ + * @package TJ-UCM + * + * @author TechJoomla * @copyright Copyright (c) 2009-2019 TechJoomla. All rights reserved. - * @license GNU General Public License version 2 or later; see LICENSE.txt + * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access @@ -143,7 +143,12 @@ // Call the JLayout recursively to render fields of ucmsubform $layout = new JLayoutFile('fields', JPATH_ROOT . '/components/com_tjucm/layouts/detail'); - echo $layout->render(array('xmlFormObject' => $ucmSubFormXmlFieldSets, 'formObject' => $ucmSubformFormObject, 'itemData' => $ucmSubFormRecordData, 'isSubForm' => 1)); + + echo $layout->render( + array('xmlFormObject' => $ucmSubFormXmlFieldSets, + 'formObject' => $ucmSubformFormObject, + 'itemData' => $ucmSubFormRecordData, 'isSubForm' => 1) + ); echo "
"; } } @@ -157,7 +162,9 @@ $layoutToUse = (array_key_exists($field->type, $fieldLayout)) ? $fieldLayout[$field->type] : 'field'; ?>
-
label; ?>:
+
+ label; ?>: +
render(array('fieldXml' => $xmlField, 'field' => $field)); + // To align text, textarea and textareacounter fields properly - if($field->type=='Textarea'|| $field->type=='Textareacounter'|| $field->type=='Text'){ - ?> -

type == 'Textarea'|| $field->type == 'Textareacounter'|| $field->type == 'Text') + { + ?> +

+ +

+