Advertisement
pusatdata

Joomla - Mengubah Lebar Kolom List Category

Jun 29th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Hi,
  2.  
  3. On default this wont work, cause table td has no class so add them dynamically
  4.  
  5. overwrite template view in
  6. /components/com_contentbuilder/views/list/tmpl/default.php
  7.  
  8. Around linre 510 add to <td> tag the following
  9. <td class="<?php echo $key; ?>">
  10.  
  11. Then control the output with your css file like e.g.
  12. table.category td.col17,table.category td.col21{
  13. margin:0px;
  14. padding:8px 0px;
  15. border-top:1px solid #222222;
  16. width:233px;
  17. }
  18.  
  19. Change the numbers according to your output
  20.  
  21. And in case you have more list views then add to the table
  22. <table class="category_<?php echo $this->form_id?>" width="100%" border="0" cellspacing="0" cellpadding="2">
  23.  
  24.  
  25. Hope this helps
  26. best
  27. t
  28. ===========================
  29.  
  30. You can also use this to hide the TH as well for mobile views.
  31. <<?php echo $th; ?> class="sectiontableheader <?php echo $label; ?>">
  32.  
  33. Around line 353 in default.php
  34.  
  35. ===========================
  36.  
  37. http://crosstec.de/en/forums/37-contentbuilder-general-forum/72984-column-widths-in-list-view.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement