2015-05-23 129 views
0

我使用Typo3並在酒店頁面上獲得了2個Powermail表單。Typo3 Powermail預填充

每個頁面上的一個小表格,您可以在其中放入簽入和結帳日期。 之後,您將被重定向到主窗體。

如何在mainform中重定向之後從小的預填充日期記錄?

兩種形式具有相同的變量名稱{籤}和{結帳}

由於

回答

0

您好嘗試在表單動作URL添加(寬度JS上提交動作)或重定向URL寬度parametrs [籤] = 「」和[checkout] =「」。像這樣

<form class="form-horizontal powermail_form powermail_form_1" action="index.php?id=5&checkin=25.05.15&checkout=25.06.15" method="post"> 
... 

測試嘗試使用URL「yousite.com/index.php?id=5?checkin=25.05.15 &結帳= 15年6月25日」在表單字段必須填寫。 其中 「5」 - 主窗體頁ID

2

試試吧..

plugin.tx_powermail.settings.setup.prefill { 
    # Fill field with marker {current_date} 
    current_date = TEXT 
    current_date{ 
     data = date : U 
     strftime = %d-%m-%Y %H:%M:%S 
    } 
    form2date = TEXT 
    form2date{ 
     data = date : U 
     strftime = %d-%m-%Y %H:%M:%S 
    } 

    seminar = CONTENT 
    seminar { 
     table = tx_news_domain_model_news 
     select.pidInList = 118 
     select.where.stdWrap.cObject = TEXT 
     select.where.stdWrap.cObject.data = GP:tx_news_pi1|news 
     select.where.stdWrap.cObject.wrap = uid = | 
     select.where.stdWrap.cObject.insertData =1 
     renderObj = COA 
     renderObj { 
      10 = TEXT 
      10.dataWrap ={field:title} 

     } 
    } 

    price = CONTENT 
    price { 
     table = tx_news_domain_model_news 
     select.pidInList = 118 
     select.where.stdWrap.cObject = TEXT 
     select.where.stdWrap.cObject.data = GP:tx_news_pi1|news 
     select.where.stdWrap.cObject.wrap = uid = | 
     select.where.stdWrap.cObject.insertData =1 
     renderObj = COA 
     renderObj { 
      10 = TEXT 
      10.dataWrap ={field:price} 

     } 
    } 

    location = CONTENT 
    location { 
     table = tx_news_domain_model_news 
     select.pidInList = 118 
     select.where.stdWrap.cObject = TEXT 
     select.where.stdWrap.cObject.data = GP:tx_news_pi1|news 
     select.where.stdWrap.cObject.wrap = uid = | 
     select.where.stdWrap.cObject.insertData =1 
     renderObj = COA 
     renderObj { 
      10 = TEXT 
      10.dataWrap ={field:tx_roqnewsevent_location} 
     } 
    } 

    event_startdate = CONTENT 
    event_startdate { 
     table = tx_news_domain_model_news 
     select.pidInList = 118 
     select.where.stdWrap.cObject = TEXT 
     select.where.stdWrap.cObject.data = GP:tx_news_pi1|news 
     select.where.stdWrap.cObject.wrap = uid = | 
     select.where.stdWrap.cObject.insertData =1 
     renderObj = COA 
     renderObj { 
      10 = TEXT 
      10.value.field = tx_roqnewsevent_startdate 
      10.value.date = d-m-Y 
      #10.strftime = %d-%m-%Y 
     } 
    } 

}