Hello, I would like to add to the site the order form. The form itself is created by Webform module. A link to this form is generated by php code.

print l('Order', 'node/26', array('query'=>array('type_material'=>$node->nid)));

To create a template for the type material I copied node.tpl.php to node--type_material.tpl.php. The result was almost a blank worksheet. Pattern assigned to this type of material is not interpreted the theme of design. See attachment.

Moreover if you do not override the template, and only make minor additions to the template node.tpl.php this also will damage the design.

The code damaged page

<div id="header">
  <div class="section">
    <div id="site-logo-and-name">
              <a href="/" title="Главная" rel="home" id="logo">
          <img src="http://bykovskaya.com/sites/all/themes/bykovskaya/logo.png" alt="Главная" />
        </a>
          </div> <!-- /#site-logo-and-name -->
              <div class="region region-header">
    <div id="block-nice-menus-1" class="block block-nice-menus  contextual-links-region first odd">

    <div class="contextual-links-wrapper"><ul class="contextual-links"><li class="block-configure first last"><a href="/admin/structure/block/manage/nice_menus/1/configure?destination=node/23">Настроить блок</a></li>
</ul></div>
  <div class="content">
    <ul class="nice-menu nice-menu-down" id="nice-menu-1"><li class="menu-543 menu-path-front first  odd "><a href="/" title="">Главная</a></li>
<li class="menu-542 menu-path-articles even "><a href="/articles" title="">Статьи</a></li>
<li class="menu-567 menu-path-faq-page odd "><a href="/faq-page" title="">F.A.Q.</a></li>
<li class="menu-574 menuparent menu-path-node-43 even  last "><a href="/portfolio">Портфолио</a><ul><li class="menu-575 menu-path-taxonomy-term-1 first  odd  last "><a href="/portfolio/batik" title="">Батик</a></li>
</ul>
</li>
</ul>
  </div>
</div>
  </div>
      </div> <!-- /.section -->
</div> <!-- /#header -->
<div id="page-wrapper"><div id="page">
        <div id="main">
    <a id="main-content"></a>
        <div id="content">
              <div id="breadcrumb"><h2 class="element-invisible">Вы здесь</h2><div class="breadcrumb"><a href="/">Главная</a></div></div>
                              <h1 class="title" id="page-title">Стена</h1>
                                <div class="tabs">
          <h2 class="element-invisible">Главные вкладки</h2><ul class="tabs primary"><li class="active"><a href="/portfolio/batik/stena" class="active">Просмотреть<span class="element-invisible">(активная вкладка)</span></a></li>
<li><a href="/node/23/edit">Изменить</a></li>
</ul></div>
                  

Comments

wiw’s picture

Status: Active » Closed (works as designed)

This code is absolutely work! I don't have any problem. This issue can be closed :)

wiw’s picture

Issue summary: View changes

add listing damaged page