Forums / Templates, Stylesheets, Page Layout / how to relocate content of define pages?

how to relocate content of define pages?

Started by tony_sar on 11 Feb 2012, 9:16 PM · Views: 959

Results 1 to 4 of 4
11 Feb 2012, 9:16 PM
#1
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

how to relocate content of define pages?

Hello.

I need to move ( write ) content of define_main_page.php above contentMainWrapper.

basically content will display under mainWrapper . i am making a slider which i need to be above all other contents including sidebox .

Tried many ways to figure which code to move , adjust ext, all result in different problems.
any pointer would be great .

11 Feb 2012, 10:08 PM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: how to relocate content of define pages?

Use your common tpl_header.php


Play with it long enough and you will break it.
11 Feb 2012, 10:29 PM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: how to relocate content of define pages?

Thanks
Define main page is being displayed within body of main page and not header.

i can basically move statement from tpl_index_default.php where define main page is being processed to
tpl_main_page.php
although this works for main pages. , every other page fails to display content . with error regarding require function can not locate file which in this case is define page.

this crap is driving me crazy ..
:cry:

11 Feb 2012, 11:37 PM
#4
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: how to relocate content of define pages?

ok . after all , for my purposes i did not need to relocate define main page . what i did as a rough cut .. i used if ($this_is_home_page)
with series of echo statements to write all the div and ul li i needed to display my slider.

however, i like to included all those statments in a file and include it using require or include function . however i failed to do so , i have no idea how to create a path within require or include function .