thelia / tabs-module
4.0.0
2024-04-17 13:07 UTC
Requires
- thelia/installer: ~1.1
README
此模块允许您为内容、产品、类别和文件夹创建内容选项卡。
如何安装
此模块必须位于您的 modules/
目录中(thelia/local/modules/)。
您可以下载此模块的 .zip 文件,或者像这样将 git 子模块创建到您的项目中
cd /path-to-thelia
git submodule add https://github.com/thelia-modules/Tabs.git local/modules/Tabs
接下来,前往 Thelia 管理面板以激活模块。
循环标签
参数
如何使用
您可以在内容和产品编辑视图的“模块”标签中管理您的选项卡。
此模块允许您使用一个新的循环:tabs。
以下是一个使用示例
使用 tabs 循环(与内容 id 相关的选项卡列表)
{loop name="tabs" type="tabs" source="content" source_id=$ID order="manual_reverse"} <article> <h1>{$TITLE}</h1> <div class="description">{$DESCRIPTION nofilter}</div> </article> {/loop}
使用 tabs 循环(与产品 id 相关的选项卡列表)
{loop name="tabs" type="tabs" source="product" source_id=$ID order="manual_reverse"} <article> <h1>{$TITLE}</h1> <div class="description">{$DESCRIPTION nofilter}</div> </article> {/loop}
使用 tabs 循环(与类别 id 相关的选项卡列表)
{loop name="tabs" type="tabs" source="category" source_id=$ID order="manual_reverse"} <article> <h1>{$TITLE}</h1> <div class="description">{$DESCRIPTION nofilter}</div> </article> {/loop}
使用 tabs 循环(与文件夹 id 相关的选项卡列表)
{loop name="tabs" type="tabs" source="folder" source_id=$ID order="manual_reverse"} <article> <h1>{$TITLE}</h1> <div class="description">{$DESCRIPTION nofilter}</div> </article> {/loop}