Модуль Album
Модуль Album
Установил модуль Album. Создал два альбома (см.рис.1). Добавил код на страницу {cms_module module='album'} (см.рис.2) На странице ничего не отобразилось (см.рис.3). Как подключить модуль Album?
Re: Модуль Album
Вот так:или"A" - заглавная
Code: Select all
{cms_module module='Album'}
Code: Select all
{Album}
Re: Модуль Album
Вопрос появился по шаблонам к модулю Album. Пытаюсь ставить разные шаблоны списка альбомов (см.рис.1) и менять шаблоны самого альбома, отображение не меняется. Отображается как то криво и без комментариев к фотографиям (см.рис.2) Судя по видео http://www.youtube.com/watch?v=LAr3vgH7Fkk проблем как-то не должно быть при добавлении альбома и фотографии даже при шаблоне default отображаются прекрасно и каждая фотография открывается в отдельном коне просмоторщика. У меня же фотография открывается на новой web странице (см.рис.3) Может какие-то настройки еще нужно сделать в модуле??
Re: Модуль Album
Read the English help, none of the other languages have been updated, there are new tags that need to be in the template or in the page metadata...
Re: Модуль Album
Дайте ссылку хоть на одну статью, где рассматривается эта проблема и какие теги добавлять и куда.
Re: Модуль Album
That video is for the older Album module, you are using the newer version and the English help is the only Help that is correct, partial copy below...
To show all albums on a page, just put this code in your page content:
{Album}
NOTE: You have to put this in the Pages metadata box in Options tab:
{Album action='metadata'}
If you don't attach the style sheet to the page add this to the metadata box also:
{cms_stylesheet name='Album Module'}
If you only want to show albums from a specific category then use use code like this:
{Album categories='1'}
The code above allows you to show in a page albums who belong to a category whose ID is 1.
You can also show multiple categories like this:
{Album categories='1,3'}
If you only want certain albums shown then use code like this, you have to have at least 1 "name" in this call, this will show in "albums" mode:
{Album albums='one,3'}
The code above allows you to show in a page albums whose names and IDs are 'one' and '3' for example. If you do not provide paramater "albums", it will show all the albums.
If you only want 1 specific album shown then use code like this, "name" of album only, this will show in "gallery" mode:
{Album albums='album name'}
The code above allows you to show in a page an album named "album name" for example.
If you only want to limit the number of thumbs that show in "gallery" mode:
{Album number='5'}
The code above allows you to show only 5 thumbs of the album at a time with pagination if the gallery has more than the specified number.
Templates
Templates now have 2 parts to them:
(1) The normal Template: edit area where you can configure the loops of for each etc. wrapping them in your choice of DIVs, UL, LI, A links, etc.
(2) The new metadata edit area, this is where you call the:
<__script__ type="text/javascript" src="modules/Album/templates/db/js/jquery.js"></__script>
<link rel="stylesheet" type="text/css" href="modules/Album/templates/db/default/default.css" media="screen" />
<__script__ type="text/javascript">
$(function() {
$('#jQligallery a').lightBox();
});
</__script>
With out having to use {literal} {/literal} around the function call.
To show all albums on a page, just put this code in your page content:
{Album}
NOTE: You have to put this in the Pages metadata box in Options tab:
{Album action='metadata'}
If you don't attach the style sheet to the page add this to the metadata box also:
{cms_stylesheet name='Album Module'}
If you only want to show albums from a specific category then use use code like this:
{Album categories='1'}
The code above allows you to show in a page albums who belong to a category whose ID is 1.
You can also show multiple categories like this:
{Album categories='1,3'}
If you only want certain albums shown then use code like this, you have to have at least 1 "name" in this call, this will show in "albums" mode:
{Album albums='one,3'}
The code above allows you to show in a page albums whose names and IDs are 'one' and '3' for example. If you do not provide paramater "albums", it will show all the albums.
If you only want 1 specific album shown then use code like this, "name" of album only, this will show in "gallery" mode:
{Album albums='album name'}
The code above allows you to show in a page an album named "album name" for example.
If you only want to limit the number of thumbs that show in "gallery" mode:
{Album number='5'}
The code above allows you to show only 5 thumbs of the album at a time with pagination if the gallery has more than the specified number.
Templates
Templates now have 2 parts to them:
(1) The normal Template: edit area where you can configure the loops of for each etc. wrapping them in your choice of DIVs, UL, LI, A links, etc.
(2) The new metadata edit area, this is where you call the:
<__script__ type="text/javascript" src="modules/Album/templates/db/js/jquery.js"></__script>
<link rel="stylesheet" type="text/css" href="modules/Album/templates/db/default/default.css" media="screen" />
<__script__ type="text/javascript">
$(function() {
$('#jQligallery a').lightBox();
});
</__script>
With out having to use {literal} {/literal} around the function call.