Typo3 Powermail Prefill

时间:2015-05-23 12:49:37

标签: typo3

我正在使用Typo3并在酒店页面上获得2张Powermail表格。

每个页面上的一个小表格,您可以在其中输入签到和结帐日期。 在此之后,您将被重定向到主表单。

如何在主窗体中重定向后从小号预填充日期记录?

两种形式都有相同的变量名{checkin}和{checkout}

由于

2 个答案:

答案 0 :(得分:3)

试试..

 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 
      }
    }

}

答案 1 :(得分:0)

您可以尝试在表单操作网址中添加(提交操作的宽度为js)或重定向网址宽度参数[checkin] =""和[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"> 
...

for test try use url&#34; yousite.com/index.php?id = 5?checkin = 25.05.15&amp; checkout = 25.06.15&#34;表格中的字段必须填写。 在哪里&#34; 5&#34; - 您的主要表单页面ID