Howdy, I’m just messing around with phpVMS now and I love it, could someone help me figure out with all the content is aligned at the bottom of my page? Does it have something to do with the mainbox?
I’m going to keep playing with it myself but I am new to this stuff.
Here is some replacement code for your $_GET module statement… just run this with the appropriate module name replaced in all caps to insure it runs. Run else statements to make default views just in case you don’t want to do a module by module sidebar view.
<!--Check what module the system is currently on and then display the data that corresponds with that module!-->
<!--Check to see if we are on the frontpage( Modules/Frontpage )!-->
<?php $module = Config::Get('RUN_MODULE'); ?>
<?php if($module == 'FRONTPAGE') { ?>
<!--Run your conditional data here!-->
<?php } ?>
Thanks for that, but any idea on how I could have the pages format correctly without have to make a copy of every single .tpl and put it in the skin folder and surround the .tpl code with those divs?
Right now if I don’t edit every .tpl the content sits on top of the footer and some of it is outside the content area.
*here is an example of what happens if I don’t edit each individual .tpl
That my friend is a CSS issue in its purest form. Read up on classing and page divisions…it looks like your using a free css template…so I advise you read and interpret the code in order to gain a better knowledge on how everything functions.
I personally use a ContentWrapper…
header.tpl
<div id="ContentWrapper">
<!--This is where your system generated content will go ( Schedules etc.)!-->
footer.tpl
</div>
<!--That ends your content wrapper division!-->
stylesheet
#ContentWrapper{ width:WIDTH OF YOUR SITE; height HEIGHT OF YOUR SITE; margin-left:auto; margin-right:auto;}
Those margins center the content region…
*If you want a custom skin contact me and I can create one for you