<div class="mdl-card mdl-card--theme-demo mdl-card mdl-shadow--2dp"/>
not-allowed-methods[] = "custom/someLogic"
. Кастомный макрос прописать в шаблоне:<link rel="stylesheet" href="/udata/custom/someLogic" />
define( "DEBUG_SQL_SELECTOR", false )
, будет видно построены запрос по которому можно будет сделать вывод о причине проблемы. <xsl:value-of
select="document(concat('upage://', @id, '.content'))//value"
disable-output-escaping="yes" />
concat('upage://', @id, '.content'))
в результате будет обращение по адресу upage://1.content
(при @id=1), а //value
обращение к ноде результирующего XML.http://site.com/upage/1.content
или http://site.com/upage/1
для получения всей страницы. <div class="btn btn_search">search</div>
<div class="btn btn_type_search">search</div>
<div class="btn btn_type_submit">submit</div>
var data = [
{
'text': 'BEM — BEM Easy Makeup',
'url': 'https://ru.bem.info/',
},
];
var template = {
tag: 'a',
class: 'button button_theme_islands button_size_xl',
href: '${url}',
children: [
{
tag: 'span',
class: 'icon icon_social_twitter',
},
{
tag: 'span',
class: 'button__text',
html: '${text}',
},
]
};
document.body.innerHTML = json2html.transform( data, template );
<xsl:param name="colnum" select="2"/>
<xsl:template match="udata[@module = 'catalog'][@method = 'getObjectsList']">
<xsl:apply-templates select="lines/item[position() = 1]|lines/item[position() mod $colnum = 1]"/>
</xsl:template>
<xsl:template match="item">
<div>
<xsl:apply-templates select=".|following-sibling::item[position() < $colnum]" mode="div"/>
</div>
</xsl:template>
<xsl:template match="item" mode="div">
<span class="element-{@id}" >
<xsl:value-of select="."/>
</span>
</xsl:template>
<!DOCTYPE html>
<html class="ua_js_no">
<head>
<!--[if lt IE 9]><script src="https://yastatic.net/es5-shims/0.0/es5-shims.min.js"></script><![endif]-->
<meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>bem-components dist</title>
<script>(function(e,c){e[c]=e[c].replace(/(ua_js_)no/g,"$1yes");})(document.documentElement,"className");(function(d,n){d.documentElement.className+=" ua_svg_"+(d[n]&&d[n]("http://www.w3.org/2000/svg","svg").createSVGRect?"yes":"no");})(document,"createElementNS");</script>
<!--[if gt IE 8]><!--><link rel="stylesheet" href="https://yastatic.net/bem-components/latest/desktop/bem-components.css"/>
<!--<![endif]--><!--[if lte IE 8]><link rel="stylesheet" href="https://yastatic.net/bem-components/latest/desktop/bem-components.ie.css"/><![endif]-->
</head>
<body class="page page_theme_islands">
<!-- write your code here -->
<script src="https://yastatic.net/bem-components/latest/desktop/bem-components.js+bh.js"></script>
</body>
</html>
$ git clone https://github.com/ilyar/bem-test.git && cd bem-test && npm i
$ gulp
[14:19:01] Using gulpfile ~/lab/bem-test/gulpfile.js
[14:19:01] Starting 'default'...
[14:19:01] Finished 'default' after 146 ms
$ cat dist/index.css
.menu {
list-style: none;
color: green;
}
.menu__item {
margin-left: 10px;
}
{ block: 'normalize' }
не попадает в css при сборке, чтобы подключить на проект стили и скрипты блоков desctop.blocks/page/page.deps.js:[{
mustDeps: { block: 'normalize' },
}]
echo "prefix=~/.local" > ~/.npmrc
echo "export NODE_PATH=\$NODE_PATH:~/.local/lib/node_modules" >> ~/.bashrc
echo "export PATH=~/.local/bin:\$PATH" >> ~/.bashrc
echo "export PATH=./node_modules/.bin:\$PATH" >> ~/.bashrc
source ~/.bashrc
$curl -I http://comfortauto.kz/jhfuyj/
HTTP/1.1 404 Not Found
Status: 404 Not Found
$ curl -I http://comfortauto.kz/jhfuyj
HTTP/1.1 301 Moved Permanently
Status: 301 Moved Permanently
Location: /jhfuyj/
folder-redirect = "1"
секция [seo] в файле конфигурации config.ini, подробнее тут.<?php
$FORMS = Array();
$FORMS['block'] = <<<HTML
<p>Такой страницы на сайте не существует.</p>
HTML;
<xsl:template match="udata[@module = 'content'][@method = 'sitemap']">
<p>Такой страницы на сайте не существует.</p>
</xsl:template>