PDA

Zobacz pełną wersję : Nie działa prawa ramka



ashwalker
02-02-2009, 17:46
Templatka wygląda tak: http://www.fotosik.pl/showFullSize.php?id=a8ee9d7825171031

Treść strony wyświetlana jest niepoprawnie - nie obejmuje całego dostępnego wizualnie dla niej miejsca! Zdaje się jakby po prawo była prawa kolumna czy coś. Problem w tym, że takowej nie ma nawet dodanej w pozycjach modułów ("pozycja": np. left, top, footer). W poglądzie szablonu istnieje prawa ramka, ale opatrzona jest dopiskiem "rounded outline".

1. Jak wywalić prawą ramkę z templatki / czy da się rozszerzyć treść bez wywalania z templatki prawej ramki
2. Co to jest to "rounded outline"? przy wybieraniu pozycji ("pozycja": np. left, top, footer) nie ma "right" mimo że na podglądzie panelu JEST. To samo z innymi: pozycję "top" dodałem z pod innego szablonu (szablon 2 > dodaj moduł na miejsce "top" > powrót do szablonu 1)

kod templatki:

file:///C:/DOCUME%7E1/Szymon/USTAWI%7E1/Temp/moz-screenshot-2.jpg<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->

</head>
<body class="body_bg">
<div id="page_bg">
<div id="logo">
<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
</div>

<div id="header_bg">
<div id="header_lbg">
<div id="header_rbg">
<div id="header_main">
<div class="hleft"></div>
<div class="hright">
<?php if($this->countModules('user1') and $this->countModules('user2') and JRequest::getCmd('layout') != 'form') : ?>
<div>
<div class="hwr-left">
<jdoc:include type="modules" name="user1" style="rounded" />
</div>

<div class="hwr-right">
<jdoc:include type="modules" name="user2" style="rounded" />
</div>
<div class="clr"></div>
</div>
<?php endif; ?>

<?php if($this->countModules('user1') and $this->countModules('user2') and JRequest::getCmd('layout') != 'form') : ?>
<div id="newsflash">
<?php else: ?>
<div id="newsflash" style="height: 246px;">
<?php endif; ?>
<jdoc:include type="modules" name="top" style="rounded" />
</div>
</div>
<div class="clr"></div>
</div>
</div>
</div>
</div>
<div class="pill_m">
<div id="pillmenu">
<jdoc:include type="modules" name="user3" />
</div>
</div>

<!--center start-->
<div class="center">
<div id="wrapper">
<div id="content">
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $sg = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<!--pathway start-->
<div class="cpathway">
<div class="cpleft">
<jdoc:include type="module" name="breadcrumbs" />
</div>
</div>
<!--pathway end-->
<?php else: ?>
<div id="maincolumn_full">
<!--pathway start-->
<div class="cpathway">
<div class="cpleft">
<jdoc:include type="module" name="breadcrumbs" />
</div>
</div>
<!--pathway end-->
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn" style="float:right;">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
</div>
<!--center end-->

<!--footer start-->
<div id="footer">
<div id="sgf">
<div>
<div style="text-align: center; padding: 10px 0 0;">
<?php $sg = ''; include "templates.php"; ?>
</div>
<div style=" padding: 5px 0; text-align: center; color: #fff;">
Valid <a style="color: #fff;" href="http://validator.w3.org/check/referer">XHTML</a> and <a style="color: #fff;" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</div>
</div>
</div>
</div>
<!--footer end-->
</div>
<jdoc:include type="modules" name="debug" />


</body>
</html>

____

EDIT

Uwaga! Wiem już jak usunąć prawą ramkę. O tym niżej. Niestety źródło problemu jest nieznane a moje pytania zadane w 1szym poście są nadal aktualne.

Usuwanie prawej ramki (plik templatki) -> trzeba wywalić ten kod:


<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<!--pathway start-->
<div class="cpathway">
<div class="cpleft">
<jdoc:include type="module" name="breadcrumbs" />
</div>
</div>
<!--pathway end-->
<?php else: ?>
<div id="maincolumn_full">
<!--pathway start-->
<div class="cpathway">
<div class="cpleft">
<jdoc:include type="module" name="breadcrumbs" />
</div>
</div>
<!--pathway end-->
<?php endif; ?>

zwiastun
02-02-2009, 21:57
1. Podane powyżej rozwiązanie = wynik braku tzw. zielonego pojęcia. Kod zawiera sam w sobie warunek wyświetlania (niewyświetlania) prawej kolumny. Wystarczy spełnić warunek.
2. Objaśnienie rounded = wystarczy wpisać w wyszukiwarkę forum.
3. Powód, dla którego nie wyświetla się pozycja right (lub inna) również już razy kilka objaśniano na tym forum. Możliwe, że nie została wyszczególniona w pliku templateDetails.xml. Można ją po prostu wpisać w polu pzzeznaczonym na wybór pozycji