TOPIC:

Re: Column widths in list view 5 years 10 months ago #123101

  • mamekedi
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
hello,

Help Help :)
My first problem how can i solve the problem with column going out of range in my website (see my attachment)
below my default.php file if that's what's needed to change?.
I'm using content builder for joomla.

p.s.

is it possible to use readmore button or text in listview


--


<?php
/**
* @package ContentBuilder
* @author Markus Bopp
* @link www.crosstec.org
* @license GNU/GPL
*/

defined('_JEXEC') or die('Restricted access');

require_once(JPATH_COMPONENT_ADMINISTRATOR . DS . 'classes' . DS . 'contentbuilder_helpers.php');

$language_allowed = contentbuilder::authorizeFe('language');
$edit_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('edit') : contentbuilder::authorize('edit');
$delete_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('delete') : contentbuilder::authorize('delete');
$view_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('view') : contentbuilder::authorize('view');
$new_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('new') : contentbuilder::authorize('new');
$state_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('state') : contentbuilder::authorize('state');
$publish_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('publish') : contentbuilder::authorize('publish');
$rating_allowed = class_exists('cbFeMarker') ? contentbuilder::authorizeFe('rating') : contentbuilder::authorize('rating');

JFactory::getDocument()->addScript(JURI::root(true).'/components/com_contentbuilder/assets/js/contentbuilder.js');

jimport('joomla.version');
$version = new JVersion();
$th = 'td';
if (version_compare($version->getShortVersion(), '1.6', '>=')) {
$th = 'th';
}
$___getpost = 'get';
$___tableOrdering = "function tableOrdering";
if (version_compare($version->getShortVersion(), '3.0', '>=')) {
$___getpost = 'post';
$___tableOrdering = "Joomla.tableOrdering = function";
}
?>
<?php JFactory::getDocument()->addStyleDeclaration($this->theme_css);?>
<?php JFactory::getDocument()->addScriptDeclaration($this->theme_js);?>
<style type="text/css">
.cbFieldFix{
margin-bottom: 9px;
}
.cbPagesCounter{
float: left;
padding-right: 10px;
padding-top: 4px;
}
#limit{
max-width: 50px;
}
</style>
<script language="javascript" type="text/javascript">
<!--
<?php echo $___tableOrdering;?>( order, dir, task ) {
var form = document.adminForm;
form.limitstart.value = <?php echo JRequest::getInt('limitstart',0)?>;
form.filter_order.value = order;
form.filter_order_Dir.value = dir;
document.adminForm.submit( task );
}
function contentbuilder_selectAll(checker){
for(var i = 0; i < document.adminForm.elements.length; i++){
if( document.adminForm.elements.name == 'cid[]' ){
if(checker.checked){
document.adminForm.elements.checked = true;
}else{
document.adminForm.elements.checked = false;
}
}
}
}
function contentbuilder_state(){
document.getElementById('controller').value='edit';
document.getElementById('view').value='edit';
document.getElementById('task').value='state';
document.adminForm.submit();
}
function contentbuilder_publish(){
document.getElementById('controller').value='edit';
document.getElementById('view').value='edit';
document.getElementById('task').value='publish';
document.adminForm.submit();
}
function contentbuilder_language(){
document.getElementById('controller').value='edit';
document.getElementById('view').value='edit';
document.getElementById('task').value='language';
document.adminForm.submit();
}
function contentbuilder_delete(){
var confirmed = confirm('<?php echo JText::_('COM_CONTENTBUILDER_CONFIRM_DELETE_MESSAGE');?>');
if(confirmed){
document.getElementById('controller').value='edit';
document.getElementById('view').value='edit';
document.getElementById('task').value='delete';
document.adminForm.submit();
}
}
-->
</script>
<div class="cbListView<?php echo $this->page_class; ?>">
<form action="" method="<?php echo $___getpost;?>" name="adminForm" id="adminForm" onsubmit="return false">
<?php
if($this->export_xls):
?>
<div class="hidden-phone" style="float: right; text-align: right;">
<a href="<?php echo JRoute::_('index.php?option=com_contentbuilder&controller=export&id='.JRequest::getInt('id',0).'&type=xls&format=raw&tmpl=component'); ?>"><div class="cbXlsExportButton" style="background-image: url(components/com_contentbuilder/images/xls.png); background-repeat: no-repeat; width: 16px; height: 16px;" alt="Export"></div></a>
</div>
<div style="clear: both;"></div>
<?php
endif;
?>

<?php
if( ( $this->show_page_heading && $this->page_title ) || $new_allowed || $delete_allowed ){
?>
<h1 class="contentheading">
<?php echo $this->page_title; ?>
</h1>
<?php
}
?>

<?php echo $this->intro_text?>

<div style="float: right; text-align: right;">
<?php
if ($new_allowed) {
?>
<button class="button btn btn-primary cbButton cbNewButton" onclick="location.href='<?php echo JRoute::_( 'index.php?option=com_contentbuilder&controller=edit&backtolist=1&id='.JRequest::getInt('id', 0).(JRequest::getVar('tmpl', '') != '' ? '&tmpl='.JRequest::getVar('tmpl', '') : '').(JRequest::getVar('layout', '') != '' ? '&layout='.JRequest::getVar('layout', '') : '').'&record_id=&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order') ); ?>'"><?php echo JText::_('COM_CONTENTBUILDER_NEW'); ?></button>
<?php
}
?>
<?php
if ($delete_allowed) {
?>
<button class="button btn btn-primary cbButton cbDeleteButton" onclick="contentbuilder_delete();"><?php echo JText::_('COM_CONTENTBUILDER_DELETE'); ?></button>
<?php
}
if ($delete_allowed || $new_allowed) {
?>
<div style="padding-bottom: 10px;"></div>
<?php
}
?>
</div>
<div style="clear: both;"></div>

<?php
if($state_allowed || $publish_allowed || $language_allowed){
?>
<?php
if ($state_allowed && count($this->states) ||
$publish_allowed ||
$language_allowed) {
echo '<div id="cbBulkTitleWrap" style="float: left; padding-right: 5px;">'.JText::_('COM_CONTENTBUILDER_BULK_OPTIONS') . ' </div>';
}
if ($state_allowed && count($this->states)) {
?>
<div id="cbEditStateWrap" style="float: left; padding-right: 5px;">
<select style="max-width: 100px;" name="list_state">
<option value="0"> - <?php echo JText::_('COM_CONTENTBUILDER_EDIT_STATE'); ?> - </option>
<?php
foreach($this->states As $state){
?>
<option value="<?php echo $state?>"><?php echo $state?></option>
<?php
}
?>
</select>
<button class="button btn btn-secondary cbButton cbSetButton cbFieldFix" onclick="contentbuilder_state();"><?php echo JText::_('COM_CONTENTBUILDER_SET'); ?></button>
</div>
<?php
}
?>
<?php
if ($publish_allowed) {
?>
<div id="cbPublishWrap" style="float: left; padding-right: 5px;">
<select style="max-width: 100px;" name="list_publish">
<option value="-1"> - <?php echo JText::_('COM_CONTENTBUILDER_PUBLISHED_UNPUBLISHED'); ?> - </option>
<option value="1"><?php echo JText::_('PUBLISH')?></option>
<option value="0"><?php echo JText::_('UNPUBLISH')?></option>
</select>
<button class="button btn btn-secondary cbButton cbSetButton cbFieldFix" onclick="contentbuilder_publish();"><?php echo JText::_('COM_CONTENTBUILDER_SET'); ?></button>
</div>
<?php
}
?>
<?php
if ($language_allowed) {
?>
<div id="cbLanguageWrap" style="float: left; padding-right: 5px;">
<select style="max-width: 100px;" name="list_language">
<option value="*"> - <?php echo JText::_('COM_CONTENTBUILDER_LANGUAGE'); ?> - </option>
<option value="*"><?php echo JText::_('COM_CONTENTBUILDER_ANY'); ?></option>
<?php
foreach($this->languages As $filter_language){
?>
<option value="<?php echo $filter_language; ?>"><?php echo $filter_language; ?></option>
<?php
}
?>
</select>
<button class="button btn btn-secondary cbButton cbSetButton cbFieldFix" onclick="contentbuilder_language();"><?php echo JText::_('COM_CONTENTBUILDER_SET'); ?></button>
</div>
<?php
}
?>
<div style="clear: both;"></div>
<?php
}

if($this->display_filter){
?>
<?php
if($this->display_filter){
$filter_cnt = 0;
?>
<div id="cbFilterTitleWrap" style="float: left; padding-right: 5px;">
<?php echo JText::_('COM_CONTENTBUILDER_FILTER') . ' '; ?>
</div>
<div id="cbFilterWrap" style="float: left; padding-right: 5px;">
<input style="max-width: 150px;" type="text" id="contentbuilder_filter" name="filter" value="<?php echo $this->escape($this->lists); ?>" class="inputbox" onchange="document.adminForm.submit();"/>
</div>
<?php
if ($this->list_state && count($this->states)) {
?>
<div id="cbStateFilterWrap" style="float: left; padding-right: 5px;">
<select style="max-width: 100px;" name="list_state_filter" id="list_state_filter" onchange="document.adminForm.submit();">
<option value="0"> - <?php echo JText::_('COM_CONTENTBUILDER_EDIT_STATE'); ?> - </option>
<?php
foreach($this->states As $state){
?>
<option value="<?php echo $state?>"<?php echo $this->lists == $state ? ' selected="selected"' : ''; ?>><?php echo $state?></option>
<?php
}
?>
</select>
</div>
<?php
$filter_cnt++;
}

if($this->list_publish && $publish_allowed){
?>
<div id="cbPublishFilterWrap" style="float: left; padding-right: 5px;">
<select style="max-width: 100px;" name="list_publish_filter" id="list_publish_filter" onchange="document.adminForm.submit();">
<option value="-1"> - <?php echo JText::_('COM_CONTENTBUILDER_PUBLISHED_UNPUBLISHED'); ?> - </option>
<option value="1"<?php echo $this->lists == 1 ? ' selected="selected"' : ''; ?>><?php echo JText::_('PUBLISHED')?></option>
<option value="0"<?php echo $this->lists == 0 ? ' selected="selected"' : ''; ?>><?php echo JText::_('UNPUBLISHED')?></option>
</select>
</div>
<?php
$filter_cnt++;
}

if($this->list_language){
?>
<div id="cbLanguageFilterWrap" style="float: left; padding-right: 5px;">
<select style="max-width: 100px;" name="list_language_filter" id="list_language_filter" onchange="document.adminForm.submit();">
<option value=""> - <?php echo JText::_('COM_CONTENTBUILDER_LANGUAGE'); ?> - </option>
<?php
foreach($this->languages As $filter_language){
?>
<option value="<?php echo $filter_language; ?>"<?php echo $this->lists == $filter_language ? ' selected="selected"' : ''; ?>><?php echo $filter_language; ?></option>
<?php
}
?>
</select>
</div>
<?php
$filter_cnt++;
}
?>
<div id="cbSearchButtonWrap" style="float: left; padding-right: 5px;">
<button class="button btn btn-secondary cbButton cbSearchButton" onclick="document.adminForm.submit();"><?php echo JText::_('COM_CONTENTBUILDER_SEARCH') ?></button>
<button class="button btn btn-secondary cbButton cbResetButton" onclick="document.getElementById('contentbuilder_filter').value='';<?php echo $this->list_state && count($this->states) ? "if(document.getElementById('list_state_filter')) document.getElementById('list_state_filter').selectedIndex=0;" : ""; ?><?php echo $this->list_publish ? "if(document.getElementById('list_publish_filter')) document.getElementById('list_publish_filter').selectedIndex=0;" : ""; ?>document.adminForm.submit();"><?php echo JText::_('COM_CONTENTBUILDER_RESET') ?></button>
</div>
<?php
}
}
?>

<table class="category table table-striped" width="100%" border="0" cellspacing="0" cellpadding="2">
<thead>
<tr>
<?php
if($this->show_id_column){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone" width="5">
<?php echo JHTML::_('grid.sort', htmlentities('COM_CONTENTBUILDER_ID', ENT_QUOTES, 'UTF-8'), 'colRecord', $this->lists, $this->lists ); ?>
</<?php echo $th; ?>>
<?php
}

if($this->select_column && ( $delete_allowed || $state_allowed || $publish_allowed ) ){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone" width="20">
<input class="contentbuilder_select_all" type="checkbox" onclick="contentbuilder_selectAll(this);"/>
</<?php echo $th; ?>>
<?php
}

if($this->edit_button && $edit_allowed){
?>
<<?php echo $th; ?> class="sectiontableheader" width="20">
<?php echo JText::_('COM_CONTENTBUILDER_EDIT'); ?>
</<?php echo $th; ?>>
<?php
}

if($this->list_state){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone">
<?php echo JText::_('COM_CONTENTBUILDER_EDIT_STATE'); ?>
</<?php echo $th; ?>>
<?php
}

if($this->list_publish && $publish_allowed){
?>
<<?php echo $th; ?> class="sectiontableheader" width="20">
<?php echo JText::_('PUBLISHED'); ?>
</<?php echo $th; ?>>
<?php
}

if($this->list_language){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone" width="20">
<?php echo JText::_('COM_CONTENTBUILDER_LANGUAGE'); ?>
</th>
<?php
}

if($this->list_article){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone" width="20">
<?php echo JHTML::_('grid.sort', htmlentities('COM_CONTENTBUILDER_ARTICLE', ENT_QUOTES, 'UTF-8'), 'colArticleId', $this->lists, $this->lists ); ?>
</th>
<?php
}

if($this->list_author){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone" width="20">
<?php echo JHTML::_('grid.sort', htmlentities('COM_CONTENTBUILDER_AUTHOR', ENT_QUOTES, 'UTF-8'), 'colAuthor', $this->lists, $this->lists ); ?>
</th>
<?php
}

if($this->list_rating){
?>
<<?php echo $th; ?> class="sectiontableheader hidden-phone" width="20">
<?php echo JHTML::_('grid.sort', htmlentities('COM_CONTENTBUILDER_RATING', ENT_QUOTES, 'UTF-8'), 'colRating', $this->lists, $this->lists ); ?>
</th>
<?php
}

if($this->labels){
$label_count = 0;
$hidden = ' hidden-phone';
foreach($this->labels As $reference_id => $label){
if($label_count == 0){
$hidden = '';
}else{
$hidden = ' hidden-phone';
}
?>
<<?php echo $th; ?> class="sectiontableheader<?php echo $hidden;?>">
<?php echo JHTML::_('grid.sort', nl2br( htmlentities( contentbuilder_wordwrap( $label, 20, "\n", true ), ENT_QUOTES, 'UTF-8') ), "col$reference_id", $this->lists, $this->lists ); ?>
</<?php echo $th; ?>>
<?php
$label_count++;
}
}
?>
</tr>
</thead>
<tbody>
<?php
$k = 0;
$n = count( $this->items );
for ($i=0; $i < $n; $i++)
{
$row = $this->items[$i];

$label = '';
$first = '';
foreach($row As $key => $value){
if(!$first && $key != 'colRecord'){
$first = html_entity_decode(cbinternal(strip_tags($value)), ENT_QUOTES, 'UTF-8');
}
// filtering out disallowed columns
if(str_replace('col','',$key) == $this->title_field ){
$label = html_entity_decode(cbinternal(strip_tags($value)), ENT_QUOTES, 'UTF-8');
break;
}
}

if(!$label && $first){
$label = cbinternal($first);
}
$label = $label ? ': ' . $label : '';
$this->slug = html_entity_decode($this->slug, ENT_QUOTES, 'UTF-8');
$this->slug2 = html_entity_decode($this->slug2, ENT_QUOTES, 'UTF-8');

$link = JRoute::_( 'index.php?option=com_contentbuilder&title='.contentbuilder::stringURLUnicodeSlug($this->slug.'-'.$this->slug2.$label).'&controller=details&id='.$this->form_id.'&record_id='.$row->colRecord.'&Itemid='.JRequest::getInt('Itemid',0).(JRequest::getVar('tmpl', '') != '' ? '&tmpl='.JRequest::getVar('tmpl', '') : '').(JRequest::getVar('layout', '') != '' ? '&layout='.JRequest::getVar('layout', '') : '').'&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order') );
$edit_link = JRoute::_( 'index.php?option=com_contentbuilder&controller=edit&backtolist=1&id='.$this->form_id.'&record_id='.$row->colRecord.'&Itemid='.JRequest::getInt('Itemid',0).(JRequest::getVar('tmpl', '') != '' ? '&tmpl='.JRequest::getVar('tmpl', '') : '').(JRequest::getVar('layout', '') != '' ? '&layout='.JRequest::getVar('layout', '') : '').'&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order') );
$publish_link = JRoute::_( 'index.php?option=com_contentbuilder&controller=edit&task=publish&backtolist=1&id='.$this->form_id.'&list_publish=1&cid[]='.$row->colRecord.'&Itemid='.JRequest::getInt('Itemid',0).(JRequest::getVar('tmpl', '') != '' ? '&tmpl='.JRequest::getVar('tmpl', '') : '').(JRequest::getVar('layout', '') != '' ? '&layout='.JRequest::getVar('layout', '') : '').'&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order') );
$unpublish_link = JRoute::_( 'index.php?option=com_contentbuilder&controller=edit&task=publish&backtolist=1&id='.$this->form_id.'&list_publish=0&cid[]='.$row->colRecord.'&Itemid='.JRequest::getInt('Itemid',0).(JRequest::getVar('tmpl', '') != '' ? '&tmpl='.JRequest::getVar('tmpl', '') : '').(JRequest::getVar('layout', '') != '' ? '&layout='.JRequest::getVar('layout', '') : '').'&limitstart='.JRequest::getInt('limitstart',0).'&filter_order='.JRequest::getCmd('filter_order') );
$select = '<input type="checkbox" name="cid[]" value="'.$row->colRecord.'"/>';
?>
<tr class="<?php echo "row$k"; ?>">
<?php
if($this->show_id_column){
?>
<td class="hidden-phone">
<?php
if(( $view_allowed || $this->own_only )){
?>
<a href="<?php echo $link; ?>"><?php echo $row->colRecord; ?></a>
<?php
} else {
?>
<?php echo $row->colRecord; ?>
<?php
}
?>
</td>
<?php
}
?>
<?php
if($this->select_column && ( $delete_allowed || $state_allowed || $publish_allowed )){
?>
<td class="hidden-phone">
<?php echo $select; ?>
</td>
<?php
}
?>
<?php
if($this->edit_button && $edit_allowed){
?>
<td>
<a href="<?php echo $edit_link; ?>"><img src="components/com_contentbuilder/images/edit.png" border="0" width="18" height="18"/></a>
</td>
<?php
}
?>
<?php
if($this->list_state){
?>
<td class="hidden-phone" style="background-color: #<?php echo isset($this->state_colors[$row->colRecord]) ? $this->state_colors[$row->colRecord] : 'cccccc'; ?>;">
<?php echo isset($this->state_titles[$row->colRecord]) ? htmlentities($this->state_titles[$row->colRecord], ENT_QUOTES, 'UTF-8') : ''; ?>
</td>
<?php
}
?>
<?php
if($this->list_publish && $publish_allowed){
?>
<td align="center" valign="middle">
<?php echo contentbuilder_helpers::publishButton(isset($this->published_items[$row->colRecord]) && $this->published_items[$row->colRecord] ? true : false, $publish_link, $unpublish_link, 'tick.png', 'publish_x.png', $publish_allowed);?>
</td>
<?php
}
?>
<?php
if($this->list_language){
?>
<td class="hidden-phone">
<?php echo isset($this->lang_codes[$row->colRecord]) && $this->lang_codes[$row->colRecord] ? $this->lang_codes[$row->colRecord] : '*';?>
</td>
<?php
}
?>
<?php
if($this->list_article){
?>
<td class="hidden-phone">
<?php
if(( $view_allowed || $this->own_only )){
?>
<a href="<?php echo $link; ?>"><?php echo $row->colArticleId; ?></a>
<?php
} else {
?>
<?php echo $row->colArticleId; ?>
<?php
}
?>
</td>
<?php
}
?>
<?php
if($this->list_author){
?>
<td class="hidden-phone">
<?php
if(( $view_allowed || $this->own_only )){
?>
<a href="<?php echo $link; ?>"><?php echo htmlentities($row->colAuthor, ENT_QUOTES, 'UTF-8'); ?></a>
<?php
} else {
?>
<?php echo htmlentities($row->colAuthor, ENT_QUOTES, 'UTF-8'); ?>
<?php
}
?>
</td>
<?php
}
?>
<?php
if($this->list_rating){
?>
<td class="hidden-phone">
<?php
echo contentbuilder::getRating(JRequest::getInt('id',0), $row->colRecord, $row->colRating, $this->rating_slots, JRequest::getCmd('lang',''), $rating_allowed, $row->colRatingCount, $row->colRatingSum);
?>
</td>
<?php
}
?>
<?php
$label_count = 0;
$hidden = ' class="hidden-phone"';
foreach($row As $key => $value){
// filtering out disallowed columns
if(in_array(str_replace('col','',$key), $this->visible_cols)){
if($label_count == 0){
$hidden = '';
}else{
$hidden = ' class="hidden-phone"';
}
?>
<td<?php echo $hidden;?>>
<?php
if(in_array(str_replace('col','',$key), $this->linkable_elements) && ( $view_allowed || $this->own_only )){
?>
<a href="<?php echo $link; ?>"><?php echo $value; ?></a>
<?php
}else{
?>
<?php echo $value; ?>
<?php
}
?>
</td>
<?php
$label_count++;
}
}
?>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
<?php
$pages_links = $this->pagination->getPagesLinks();
if( $pages_links || $this->show_records_per_page ){
?>
<tfoot>
<tr>
<td colspan="1000" valign="middle" align="center">
<div class="pagination pagination-toolbar">
<?php
if($this->show_records_per_page){
?>
<div class="cbPagesCounter hidden-phone">
<?php echo $this->pagination->getPagesCounter(); ?>
<?php
echo '   ' . JText::_('COM_CONTENTBUILDER_DISPLAY_NUM') . ' ';
echo $this->pagination->getLimitBox();
?>
<?php echo JText::_('COM_CONTENTBUILDER_OF');?>
<?php echo $this->total;?>
</div>
<?php
}
?>
<?php echo $pages_links; ?>
</div>
</td>
</tr>
</tfoot>
<?php
}
?>
</table>
<?php
if( JRequest::getVar('tmpl', '') != '' ){
?>
<input type="hidden" name="tmpl" value="<?php echo JRequest::getVar('tmpl', ''); ?>"/>
<?php
}
?>
<input type="hidden" name="option" value="com_contentbuilder" />
<input type="hidden" name="task" id="task" value="" />
<input type="hidden" name="controller" id="controller" value="list" />
<input type="hidden" name="view" id="view" value="list" />
<input type="hidden" name="Itemid" value="<?php echo JRequest::getInt('Itemid',0); ?>"/>
<input type="hidden" name="limitstart" value="" />
<input type="hidden" name="id" value="<?php echo JRequest::getInt('id',0)?>" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists; ?>" />
<input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists; ?>" />
<?php echo JHtml::_('form.token'); ?>
</form>

</div>





can you please make the right changes for me.

Best Regards,
MaMeKeDi
Attachments:

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

Last edit: Post by mamekedi.

Re: Column widths in list view 5 years 10 months ago #123135

  • chrisal's Avatar
  • chrisal
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 6983
  • Karma: 187
  • Thanks: 629
Hello Mamekedi,

i would recommend - that you use the Item Wrap code instead of changing the layout. This would look like this:
<?php $value =substr($value,0,9); ?>
Afterwards the value in the listview is maximum 10 characters long.


regards
Chris
The following user(s) said Thank You: samy

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

Re: Column widths in list view 5 years 10 months ago #123136

  • mamekedi
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Hello Chris,

this is a perfect solution .......................

Thank you very much

Best Regards,
MaMeKeDi

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

Re: Column widths in list view 5 years 10 months ago #123139

  • chrisal's Avatar
  • chrisal
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 6983
  • Karma: 187
  • Thanks: 629
No problem.


Let us know if you have further questions.



regards
Chris

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

Re: Column widths in list view 1 week 2 days ago #243521

  • bruce@brucedill.com's Avatar
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 510
  • Karma: 1
  • Thanks: 9
How do I determine the table, col, etc in my view?

table.category td.col17,table.category td.col21

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

Re: Column widths in list view 1 week 2 days ago #243525

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 233
  • Karma: 3
  • Thanks: 40
Hi,

col17, col21 are the fields ID of form elements. You can determine your IDs by doing right click, and inspect on the column titles in the browser.

Regards,
Tihana

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.088 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!