форум общения русскоязычных пользователей CMS Текстпаттерн
Вы не зашли.
Страниц: 1
поставили сайт на тп
http://my-slavyane.info/
секции в колонке слева, а надо вверху
что бы на сайте было 2 колонки
как переделать шаблон колонка одна с категориями, ссылками и прочим а вторая под контент, вверху перечень секций
код шаблона:
<!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="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><txp:page_title /></title>
<link rel="home" href="<txp:site_url />" />
<txp:feed_link flavor="atom" format="link" label="Atom" />
<txp:feed_link flavor="rss" format="link" label="RSS" />
<txp:css format="link" />
<txp:rsd />
</head>
<body id="<txp:if_section name="">front<txp:else /><txp:section /></txp:if_section>">
<!-- accessibility -->
<div id="accessibility">
<ul>
<li><a href="#content"><txp:text item="go_content" /></a></li>
<li><a href="#sidebar-1"><txp:text item="go_nav" /></a></li>
<li><a href="#sidebar-2"><txp:text item="go_search" /></a></li>
</ul>
</div>
<div id="container">
<!-- head -->
<div id="head">
<h1 id="site-name"><txp:link_to_home><txp:site_name /></txp:link_to_home></h1>
<p id="site-slogan"><txp:site_slogan /></p>
</div>
<!-- left -->
<div id="sidebar-1">
<txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="ul" break="li">
<txp:if_section name='<txp:section />'>»</txp:if_section>
<txp:section link="1" title="1" />
<txp:if_section name='<txp:section />'>
<txp:article_custom section='<txp:section />' wraptag="ul" break="li">
<txp:if_article_id>›</txp:if_article_id>
<txp:permlink><txp:title /></txp:permlink>
</txp:article_custom>
</txp:if_section>
</txp:section_list>
<txp:search_input wraptag="p" />
<p><txp:feed_link label="RSS" /> / <txp:feed_link flavor="atom" label="Atom" /></p>
</div>
<!-- right -->
<div id="sidebar-2">
<txp:linklist wraptag="p" />
<p><a href="http://textpattern.com/"><txp:image id="2" /></a></p>
</div>
<!-- center -->
<div id="content">
<txp:if_category>
<h2><txp:category title="1" /></h2>
<div class="hfeed">
<txp:article form="article_listing" limit="5" />
</div>
<txp:else />
<txp:if_search>
<h2><txp:text item="search_results" />: <txp:page_url type="q" /></h2>
<div class="divider"><txp:image id="1" /></div>
</txp:if_search>
<div class="hfeed">
<txp:article limit="5" />
</div>
</txp:if_category>
<txp:if_individual_article>
<div class="divider"><txp:image id="1" /></div>
<p><txp:link_to_prev>« <txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /> »</txp:link_to_next></p>
<txp:else />
<p><txp:older>« <txp:text item="older" /></txp:older>
<txp:newer><txp:text item="newer" /> »</txp:newer></p>
</txp:if_individual_article>
</div>
<!-- footer -->
<div id="foot"> </div>
</div>
</body>
</html>
Отредактированно Maiya (18-08-2012 18:07:16)
Неактивен
Страниц: 1