Access to PrestaShop corporate website
French English Spanish Change language
Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop
  224 users online
Forum  >  PrestaShop v1.1  >  Themes  >  Thread

Team members online:


 
Post Reply
New Topic
Design Extensible / Liquid expandable design

offline
Posted: 27 May 2008 06:37 PM   [ Ignore ]
Regular
RankRank

Messages :

  • total: 95
  • last 7 days: 2
Joined: 2008-05-27

Bonjour,
Je voudrais faire un theme avec un design extensible.
Le probleme est que pour cela il faudrait inverser l'ordre d'apparation des colonnes: par default on a left_column, center_column, right_column.
Pour avoir ces 3 div bien centrer et extensible avec le css il faudrait : left_column, right_column, center_column.

Une idée? j'imagine qu il faut modifier le code de generation mais etant encore debutant je ne sais pas trop par ou commencer et ou chercher..

Merci.

__________________________

Hi,
I would like to make a theme with an expandable design.
The problem is that it should reverse the order of apparation columns: by default on a left_column, center_column, right_column and it should be instead :left_column, right_column, center_column.

An idea? I imagine that it is necessary to modify the code generation but still being beginer I do not really know or begin a search and or ..

Thank you.

 
offline
Posted: 27 May 2008 08:25 PM   [ Ignore ]   [ # 1 ]
Regular
RankRank

Messages :

  • total: 95
  • last 7 days: 2
Joined: 2008-05-27

Il y a 2 variables $HOOK_LEFT_COLUMN et  $HOOK_RIGHT_COLUMN qui se situent respectivement dans les fichiers header.tpl et footer.tpl, ce qui semble correspondre a la génération des 2 colonnes.
Entre les 2 il y a bien un div "center_column" mais pas de variable du genre $HOOK_CENTER.
J'ai tenté de placer $HOOK_RIGHT_COLUMN juste aprés $HOOK_LEFT_COLUMN mais le problème est que le div "right_column" est vide ???

_______________________

There is  $HOOK_LEFT_COLUMN and $HOOK_RIGHT_COLUMN that lie respectively in the files header.tpl and footer.tpl, which seemed a generation of 2 columns.
Between 2 there is a div "center_column" but not the kind of variable $HOOK_CENTER.
I tried to put $HOOK_RIGHT_COLUMN just after $ HOOK_LEFT_COLUMN but the problem is that the div "right_column" remains empty
???

 
offline
Posted: 27 May 2008 11:06 PM   [ Ignore ]   [ # 2 ]
Senior Member
RankRankRank

Messages :

  • total: 470
  • last 7 days: 1
Joined: 2008-02-05

Two columns next to eachother is illogical… ?

 
offline
Posted: 28 May 2008 04:49 AM   [ Ignore ]   [ # 3 ]
Regular
RankRank

Messages :

  • total: 95
  • last 7 days: 2
Joined: 2008-05-27

[quote author=Ox40 link=topic=2426.msg10341#msg10341 date=1211915174]
Two columns next to eachother is illogical… ?

Hi Ox40,
I am not a css specialist but if you can make a completely expandable design with 3 // column and right column, center and left tell me how. I tried a while without sucess  :(
Here is some sample of expandable design
http://css.alsacreations.com/modeles/modele6.htm
http://gcyrillus.free.fr/xkgc11/

If the center column is before, the right column is displayed below in the right (float: right) ???

Thank you

 
offline
Posted: 28 May 2008 06:05 AM   [ Ignore ]   [ # 4 ]
Senior Member
RankRankRank

Messages :

  • total: 470
  • last 7 days: 1
Joined: 2008-02-05

global.css: line 168 – Remove "width:980px;"

global.css: line 192 – change width to "width: 65%;"

ta-da! smile

—Kevin

 
offline
Posted: 29 May 2008 07:03 PM   [ Ignore ]   [ # 5 ]
Regular
RankRank

Messages :

  • total: 95
  • last 7 days: 2
Joined: 2008-05-27

Hi Kevin,

This is not a true expandable design: if the browser size is < 1200px, the right column go down under the left column. Also the center column is not really in the center.
I think the column must be "float: left/right" for this

However,, thank you for your help.

 
offline
Posted: 30 May 2008 05:48 AM   [ Ignore ]   [ # 6 ]
Senior Member
RankRankRank

Messages :

  • total: 470
  • last 7 days: 1
Joined: 2008-02-05

Heh, yeah, you are right. I did mess up a little. My resolution is 1280×1024, and I didn't test it. But, it is a definite start. wink

 
offline
Posted: 03 June 2008 11:58 AM   [ Ignore ]   [ # 7 ]
Club Member
RankRankRank
Avatar

Messages :

  • total: 221
  • last 7 days: 0
Joined: 2008-02-07

Hi moncler

La colonne de droite est vide parce que son contenu n'est pas encore calculé.
le contenu des colonnes est calculé dans les fichiers header.php et footer.php à la racine de la boutique. il suffit donc de déplacer la ligne

&#039;HOOK_RIGHT_COLUMN&#039; => Module::hookExec(&#039;rightColumn&#039;),<br />

de footer.php (ligne 6)
en dessous de
&#039;HOOK_LEFT_COLUMN&#039; => Module::hookExec(&#039;leftColumn&#039;),<br />

dans header.php (ligne 10)

et ça devrait fonctionner

[hr]

The right column is empty because its contents are not yet calculated.
the content of columns is calculated in the files header.php and footer.php at the root of the shop. you can move the line

&#039;HOOK_RIGHT_COLUMN&#039; => Module: hookExec ( &#039;rightColumn&#039;),<br />

of footer.php (line 6)
below
&#039;HOOK_LEFT_COLUMN&#039; => Module: hookExec ( &#039;leftColumn&#039;),<br />

in header.php (line 10)

and it should work

 Signature 

Développeur pour Apparence
Communauté francophone - Documentation en français

 
offline
Posted: 02 October 2008 09:25 PM   [ Ignore ]   [ # 8 ]
Beginner
Rank

Messages :

  • total: 10
  • last 7 days: 0
Joined: 2008-09-26

thanks Kevin

it worked!

now prestashop is in fluidwidth! finally!!!!

 
offline
Posted: 03 October 2008 01:57 AM   [ Ignore ]   [ # 9 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 516
  • last 7 days: 1
Joined: 2008-08-03

I’ve tried several different ways, and found that I had to move both columns into the header to get it to work. Still trying to work out a solution without altering the php code (i.e. purely in the template) but I’m not confident smile

Paul

 Signature 

ukprestaclub_sig.gif
My French is terrible, so feel free to laugh when I attempt to post en français.

 
offline
Posted: 03 October 2008 12:17 PM   [ Ignore ]   [ # 10 ]
Beginner
Rank

Messages :

  • total: 10
  • last 7 days: 0
Joined: 2008-09-26

does moving the columns to the header work ?

 
offline
Posted: 03 October 2008 12:32 PM   [ Ignore ]   [ # 11 ]
V.I.P.
RankRankRankRank
Avatar

Messages :

  • total: 516
  • last 7 days: 1
Joined: 2008-08-03

Because the left and right columns are fixed width, and the center column is the variable one, the browser needs to draw the right and left columns (or at least know their size) first, before it can calculate how to draw the center one.

By default;

header.php : generates the contents for the left column (displayed by header.tpl)
footer.php : generates the contents of the right column (displayed by footer.tpl)
“others”.php : generate the center content as appropriate (div opened by header.tpl, and closed by footer.tpl)

So header.tpl can only draw the left column and footer.tpl can only draw the right column, by default. I’m a bit of a purist and try and avoid editing the core .php files if possible. Makes it easier to upgrade that way!

Paul

 Signature 

ukprestaclub_sig.gif
My French is terrible, so feel free to laugh when I attempt to post en français.

 
offline
Posted: 03 October 2008 01:13 PM   [ Ignore ]   [ # 12 ]
Beginner
Rank

Messages :

  • total: 10
  • last 7 days: 0
Joined: 2008-09-26

alright then, will wait for the solution

 
offline
Posted: 17 October 2008 06:33 PM   [ Ignore ]   [ # 13 ]
Beginner
Rank

Messages :

  • total: 11
  • last 7 days: 0
Joined: 2008-10-16

I have spent the last couple hours working on this. I got it pretty close except there are a few problems. One,
This is the generated code used to display the links to “your account and the “cart”. The problem is they are rendered on top of all three columns, which can pose an alignment issue. I can’t figure out how to place them in the right column to keep them on top of it.
Any suggestions would be good….

<div id=“header_user”>

Welcome,
<*a href=“http://SUPERDOMAIN.com/my-account.php”>Log in</a>

<ul id=“header_nav”>
<li id=“shopping_cart”>
<*a title=“Your Shopping Cart” href=“http://SUPERDOMAIN.com/order.php”>Cart:</a>
<span class=“ajax_cart_quantity”>
<span class=“ajax_cart_product_txt hidden”>product</span>
<span class=“ajax_cart_product_txt_s hidden”>products</span>
<span class=“ajax_cart_total”>
<span class=“ajax_cart_no_product”>(empty)</span>
</li>
<li id=“your_account”>
</li>
</ul>[/size]
</div>

After I solve this problem I have nearly completed the liquid layout.(except for the image repeats). I have attached my style sheet for people to take a look at. Most of the changes are in the columns. I will also post it below. PS> Be sure to back up your original global.css file in case you need to go back!!!!

/* ------------Back up your Style sheet ----------------------*/

/* global layout */

#page {
    width93%;
    
text-align:left;
}
h1
#logo {
    
floatleft;
    
width29%;
    
margin-top:0.5em;
}
#header {
    
margin0 auto 0 auto;
    
height:100px;
    
width100%;
    
text-alignright;
}

/*---= Changed to 20% Width, and 25px right padding =---*/
#left_column {
    
float:left;
    
width:20%;
    
padding-right25px;
}

/*---= Added 10px Padding along with 60% width =---*/
#center_column {
    
float:left;
    
padding10px;
    
width60%;
}

/*---== Added padding to column and 10% width =---*/
#right_column {
    
float:left;
    
width10%;
    
padding15px 25px 10px 10px;
}

It works until it breaks under 1024px screen width. I don’t know about you guys but I am not too concerned, I always develop for that size. If your screen rez is smaller than 1024, UPGRADE your screen!

 
offline
Posted: 17 October 2008 07:06 PM   [ Ignore ]   [ # 14 ]
Beginner
Rank

Messages :

  • total: 11
  • last 7 days: 0
Joined: 2008-10-16

Oh ya if you want to take a look:

http://prestashop.photocenterpieces.com/

 
offline
Posted: 17 November 2008 02:18 PM   [ Ignore ]   [ # 15 ]
Regular
RankRank
Avatar

Messages :

  • total: 55
  • last 7 days: 3
Joined: 2008-06-26

wait for the solution

 Signature 

website: http://co4la.com

Y!M : esmartweb

mobile : xxx

 
 
 
Fast Reply
New Topic