727
правок
Изменения
Перейти к навигации
Перейти к поиску
'''1)''' В разделе "Управление сайтом - Nemo CMS - Шаблоны" создаем шаблон блока.<br>https://drive.google.com/file/d/0B2geuk8VO4nOdjd1VDFQcDU1YWs/view?usp=sharing <div class="toccolours mw-collapsible mw-collapsed" style="margin-bottom:10px;">==== block.generic.tpl ====<div class="mw-collapsible-content"><pre>{foreach from=$elements item=element}{cms_render_element id=$element.id}{/foreach}</pre></div></div> '''2)''' В разделе "Управление сайтом - Nemo CMS - Блоки элементов" создаем 3 блока: блок шапки, блок контента и блок подвала.<br>Для всех блоков используется "Шаблон блока", пример: https://drive.google.com/file/d/0B2geuk8VO4nOYkp2bmhPTlFqR3c/view?usp=sharing '''3)''' В разделе "Управление сайтом - Nemo CMS - Шаблоны" создаем шаблон страницы.<br>https://drive.google.com/file/d/0B2geuk8VO4nON2h0RnVRM1NUVE0/view?usp=sharing <div class="toccolours mw-collapsible mw-collapsed" style="margin-bottom:10px;">==== page.generic.tpl ====<div class="mw-collapsible-content"><pre>{foreach from=$global item=item key=key}{assign var=$key value=$item}{/foreach}{if $go == 'search/index' || $go == 'search/view_results' || $isNewHotels} <div class="nemo-common-pageWrapper"> {cms_render_block id=1} {cms_render_block id=2} </div> {cms_render_block id=3} <div class="nemo-global-loader js-global-loader"></div>{elseif $go == 'exare_exchange/search_form'} <div class="nemo-common-pageWrapper"> {cms_render_block id=2} </div>{else} <div class="{if $go != "poffice/table" && $go != "poffice/train_table" && $go != 'poffice/exare_table' && $go != "pomessage/inbox" && $go != 'pomessage/create' && $go != 'pomessage/fromtpl' && $go != 'pomessage/index' && $go != 'pomessage/reply' && $go != 'pomessage/search' && $go != 'pomessage/show' && $go != 'pomessage/sent' && $go != 'pomessage/from_orders' && $go != 'pomessage/agency_messages' && $go != "poffice/my_passengers" && $go != 'poclaim/list' && $go != 'poclaim/create' && $go != "poclaim/show" && $go != 'poffice/finances' && $go != 'poffice/finance_documents' && $go != 'poffice/finances_log' && $go != "base/user_settings" && $go != "base/mini_agency_settings"}pro-wrapper js-pageWrapper pro-wrapper_wide{else} nemo-common-pageWrapper nemo-common-po{/if}{if $booking && $booking->getType() == 'TRAINS' || $current_component == 'TRAINS'} nemo-trains-wrapper{/if}"> {cms_render_block id=1} {if $go != "poffice/bookinfo" && $go != "poffice/table" && $go != "poffice/train_table" && $go != "poffice/exare_table" && $go != 'pomessage/inbox' && $go != 'pomessage/create' && $go != 'pomessage/fromtpl' && $go != 'pomessage/index' && $go != 'pomessage/reply' && $go != 'pomessage/search' && $go != 'pomessage/show' && $go != 'pomessage/sent' && $go != 'pomessage/from_orders' && $go != 'pomessage/agency_messages' && $go != "poffice/my_passengers" && $go != 'poclaim/list' && $go != 'poclaim/create' && $go != "poclaim/show" && $go != 'poffice/finances' && $go != 'poffice/finance_documents' && $go != 'poffice/finances_log' && $go != "base/user_settings" && $go != "base/mini_agency_settings"} {assign var=needWrapper value=true} {/if} {if $needWrapper}<div class="{if $booking && $booking->getType() == 'TRAINS' || $current_component == 'TRAINS'}nemo-common-pageWrapper nemo-trains{else}pro-wrapper{/if}">{/if} {cms_render_block id=2} {if $needWrapper}</div>{/if} </div> {cms_render_block id=3}{/if}</pre></div></div> {cms_render_block id=1} идентификатор блока нужно посмотреть в разделе "Управление сайтом - Nemo Инструкция по первичной настройке CMS - Блоки элементов", доступна в примере выше 1 - шапка, 2 - контент, 3 - подвал. '''4)''' В разделе "Управление сайтом - соответствующей [[Инструкция по первичной настройке Nemo CMS - Шаблоны" создаем шаблон шапки.<br>https://drive.google.com/file/d/0B2geuk8VO4nOUkZ5NDZwelVDaUk/view?usp=sharing <div class="toccolours mw-collapsible mw-collapsed" style="margin-bottom:10px;"> ==== module.textsystem.single.header.tpl ====<div class="mw-collapsible-content"><pre>{foreach from=$global item=item key=key}{assign var=$key value=$item}{/foreach}{* Loading registration forms *}{registrationForms}{getCurrencyConverterData} <div class="nemo-common-mobileControl nemo-common-mobileControl_links js-nemo-mobileControl js-nemo-mobileControl_links"> <div class="nemo-common-mobileControl__pseudoHeader"> <div class="nemo-common-mobileControl__pseudoHeader__close js-nemo-mobileControl__close"></div> <div class="nemo-common-mobileControl__pseudoHeader__options js-nemo-mobileControl__toOptions"></div> <div class="nemo-common-mobileControl__pseudoHeader__title js-nemo-mobileControl__title"></div> </div> <div class="nemo-ui-subContainer nemo-common-mobileControl__sideblock"> <div class="nemo-common-mobileControl__sideblock__user"> {if $info_user_status == 'gst'} <button class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__sideblock__user__button js-header-auth_adaptive"> {'new-header-enter'|language} </button> {if isset($registrationFormsData.b2c)} <button class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__sideblock__user__button js-header-register_adaptive"> {'new-header-registration'|language} </button> {/if} {else} <div class="nemo-common-mobileControl__sideblock__user__name"> {$info_name} {$info_surname} {$info_login} {if $info_user_status !== 'usr'} ({$info_user_status|language}) {/if} </div> {strip} {if !$hide_poffice} <a class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__sideblock__user__button" href="/{url controller="poffice" action="table"}">{'new-header-privateOffice'|language}</a> {/if} {if $authuser->isB2B()} <a class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__sideblock__user__button" href="/{url controller="settings" action="dashboard"}" target="_blank">{'new-header-settings'|language}</a> {/if} <a class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__sideblock__user__button" href="/{go_and_back controller='authorization' action='logout'}">{'new-header-logout'|language}</a> {/strip} {/if} {if $show_booking_status_check} <a href="/{url controller='booking' action='status'}" class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__sideblock__user__button js-header-checkOrder_adaptive"> {'new-header-checkBookStatus'|language} </a> {/if} </div> {if in_array('FLIGHTS', $enabled_components)} {if $current_component != 'FLIGHTS'} <a class="nemo-common-mobileControl__sideblock__componentLink" href="/"> {'header.components_menu--flights'|language} </a> {else} <span class="nemo-common-mobileControl__sideblock__componentLink nemo-common-mobileControl__sideblock__componentLink_active">{'header.components_menu--flights'|language}</span> {/if} {/if} {if in_array('HOTELS', $enabled_components)} {if $current_component != 'HOTELS'} <a class="nemo-common-mobileControl__sideblock__componentLink" href="/hotels"> {'header.components_menu--hotels'|language} </a> {else} <span class="nemo-common-mobileControl__sideblock__componentLink nemo-common-mobileControl__sideblock__componentLink_active">{'header.components_menu--hotels'|language}</span> {/if} {/if} {if in_array('TRAINS', $enabled_components) && $show_trains_link} {if $current_component != 'TRAINS'} <a class="nemo-common-mobileControl__sideblock__componentLink" href="/trains"> {'header.components_menu--trains'|language} </a> {else} <span class="nemo-common-mobileControl__sideblock__componentLink nemo-common-mobileControl__sideblock__componentLink_active">{'header.components_menu--trains'|language}</span> {/if} {/if} </div></div><div class="nemo-common-mobileControl nemo-common-mobileControl_options js-nemo-mobileControl js-nemo-mobileControl_options"> <div class="nemo-common-mobileControl__optionsInner"> <div class="nemo-common-mobileControl__optionsBlock js-nemo-mobileControl__optionsBlock js-nemo-mobileControl__optionsBlock_selector"> {assign var=locale_up value=$locale|upper} <div class="nemo-ui-subContainer nemo-common-mobileControl__optionsBlock__options"> <div class="nemo-common-mobileControl__optionsBlock__option" data-block="userInfo"> <span class="nemo-common-mobileControl__optionsBlock__option__value"> {strip} <a href="/profile"> {if $info_name} {$info_name} {elseif $info_surname} {$info_surname} {else} {$info_login} {/if} </a> {/strip} {if $info_user_status !== 'usr'} ({$info_user_status|language}) {/if} </span> </div> <div class="nemo-common-mobileControl__optionsBlock__option js-nemo-mobileControl__optionsBlock__selector" data-block="language"> <span class="nemo-common-mobileControl__optionsBlock__option__additional">{'new-header-mobileOptions__change'|language}</span> <span class="nemo-common-mobileControl__optionsBlock__option__value"> {'lang_'|cat:$locale_up|language} </span> </div> <div class="nemo-common-mobileControl__optionsBlock__option js-nemo-mobileControl__optionsBlock__selector" data-block="currency"> <span class="nemo-common-mobileControl__optionsBlock__option__additional">{'new-header-mobileOptions__change'|language}</span> <span class="nemo-common-mobileControl__optionsBlock__option__value js-nemo-mobileControl__currency__selected">{'currency_'|cat:$currencyConverter.defaultCurrency|language}</span> </div> </div> <div class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__optionsBlock__cancel js-nemo-mobileControl__close">{'new-header-mobileOptions__close'|language}</div> </div> <div class="nemo-common-mobileControl__optionsBlock js-nemo-mobileControl__optionsBlock js-nemo-mobileControl__optionsBlock_language" style="display: none;"> <div class="nemo-ui-subContainer nemo-common-mobileControl__optionsBlock__options"> {foreach item=lang from=$agency_langs key=lang_code} {if $locale != $lang_code} <div class="nemo-common-mobileControl__optionsBlock__option js-nemo-header-dropmenu__drop__language" data-language="{$lang_code}"> {$lang} </div> {/if} {/foreach} </div> <div class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__optionsBlock__cancel js-nemo-mobileControl__optionsBlock__selector" data-block="selector">{'new-header-mobileOptions__cancel'|language}</div> </div> <div class="nemo-common-mobileControl__optionsBlock js-nemo-mobileControl__optionsBlock js-nemo-mobileControl__optionsBlock_currency" style="display: none;"> <div class="nemo-ui-subContainer nemo-common-mobileControl__optionsBlock__options"> {foreach from=$currencyConverter.rates item=oneCur key=key} <div class="nemo-common-mobileControl__optionsBlock__option js-nemo-mobileControl__currency__option" data-currency="{$key}"> {'currency_'|cat:$key|language} </div> {/foreach} </div> <div class="nemo-ui-button nemo-ui-button_common nemo-common-mobileControl__optionsBlock__cancel js-nemo-mobileControl__optionsBlock__selector" data-block="selector">{'new-header-mobileOptions__cancel'|language}</div> </div> </div></div><header class="nemo-common-pageHeader"> <div class="nemo-common-pageHeader__inner"> <div class="nemo-common-pageHeader__mobileControl nemo-common-pageHeader__mobileControl_links js-nemo-mobileControl__toggler" data-control="links"></div> <div class="nemo-common-pageHeader__mobileControl nemo-common-pageHeader__mobileControl_options js-nemo-mobileControl__toggler" data-control="options"></div> {include file="header_logo.tpl"} <div class="nemo-common-pageHeader__inner__headerLinks"> {if $test_mode} {'system_test_mode'|language} {/if} {strip} <div class="nemo-common-pageHeader__inner__headerRight__componentsLinks"> {if in_array('FLIGHTS', $enabled_components)} {if $current_component != 'FLIGHTS'} <a href="/" class="nemo-ui-link nemo-common-pageHeader__inner__headerRight__componentsLinks__avia"> {'header.components_menu--flights'|language} </a> {else} <span class="nemo-common-pageHeader__inner__headerRight__componentsLinks__avia nemo-common-pageHeader__inner__headerRight__componentsLinks_active"> {'header.components_menu--flights'|language} </span> {/if} {/if} {if in_array('HOTELS', $enabled_components)} {if $current_component != 'HOTELS'} <a href="/hotels" class="nemo-ui-link nemo-ui-link nemo-common-pageHeader__inner__headerRight__componentsLinks__hotels"> {'header.components_menu--hotels'|language} </a> {else} <span class="nemo-common-pageHeader__inner__headerRight__componentsLinks__hotels nemo-common-pageHeader__inner__headerRight__componentsLinks_active"> {'header.components_menu--hotels'|language} </span> {/if} {/if} {if in_array('TRAINS', $enabled_components) && $show_trains_link} {if $current_component != 'TRAINS'} <a href="/trains" class="nemo-ui-link nemo-common-pageHeader__inner__headerRight__componentsLinks__trains"> {'header.components_menu--trains'|language} </a> {else} <span class="nemo-common-pageHeader__inner__headerRight__componentsLinks__trains nemo-common-pageHeader__inner__headerRight__componentsLinks_active"> {'header.components_menu--trains'|language} </span> {/if} {/if} </div> {/strip} </div> <div class="nemo-common-pageHeader__inner__headerRight"> {if $info_user_status == 'gst'} {if $show_booking_status_check} <a href="/{url controller='booking' action='status'}" class="nemo-ui-pseudoLink nemo-common-pageHeader__checkBook js-header-checkOrder"> {'new-header-checkBookStatus'|language} </a> {include file='checkBooking_popup.tpl'} {/if} <a href="/{go_and_back controller='authorization' action='auth_client'}" class="nemo-ui-button nemo-ui-button_common nemo-ui-button_medium nemo-common-pageHeader__inner__headerLinks__item nemo-common-pageHeader__auth js-header-auth {if isset($registrationFormsData.b2c)} nemo-common-pageHeader__auth__borderRight {/if}"> {'new-header-enter'|language} </a> <div class="js-header-restorepass" style="display: none;"></div> {include file='authorization_popup.tpl'} {include file='authorization_passRecovery_popup.tpl'} {if isset($registrationFormsData.b2c)} <a href="/{url controller='authorization' action='registration' get=''}" class="js-header-register nemo-common-pageHeader__inner__headerLinks__item nemo-ui-button nemo-ui-button_common nemo-common-pageHeader__registration"> {'new-header-registration'|language} </a> <div class="js-registration-formcontainer_b2c" style="display: none;"> {include file="registration_inline.tpl" form=$registrationFormsData.b2c} </div> {/if} {else} {if !$hide_poffice} <a href="/{url controller="poffice" action="table"}" class="nemo-ui-button nemo-ui-button_common nemo-common-pageHeader__myOffice"> {'new-header-privateOffice'|language} </a> {/if} <div class="nemo-ui-dropMenu nemo-common-pageHeader__dropMenu nemo-common-pageHeader__dropMenu_user"> <div class="nemo-ui-dropMenu__main"> <div class="nemo-ui-select js-common-pseudoSelectHeader"> <div class="nemo-ui-select__toggle js-common-pseudoSelectHeader__toggle nemo-common-pageHeader__dropMenu_user_label {if !$hide_poffice} nemo-common-pageHeader__dropMenu_user_label_borderLeft {/if}"> {$info_logged_in_as} </div> <ul class="nemo-ui-select__dropdown js-common-pseudoSelectHeader__dropdown"> {if !$hide_poffice} <li class="nemo-ui-select__dropdown__item"> <a href="/profile"> {'tab_my_profile'|language} {if $info_user_status !== 'usr'} ({$info_user_status|language}) {/if} </a> </li> {/if} {if $authuser->isB2B()} <li class="nemo-ui-select__dropdown__item"> <a href="/settings__dashboard"> {'new-header-settings'|language} </a> </li> {/if} <li class="nemo-ui-select__dropdown__item"> <a href="/{go_and_back controller='authorization' action='logout'}"> {'new-header-logout'|language} </a> </li> </ul> </div> </div> </div> {/if} <div class="nemo-ui-dropMenu js-nemo-header-dropmenu nemo-common-pageHeader__dropMenu nemo-common-pageHeader__dropMenu_language {if count($currencyConverter.rates) > 1 && $currencyConverter.conversionEnabled} nemo-common-pageHeader__dropMenu nemo-common-pageHeader__dropMenu_language_borderRight {/if} "> <div class="nemo-ui-dropMenu__main"> <button class="nemo-ui-button nemo-ui-button_common nemo-common-pageHeader__dropMenu__button js-nemo-header-dropmenu__button"> <span class="nemo-common-pageHeader__langSelectImage flag flag-{if isset($country_codes_by_languages[$localeстатье])}{$country_codes_by_languages[$locale]|upper}{else}{$locale|upper}{/if}"></span> </button> </div> <div class="nemo-ui-dropMenu__drop js-nemo-header-dropmenu__drop nemo-common-pageHeader__droplist nemo-common-pageHeader__droplist_language"> <span class="nemo-common-pageHeader__droplist__header">{'new-header-siteLang'|language}</span> {foreach item=lang from=$agency_langs key=lang_code} {if $locale != $lang_code} <div class="nemo-common-pageHeader__droplist__option js-nemo-header-dropmenu__drop__option js-nemo-header-dropmenu__drop__language" data-language="{$lang_code}"> <div class="nemo-common-pageHeader__droplist__option__icon"> <span class="nemo-common-pageHeader__langSelectImage flag flag-{if isset($country_codes_by_languages[$lang_code])}{$country_codes_by_languages[$lang_code]|upper}{else}{$lang_code|upper}{/if}" > </span> </div> <span class="nemo-common-pageHeader__droplist__option__text"> {$lang} </span> </div> {/if} {/foreach} </div> </div> {if count($currencyConverter.rates) > 1 && $currencyConverter.conversionEnabled} <div class="nemo-ui-dropMenu js-nemo-header-dropmenu nemo-common-pageHeader__dropMenu nemo-common-pageHeader__dropMenu_currency"> <div class="nemo-ui-dropMenu__main"> <button class="nemo-ui-button nemo-ui-button_common nemo-common-pageHeader__dropMenu__button js-nemo-header-dropmenu__button"> {if $currencyConverter.defaultCurrency == "RUB"} <money><currency type="symbol" currency="RUB">RUB</currency></money> {else} {"currency_"|cat:$currencyConverter.defaultCurrency|cat:"_symbol"|language} {/if} </button> </div> <div class="nemo-ui-dropMenu__drop js-nemo-header-dropmenu__drop nemo-common-pageHeader__droplist"> <span class="nemo-common-pageHeader__droplist__header">{'new-header_currency_for'|language}</span> {foreach from=$currencyConverter.rates item=oneCur key=key} <div class="nemo-common-pageHeader__droplist__option js-nemo-header-dropmenu__drop__option js-nemo-header-dropmenu__drop__currency" data-currency="{$key}"> <div class="nemo-common-pageHeader__droplist__option__icon"> {if $key == "RUB"} <money><currency type="symbol" currency="RUB">RUB</currency></money> {else} {"currency_$key"|cat:"_symbol"|language} {/if} </div> <span class="nemo-common-pageHeader__droplist__option__text"> {"currency_$key"|language} </span> <span class="js-nemo-header-dropmenu__drop__currency__text" style="display: none;"> {if $key == "RUB"} <money><currency type="symbol" currency="RUB">RUB</currency></money> {else} {"currency_$key"|cat:"_symbol"|language} {/if} </span> </div> {/foreach} </div> </div> {/if} </div> </div> {include file="authenticationWarning.tpl"} {include file="header_scripts.tpl"}</header></pre></div></div> '''5)''' В разделе "Управление сайтом - Nemo CMS - Шаблоны" создаем шаблон подвала.<br>https://drive.google.com/file/d/0B2geuk8VO4nOVEtjMm1GMi1XU1E/view?usp=sharing <div class="toccolours mw-collapsible mw-collapsed" style="margin-bottom:10px;"> ==== module.textsystem.single.footer.tpl ====<div class="mw-collapsible-content"><pre><footer class="nemo-common-footer"> <div class="nemo-common-footer__footerInner"> <div class="nemo-common-footer__copyRight"> © nemo.travel </div> <div class="nemo-common-footer__footerMenu"> <a href="#" class="nemo-common-footer__footerMenu__item"> Помощь </a> <a href="#" class="nemo-common-footer__footerMenu__item"> Обратная связь </a> </div> </div></footer></pre></div></div> '''6)''' В разделе "Управление сайтом - Nemo CMS - Модули - Системные тексты" создаем категорию "Служебные". Внутри категории создаем текстовую статью с заголовком "Служебный текст" и пустым содержанием. Эта пустышка понадобится далее при создании элементов шапки и подвала внутри макета. '''7)''' В разделе "Управление сайтом - Nemo CMS - Макеты страниц" создаем макет с любым заголовком, Родитель - не определено, Шаблон - Шаблон страницы, Режим создания элементов страницы - наследовать далее, Включено - да.<br>Внутри макета создаем 3 элемента: шапка, движок и подвал.<br>Шапка https://drive.google.com/file/d/0B2geuk8VO4nOT2g2UmdvRUVlUkE/view?usp=sharing<br>Движок https://drive.google.com/file/d/0B2geuk8VO4nOX0VvTTQ0bm5HMzA/view?usp=sharing<br>Подвал https://drive.google.com/file/d/0B2geuk8VO4nONHF0QmZpY3NlT3M/view?usp=sharing<br>При заполнение элементов некоторых полей со скриншотов может не хватать, нужно сохранить элемент и они появятся. '''8)''' В разделе "Управление сайтом - Nemo CMS - Настройки сайта" задаем соответствие между страницами и макетами, которые должны быть использованы для этих страниц. '''9)''' В разделе "Управление сайтом - Настройка внешнего вида" можно добавить дополнительный код в <nowiki><head></nowiki>, css стили и js скрипты.
Нет описания правки
{{Attention|Для страниц с формой поиска отелей можно использовать префикс hotel_}}
== Краткая инструкция Инструкция по разворачиванию ЦМС первичной настройке CMS ==
== См. также ==