TOPIC:

Column widths in list view 8 years 2 months ago #72984

  • Topic Author
  • Photman52
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 8
  • Thanks: 0
Hi
I've been trawling the forums to find an easy way of changing the column widths of my list view
I have only 3 columns in the view and can't find a way of changing widths
Can anyone help please

Cheers

Photman52

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

Re: Column widths in list view 7 years 11 months ago #78762

  • tullski
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 30
  • Thanks: 2
Hi,

On default this wont work, cause table td has no class so add them dynamically

overwrite template view in
/components/com_contentbuilder/views/list/tmpl/default.php

Around linre 510 add to <td> tag the following
<td class="<?php echo $key; ?>">

Then control the output with your css file like e.g.
table.category td.col17,table.category td.col21{
margin:0px;
padding:8px 0px;
border-top:1px solid #222222;
width:233px;
}

Change the numbers according to your output

And in case you have more list views then add to the table
<table class="category_<?php echo $this->form_id?>" width="100%" border="0" cellspacing="0" cellpadding="2">


Hope this helps
best
t
The following user(s) said Thank You: savvygents

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

Last edit: Post by tullski.

Re: Column widths in list view 7 years 10 months ago #80678

  • jaxweb
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 1
  • Thanks: 0
This feature should be integrated in future releases.

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

Re: Column widths in list view 7 years 4 months ago #88903

  • savvygents's Avatar
  • savvygents
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 16
  • Thanks: 0
You can also use this to hide the TH as well for mobile views.
<<?php echo $th; ?> class="sectiontableheader <?php echo $label; ?>">

Around line 353 in default.php

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

Re: Column widths in list view 7 years 4 months ago #89131

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9255
  • Karma: 167
  • Thanks: 744
Hi,

I would love to integrate something like this, but as I see Joomla's decision to integrate Bootstrap into the CMS is making me very reluctant to do so. I was playing a lot with setups like these to see how it interferes with the default bootstrap css Joomla is using (no matter what template) and it literally might change the list's behavior :(

Regards,
Markus

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

Re: Column widths in list view 7 years 2 months ago #93453

  • donaldmoore's Avatar
  • donaldmoore
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 39
  • Thanks: 3
I know it's been a while since this tip but just wanted to say "Cheers" to tullski! this was an easy fix, thanks to you!

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

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

Summer Sale!

Massive discounts on all subscriptions!

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!