【问题标题】:how can add nasted slider in home page on magento?如何在magento的主页中添加嵌套滑块?
【发布时间】:2014-10-15 15:09:41
【问题描述】:

现在我正在使用 magento1.9 并且安装主题是“http://www.magentocommerce.com/magento-connect/free-theme-electronics-online-by-pagayo.html” 我在主页中添加了带有图像缩略图的嵌套滑块。 嵌套滑块链接在“http://www.jssor.com/demos/nested-slider.html”下方 请建议我。

【问题讨论】:

    标签: magento


    【解决方案1】:

    首先使用嵌套滑块在your_theme_/template/page/html/nested-slider.phtml 中创建一个页面。

    your_theme_/template/page/html/header.phtml调用新页面。

    <?php echo $this->getLayout()->createBlock('core/template')->setTemplate('page/html/nested-slider.phtml')->toHtml();?>
    <?php echo $this->getChildHtml('nested-slider'); ?> // displays the page where it is used
    

    一旦您准备好将图像传递给静态块。 使用下面的代码在使用图像的幻灯片的框架内调用图像

    <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('id_block_static')->toHtml(); ?>
    

    【讨论】:

      【解决方案2】:

      我建议您使用 M-Connect Media 为 Magento 开发的最好的嵌套标签滑块扩展,而不是这个,它可免费用于 Magento 社区。 您可以利用此扩展程序创建多个选项卡并在每个选项卡中添加多个横幅滑块,结果您将获得多个选项卡,每个选项卡中都有多个滑块。 它适用于 Magento 1 和 2

      Magento 1 - https://www.mconnectmedia.com/nested-slider.html
      Magento 2 - https://www.mconnectmedia.com/nested-slider-magento2.html

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-05-15
        • 2020-08-12
        • 2013-03-26
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多