Elxis CMS Forum

Support => General => Topic started by: Romero on June 09, 2010, 00:34:59

Title: content in one column
Post by: Romero on June 09, 2010, 00:34:59
that it can not find how to do news on the home and generally on the site appear in a column?
content on the site has already been added!
Title: Re: content in one column
Post by: apkoutsou on June 09, 2010, 02:23:37
Ii is a matter of the template, so you should find a one-column template or just create one!
Title: Re: content in one column
Post by: Romero on June 09, 2010, 13:51:00
Ii is a matter of the template, so you should find a one-column template or just create one!
all templates that have downloaded from this site deduce news 2 columns.
do not tell my what to fix in the code? but perhaps you can fix it via admin panel
Title: Re: content in one column
Post by: jimmyz on June 09, 2010, 14:32:45
I think that you should edit a template (or create one from scratch).  :-\
Title: Re: content in one column
Post by: Romero on June 09, 2010, 15:19:09
Here's the code template:
Code: [Select]
<?php 

defined
( &#39;_VALID_MOS&#39; ) or die( &#39;Direct Access to this location is not allowed.&#39; );

$iso explode( &#39;=&#39;, _ISO );
echo &#39;<?xml version="1.0" encoding="&#39;.$iso[1].&#39;"?&#39; .&#39;>&#39;._LEND;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo _LANGUAGE?>" xml:lang="<?php echo _LANGUAGE?>"<?php echo (_GEM_RTL) ? &#39; dir="rtl"&#39; : &#39;&#39;; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css<?php echo (_GEM_RTL) ? &#39;-rtl&#39; : &#39;&#39;; ?>.css" rel="stylesheet" type="text/css" media="all" />
<?php if ( $my->id ) { initEditor(); } ?>
<?php if ((mosCountModules( &#39;left&#39; )>0) or (mosCountModules( &#39;user1&#39;)>0)) {?>
<style type="text/css">
#content{margin-left: 190px}
</style> <?php ?>
<?php if ((mosCountModules( &#39;right&#39; )>0) or (mosCountModules( &#39;user2&#39; )>0)) {?>
<style type="text/css">
#content{margin-right: 200px}
</style> <?php ?>
<!--[if IE 6]>
<style type="text/css">
ul.table li, .business-card, div.table, div.blog, div.blogleading, div.blog_more, div.tablerow, div.blogrow, .modfpg-container {
  float: none;
}
</style>
<![endif]-->
</head>
<body>
<div id="totalwrap">
<div id="header"><div class="headin"><div class="logo"><p><?php echo $mosConfig_sitename?></p></div><div class="headtop"><?php mosLoadModules(&#39;language&#39;, -2); ?></div><div class="topmenu"><?php if ((mosCountModules( &#39;top&#39;, -1 )>0)) { mosLoadModules(&#39;top&#39;, -1); } ?></div></div></div>
<div id="contentwrap">
<div class="shadow">
<div id="content"><div class="pathway">
<?php mospathway(); ?></div><br />
<?php mosLoadModules(&#39;header&#39;, -2); ?>
<?php mosMainBody(); ?>
</div>
</div>
</div>
<?php if ((mosCountModules( &#39;left&#39; )>0) or (mosCountModules( &#39;user1&#39; )>0)) {?>
<div id="leftcolumn">
<div class="columnin">
<?php mosLoadModules(&#39;left&#39;, -2); ?>
</div>
</div>
<?php ?>
<?php if ((mosCountModules( &#39;right&#39; )>0) or (mosCountModules( &#39;user2&#39; )>0)) {?>
<div id="rightcolumn">
<div class="columnin">
<?php mosLoadModules(&#39;right&#39;, -2); ?>
</div>
</div>
<?php ?>
<div id="footer"><?php include_once( $mosConfig_absolute_path.&#39;/includes/footer.php&#39;); ?></div>
</div>
</body>
</html>
Title: Re: content in one column
Post by: scept1c on June 17, 2010, 12:30:34
in your code it's said that you have right and left columns.