Cymru
03-01-2006, 05:50 PM
i have used this piece of code ( which i found here) inserted in the main.tpl
{if $category.PARENT_ID == 0} {php}include("http://mysite /frontpage.php");{/php} {/if}
this works a treat and displays my frontpage with the catergories listed down the left of the page ... I remember in the post that i got the code from, that he had a seperate page for each catergory by using the same code but changing the parent id i have tried searching for this on here can anyone help me out here .....
if my explation was rubbish http://gcommercial.co.uk/lookworthwhile/index.php note the front page if you click the accomodation link the included page should change to the accomodation one
{if $category.PARENT_ID == 0} {php}include("http://mysite /frontpage.php");{/php} {/if}
this works a treat and displays my frontpage with the catergories listed down the left of the page ... I remember in the post that i got the code from, that he had a seperate page for each catergory by using the same code but changing the parent id i have tried searching for this on here can anyone help me out here .....
if my explation was rubbish http://gcommercial.co.uk/lookworthwhile/index.php note the front page if you click the accomodation link the included page should change to the accomodation one