ligertaha
دوشنبه 21 دی 1394, 01:35 صبح
سلام خدمت اساتید عزیز
من برای مدیریت مطالب میخوام از کامپوننت خود جوملا استفاده کنم اما متاسفانه نمیتونم مطالبی که این کامپوننت نمایش میده رو چند ستونه کنم برای تنظیماتش هم از محتوا > مطالب > انتخابها اقدام کردم هم از قسمت منوها >منوی اصلی > خانه ولی تنظیماتی که انجام میدم اعمال نمیشه ایا برای چند ستونه کردن مطالب باید کاری غیر از اینها باید انجام بدم؟ قالب رو خودم طراحی کردم
و اگر کلا بخوام مطالبم رو با کامپوننت k2 نمایش بدم و از کامپوننت خود جوملا استفاده نکنم باید چکار کنم چون نمیتونم جلوی نمایشش رو بگیرم و اگه کد <jdoc:include type="component" /> رو حذف کنم ادامه مطلب های سایت و جستجو و... از کار میافته
اینم کد index.php
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.framework', true);
?>
<!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">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" />
<?php if($this->direction == 'ltr') : ?>
<link href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template_ltr.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
var tmpl = jQuery.noConflict();
tmpl(document).ready(function(e) {
tmpl('ul.menu li').hover(function()
{
tmpl(this).children('ul:first').slideDown(100);
},function()
{
tmpl(this).children('ul:first').slideUp(100);
});
jQuery(window).scroll(function(){
sticky_menu();
});
});
function sticky_menu(){
var top = jQuery(window).scrollTop();
var nav_top = jQuery('#top-menu').outerHeight();
if (top > nav_top) {
jQuery('#top-menu').addClass('sticky').children().addClass('con tainer');
} else
{
jQuery('#top-menu').removeClass('sticky');
}
}
</script>
</head>
<body>
<div id="main">
<div id="header">
<?php if($this->countModules('logo')): ?>
<div id="logo">
<jdoc:include type="modules" name="logo" style="xhtml" />
</div> <!-- end logo -->
<?php endif; ?>
<?php if($this->countModules('logo_text')): ?>
<div id="logo">
<jdoc:include type="modules" name="logo_text" style="xhtml" />
</div> <!-- end logo_text -->
<?php endif; ?>
<div id="lsn">
<div id="log_lang">
<?php if($this->countModules('lang')): ?>
<div id="lang">
<jdoc:include type="modules" name="lang" style="xhtml" />
</div> <!-- end lang -->
<?php endif; ?>
<?php if($this->countModules('log')): ?>
<div id="log">
<jdoc:include type="modules" name="log" style="xhtml" />
</div> <!-- end log -->
<?php endif; ?>
</div> <!-- end log_lang -->
<?php if($this->countModules('search')): ?>
<div id="search">
<jdoc:include type="modules" name="search" style="xhtml" />
</div> <!-- end search -->
<?php endif; ?>
<?php if($this->countModules('newslatter')): ?>
<div id="newslatter">
<jdoc:include type="modules" name="newslatter" style="xhtml" />
</div> <!-- end newslatter -->
<?php endif; ?>
</div> <!-- end lsn -->
</div> <!-- end header -->
<?php if($this->countModules('menu_h')): ?>
<div id="menu_h">
<div id="top-menu">
<div id="menu">
<jdoc:include type="modules" name="menu_h" style="none" />
</div> <!--end menu_h -->
</div>
</div> <!--top-menu -->
<?php endif; ?>
<?php if($this->countModules('content')): ?>
<div id="content">
<jdoc:include type="modules" name="content" style="xhtml" />
</div> <!-- end content -->
</div>
<?php endif; ?>
<div id="news_cont">
<div id="new">
<?php if($this->countModules('news')): ?>
<div id="news">
<?php if($this->countModules('news')): ?>
<div id="news_titr">
<jdoc:include type="modules" name="news_titr" style="xhtml" />
</div> <!-- end news_titr -->
<?php endif; ?>
<jdoc:include type="modules" name="news" style="xhtml" />
</div> <!-- end news -->
<?php endif; ?>
</div> <!-- end new -->
<div id="hot">
<?php if($this->countModules('hot')): ?>
<div id="news_titr1">
<jdoc:include type="modules" name="news_titr1" style="xhtml" />
</div> <!-- end news_titr1 -->
<?php endif; ?>
<jdoc:include type="modules" name="hot" style="xhtml" />
</div> <!-- end hot -->
<?php if($this->countModules('event')): ?>
<div id="event">
<?php if($this->countModules('event')): ?>
<div id="news_titr2">
<jdoc:include type="modules" name="news_titr2" style="xhtml" />
</div> <!-- end news_titr2 -->
<?php endif; ?>
<jdoc:include type="modules" name="event" style="xhtml" />
</div> <!-- end event -->
<?php endif; ?>
</div>
<div id="user">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div> <!-- end user -->
</div> <!-- end main -->
<div id="footer">
<?php if($this->countModules('foot1')): ?>
<div id="foot1">
<jdoc:include type="modules" name="foot1" style="xhtml" />
</div> <!-- end foot1 -->
<?php endif; ?>
<?php if($this->countModules('foot2')): ?>
<div id="foot2">
<jdoc:include type="modules" name="foot2" style="xhtml" />
</div> <!-- end foot2 -->
<?php endif; ?>
<?php if($this->countModules('foot3')): ?>
<div id="foot3">
<jdoc:include type="modules" name="foot3" style="xhtml" />
</div> <!-- end foot3 -->
<?php endif; ?>
<?php if($this->countModules('foot4')): ?>
<div id="foot4">
<jdoc:include type="modules" name="foot4" style="xhtml" />
</div> <!-- end foot4 -->
<?php endif; ?>
<div id="foot5">
<?php if($this->countModules('social')): ?>
<div id="social">
<jdoc:include type="modules" name="social" style="xhtml" />
</div> <!-- end social -->
<?php endif; ?>
<?php if($this->countModules('foot5_2')): ?>
<div id="foot5_2">
<?php if($this->countModules('foot4')): ?>
<div id="foot5_3">
<jdoc:include type="modules" name="foot5_3" style="xhtml" />
</div> <!-- end foot5_3 -->
<?php endif; ?>
<jdoc:include type="modules" name="foot5_2" style="xhtml" />
<?php if($this->countModules('foot4')): ?>
<div id="foot5_4">
<jdoc:include type="modules" name="foot5_4" style="xhtml" />
</div> <!-- end foot5_4 -->
<?php endif; ?>
</div><!-- end foot5_2 -->
<?php endif; ?>
</div> <!-- end foot5 -->
</div> <!-- end footer -->
<div id="footer_end">
</div><!-- end footer_end -->
</body>
من برای مدیریت مطالب میخوام از کامپوننت خود جوملا استفاده کنم اما متاسفانه نمیتونم مطالبی که این کامپوننت نمایش میده رو چند ستونه کنم برای تنظیماتش هم از محتوا > مطالب > انتخابها اقدام کردم هم از قسمت منوها >منوی اصلی > خانه ولی تنظیماتی که انجام میدم اعمال نمیشه ایا برای چند ستونه کردن مطالب باید کاری غیر از اینها باید انجام بدم؟ قالب رو خودم طراحی کردم
و اگر کلا بخوام مطالبم رو با کامپوننت k2 نمایش بدم و از کامپوننت خود جوملا استفاده نکنم باید چکار کنم چون نمیتونم جلوی نمایشش رو بگیرم و اگه کد <jdoc:include type="component" /> رو حذف کنم ادامه مطلب های سایت و جستجو و... از کار میافته
اینم کد index.php
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.framework', true);
?>
<!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">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" />
<?php if($this->direction == 'ltr') : ?>
<link href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/template_ltr.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
var tmpl = jQuery.noConflict();
tmpl(document).ready(function(e) {
tmpl('ul.menu li').hover(function()
{
tmpl(this).children('ul:first').slideDown(100);
},function()
{
tmpl(this).children('ul:first').slideUp(100);
});
jQuery(window).scroll(function(){
sticky_menu();
});
});
function sticky_menu(){
var top = jQuery(window).scrollTop();
var nav_top = jQuery('#top-menu').outerHeight();
if (top > nav_top) {
jQuery('#top-menu').addClass('sticky').children().addClass('con tainer');
} else
{
jQuery('#top-menu').removeClass('sticky');
}
}
</script>
</head>
<body>
<div id="main">
<div id="header">
<?php if($this->countModules('logo')): ?>
<div id="logo">
<jdoc:include type="modules" name="logo" style="xhtml" />
</div> <!-- end logo -->
<?php endif; ?>
<?php if($this->countModules('logo_text')): ?>
<div id="logo">
<jdoc:include type="modules" name="logo_text" style="xhtml" />
</div> <!-- end logo_text -->
<?php endif; ?>
<div id="lsn">
<div id="log_lang">
<?php if($this->countModules('lang')): ?>
<div id="lang">
<jdoc:include type="modules" name="lang" style="xhtml" />
</div> <!-- end lang -->
<?php endif; ?>
<?php if($this->countModules('log')): ?>
<div id="log">
<jdoc:include type="modules" name="log" style="xhtml" />
</div> <!-- end log -->
<?php endif; ?>
</div> <!-- end log_lang -->
<?php if($this->countModules('search')): ?>
<div id="search">
<jdoc:include type="modules" name="search" style="xhtml" />
</div> <!-- end search -->
<?php endif; ?>
<?php if($this->countModules('newslatter')): ?>
<div id="newslatter">
<jdoc:include type="modules" name="newslatter" style="xhtml" />
</div> <!-- end newslatter -->
<?php endif; ?>
</div> <!-- end lsn -->
</div> <!-- end header -->
<?php if($this->countModules('menu_h')): ?>
<div id="menu_h">
<div id="top-menu">
<div id="menu">
<jdoc:include type="modules" name="menu_h" style="none" />
</div> <!--end menu_h -->
</div>
</div> <!--top-menu -->
<?php endif; ?>
<?php if($this->countModules('content')): ?>
<div id="content">
<jdoc:include type="modules" name="content" style="xhtml" />
</div> <!-- end content -->
</div>
<?php endif; ?>
<div id="news_cont">
<div id="new">
<?php if($this->countModules('news')): ?>
<div id="news">
<?php if($this->countModules('news')): ?>
<div id="news_titr">
<jdoc:include type="modules" name="news_titr" style="xhtml" />
</div> <!-- end news_titr -->
<?php endif; ?>
<jdoc:include type="modules" name="news" style="xhtml" />
</div> <!-- end news -->
<?php endif; ?>
</div> <!-- end new -->
<div id="hot">
<?php if($this->countModules('hot')): ?>
<div id="news_titr1">
<jdoc:include type="modules" name="news_titr1" style="xhtml" />
</div> <!-- end news_titr1 -->
<?php endif; ?>
<jdoc:include type="modules" name="hot" style="xhtml" />
</div> <!-- end hot -->
<?php if($this->countModules('event')): ?>
<div id="event">
<?php if($this->countModules('event')): ?>
<div id="news_titr2">
<jdoc:include type="modules" name="news_titr2" style="xhtml" />
</div> <!-- end news_titr2 -->
<?php endif; ?>
<jdoc:include type="modules" name="event" style="xhtml" />
</div> <!-- end event -->
<?php endif; ?>
</div>
<div id="user">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div> <!-- end user -->
</div> <!-- end main -->
<div id="footer">
<?php if($this->countModules('foot1')): ?>
<div id="foot1">
<jdoc:include type="modules" name="foot1" style="xhtml" />
</div> <!-- end foot1 -->
<?php endif; ?>
<?php if($this->countModules('foot2')): ?>
<div id="foot2">
<jdoc:include type="modules" name="foot2" style="xhtml" />
</div> <!-- end foot2 -->
<?php endif; ?>
<?php if($this->countModules('foot3')): ?>
<div id="foot3">
<jdoc:include type="modules" name="foot3" style="xhtml" />
</div> <!-- end foot3 -->
<?php endif; ?>
<?php if($this->countModules('foot4')): ?>
<div id="foot4">
<jdoc:include type="modules" name="foot4" style="xhtml" />
</div> <!-- end foot4 -->
<?php endif; ?>
<div id="foot5">
<?php if($this->countModules('social')): ?>
<div id="social">
<jdoc:include type="modules" name="social" style="xhtml" />
</div> <!-- end social -->
<?php endif; ?>
<?php if($this->countModules('foot5_2')): ?>
<div id="foot5_2">
<?php if($this->countModules('foot4')): ?>
<div id="foot5_3">
<jdoc:include type="modules" name="foot5_3" style="xhtml" />
</div> <!-- end foot5_3 -->
<?php endif; ?>
<jdoc:include type="modules" name="foot5_2" style="xhtml" />
<?php if($this->countModules('foot4')): ?>
<div id="foot5_4">
<jdoc:include type="modules" name="foot5_4" style="xhtml" />
</div> <!-- end foot5_4 -->
<?php endif; ?>
</div><!-- end foot5_2 -->
<?php endif; ?>
</div> <!-- end foot5 -->
</div> <!-- end footer -->
<div id="footer_end">
</div><!-- end footer_end -->
</body>