vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to edit column/Widget width on the homepage? (https://vborg.vbsupport.ru/showthread.php?t=264151)

Duncan Idaha 05-24-2011 09:43 PM

How to edit column/Widget width on the homepage?
 
Can someone help me (inexperienced at coding, experienced at VB 3) on this?

Currently, I use the 3 column (25,50,25) layout for the homepage, since I want two rows of Widgets, one on either side of the articles.

I would prefer the article wider, and the Widgets thinner. Something like 20%, 60%, 20%. Must I try to adjust the 3 column grid for that or try to edit the Widgets? And how can I do either one?

Lynne 05-24-2011 09:50 PM

You need to create a new grid that has the dimensions you want, then create a layout from that grid and then assign the new layout to your section.

Duncan Idaha 05-25-2011 07:18 AM

Thanks Lynne,

I did give this a try, but most likely not in the appropriate manner :rolleyes:
There is the option to "flatten" a grid, which shows HTML coding and tells you that you are working directly in HTML instead of the wizard.

The layout manager UI HTML than shows:
<div id="doc3">
<div id="bd">
<div class="yui-g">
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
</div>
<div class="yui-tvb-l50 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
</div>
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
</div>
</div>
</div>
</div>

The default template HTML shows:

<div id="doc3">
<div id="bd">
<div class="yui-g">
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
</div>
<div class="yui-tvb-l50 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
</div>
<div class="yui-tvb-l25 first yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
</div>
</div>
</div>
</div>

Since I am not familiar with coding, I can hardly make head or tail from this. (Sorry, but folks like me do exist) However, it looked to me that the "l25" and l50" refer to the columns. So, took the gamble and changed those to "l20" and " l20" The result however was one broad column and one smaller one.

I have reverted it to original which brought back the original lay out (pfew..) Glanced at the other 3 column grids, but that was not much help. What I don't understand is that some 3 column grids only have one "instruction" and the above one refers to three widget lists, whilst one of them is intended for articles. How does this work and what am I doing wrong here?

Lynne 05-25-2011 04:04 PM

I actually have a 20/60/20 grid:

Layout Manger HTML:
HTML Code:

<style type="text/css">
.yui-tvb-l1 .yui-b {width: 20%;}
.yui-tvb-l1 #yui-main .yui-b {
margin-left:20%;
padding-left: 10px;
}
</style>
<div id="doc3" class="yui-tvb-l1">
    <div id="bd">
        <div id="yui-main">
            <div class="yui-b">
                <div class="yui-ge">
                    <div class="yui-u first yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
                    </div>
                    <div class="yui-u yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui-b yui-sidebar">
            <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
        </div>
    </div>
</div>

Default Template HTML:
HTML Code:

<style type="text/css">
.yui-tvb-l1 .yui-b {width: 20%;}
.yui-tvb-l1 #yui-main .yui-b {
margin-left:20%;
padding-left: 10px;
}
</style>

<div id="doc3" class="yui-tvb-l1">
    <div id="bd">
        <div id="yui-main">
            <div class="yui-b">
                <div class="yui-ge">
                    <div class="yui-u first yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
                    </div>
                    <div class="yui-u yui-panel">
                        <ul class="list_no_decoration widget_list" id="widgetlist_column2">$column[2]</ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="yui-b yui-sidebar">
            <ul class="list_no_decoration widget_list" id="widgetlist_column3">$column[3]</ul>
        </div>
    </div>
</div>


Duncan Idaha 05-28-2011 10:09 AM

Works perfect on my site, thanks Lynne!

AcesGaming 10-21-2011 10:44 PM

I'm trying to get this done on my website yet I'm not sure what I need to edit. Where do I find this template so I can paste this code in?

Thanks in advance.

Lynne 10-22-2011 02:59 AM

We are talking about the grids and stuff to enter into a flatten grid page.

AcesGaming 10-22-2011 03:03 AM

I need to have my homepage in a 20/60/20 fashion, how do I create a grid that allows me to have these measurements. When I go to try and create a new grid, I'm only allowed certain set options in the drop menu. The closest being 25/50/25.

Lynne 10-22-2011 04:29 PM

Create a grid close to what you want and flatten it. Then edit the grid and modify it how you want.

AcesGaming 10-22-2011 09:50 PM

I would be very thankful if you can advise on how to flatten and modify the grid coordinates.

Lynne 10-23-2011 01:30 AM

Create a Grid and the on the Grid Manager page select Flatten Grid next to the Grid. Then, select Edit.

I am pretty sure this is covered in the CMS documentation. Have you taken a look at it?

fariborz khan 10-28-2013 12:38 PM

it is a post for oct 2011,sorry for post in it
but i can not find or i dont know where i must add code that Lynne said under
Layout Manger HTML:

Lynne 10-28-2013 07:12 PM

When you flatten your grid and then click to edit it, you will add the code on that page.


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01158 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete