在Bootstrap模式中添加FeLogin

时间:2016-05-17 06:53:13

标签: twitter-bootstrap typo3 bootstrap-modal

每个人的好日子

我正在尝试在我创建的模态窗口中添加FeLogin表单。直到现在我设法在Main.html中创建一个Modal窗口。然后我尝试实现我链接30_Page.ts并在LoginBox.ts中创建的变量。 然后它似乎没有生效。

直到现在我的结果只是一个空的模态窗口,它会弹出并且可以关闭。

但它自己的形式不会产生。

当我尝试将表单实现到我的模态时,有谁知道问题是什么?

编辑:

我注意到问题出在lib.LoginBox < plugin.tx_felogin_pi1。 因为在TypoScript对象浏览器中查看它。变量不像其他变量那样完整。

我还尝试将其更改为lib.LoginBox = USERlib.LoginBox = USER_INT以及lib.LoginBox = COAlib.LoginBox = COA_INT

结果只给了我一个<!--INT_SCRIPT Error

{扩展} /Resources/Private/Templates/Main.html

...
<!-- Modal -->
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Anmelden</h4>
            </div>
            <div class="modal-body">
                {LoginBox}
            </div>
        </div>
    </div>
</div>

{扩展} /Configuration/Lib/Include/LoginBox.ts

/* LoginBox.ts */
lib.LoginBox.2 < plugin.tx_felogin_pi1
lib.LoginBox.2 {

    storagePid = 19
    showForgotPasswordLink = 1

    welcomeHeader_stdWrap >
    welcomeMessage_stdWrap >
    logoutHeader_stdWrap >
    logoutHeader_stdWrap >
    successHeader_stdWrap >

    showLogoutFormAfterLogin = 0
    noSuccessMessageAfterLogin = 1
    dateFormat = d.m.Y H:i

    redirectMode = login
    redirectPageLogin = 56

    _CSS_DEFAULT_STYLE >

    _LOCAL_LANG.de {
       ll_welcome_header =
       ll_logout_header = 
       username = Benutzername
       password = Passwort
    }
}

{扩展} /Configuration/Page/Setuo/30_Page.ts

# Template Einbinden
page.10 = FLUIDTEMPLATE 
page.10 {   
    partialRootPath = typo3conf/ext/cf_base_efco/Resources/Private/Partials/
    layoutRootPath = typo3conf/ext/cf_base_efco/Resources/Private/Layouts/

    # template file
    file = typo3conf/ext/cf_base_efco/Resources/Private/Templates/Main.html
    file.stdWrap.cObject = CASE
    file.stdWrap.cObject {
        key.data = levelfield:-1, backend_layout_next_level, slide
        key.override.field = backend_layout

        default = TEXT
        default.value = {$plugin.tx_cf_base_efco.fluid.templates}Main.html

        1 = TEXT
        1.value = {$plugin.tx_cf_base_efco.fluid.templates}Main.html

        2 = TEXT
        2.value = {$plugin.tx_cf_base_efco.fluid.templates}Home.html
    }

    # libs einfuegen
    variables {
        HeaderLogo < lib.HeaderLogo
        MainNavigation < lib.MainNavigation
        LoginBox < lib.LoginBox     
        SubNavigation < lib.SubNavigation
        Content1 < lib.Content1
        Content2 < lib.Content2
        Content3 < lib.Content3
        Seitentitel < lib.Seitentitel
        SeitentitelPlain < lib.SeitentitelPlain
        FooterNavigation < lib.FooterNavigation
        Copyright < lib.Copyright
        Breadcrumb < lib.Breadcrumb
        LangNavigation < lib.LangNavigation
        PageLink < lib.PageLink
        Slider < lib.Slider
        SearchBox < lib.SearchBox
        motto = TEXT
        motto.value = {$text.motto}
        copyright = TEXT
        copyright.value = {$text.copyright}
        legal = TEXT
        legal.value = {$text.legal}
        productGroup = TEXT
        productGroup.value = {$text.productGroup}
        shoppingBasket = TEXT
        shoppingBasket.value = {$text.shoppingBasket}

        efcoImagePath = TEXT
        efcoImagePath.value = {$plugin.tx_cf_base_efco.filepaths.images}
    }
}

我很高兴能够提供任何类型的反馈。

谢谢你。

0 个答案:

没有答案