Status: offline

thedailycynic

Forum User
Junior
Registered: 09/12/04
Posts: 17
Is there a way that I cant apply a custom block theme to the location of the centerblock on the index page. For example when I have a static page that I want to be shown as a centerblock at the highest point (Top Location) can I specify a certain look just to that location? is that possible or that going to have to be hard coded which I hope not (GL 1.3.9) thanks
Music News Washington DC
Graphic Design Virginia

Record Label Washington DC

Active Sports Wear

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
you can accomplish this but will take a small bit of coding. once you have designed your custom template files after the fashion of the regular block template files, but with your design ideas, you will then have to throw some if-else statements into the plugin's PHP code in functions.inc. The function plugin_centerblock_staticpages is what you'll be looking for. I think. so something like "if position is top, then use this template, elseif position is bottom, then use this template... etc." (not true PHP )

If there is an easier way, I don't know what it is.

Status: offline

thedailycynic

Forum User
Junior
Registered: 09/12/04
Posts: 17
Thanks for the direction though i will see if i can get it to work.
Music News Washington DC
Graphic Design Virginia

Record Label Washington DC

Active Sports Wear

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The templates for the static pages blocks can be overridden in 1.3.10 - see docs/history

bye, Dirk