How difficult is it to reverse a template?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Bill E

How difficult is it to reverse a template?

Post by Bill E »

After some modifications, I've got my template working the way I want it to except for one major item. I would like to reverse the template so the content is on the right and the sidebar is on the left.

Flipping the graphics horizontally is easy enough but I'm not sure how to move the content over to the right. I'm pretty sure I can redifine the sidebar to be on the left. Is this a major undertaking? Any advise on how to go about this? Thanks.

The site is at http://www.ppcstudy.com
psych3
Regular
Posts: 7
Joined: Mon Jul 11, 2005 2:57 pm
Location: Australia
Contact:

Post by psych3 »

in the admin panel under configure plugins you will find the side bar items. You can then align them from there and switch to left to right or have some items on left and some on right
gwilsonmail
Regular
Posts: 146
Joined: Tue Jul 12, 2005 9:12 pm
Location: Ottawa, Canada
Contact:

Post by gwilsonmail »

There is also a template that handles right-to-left languages.

check out - RTL-languages v0.1

It appears to swap right and left columns and right justify all the text.

Looks really odd to a LTR brain!
gw
Bill E

Post by Bill E »

psych3 wrote:in the admin panel under configure plugins you will find the side bar items. You can then align them from there and switch to left to right or have some items on left and some on right
Thanks. I'll give this a try. I'm pretty sure it will work with the sidebar info, I'm just not sure how it will handle the actual contect. I imagine it will push it over to the right but will it be aligned correctly? I guess I'll find out.
Guest

Post by Guest »

psych3 wrote:in the admin panel under configure plugins you will find the side bar items. You can then align them from there and switch to left to right or have some items on left and some on right
Didn't work as I'd hoped. I changed the sidebar float to left but the side bar components didn't line up with the margin graphic. Also the content was pushed down the page. It didn't begin until the sidebar stopped. The content was also still aligned left, it didn't shift over to the right.

Any other suggestions on how to reverse this template? Thanks.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You need to edit the templates/.../index.tpl and/or sidebar.tpl files to get what you want.

It definitely is possible, but requires some HTML/Smarty template pushing. I think this will not work only using CSS, so you'll need to change the actual HTML templates.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply