zoukankan      html  css  js  c++  java
  • [eZ publish] (Tranfer) Build a form use the information collector 2

    Form view template INI settings

    Without an override template, eZ Publish will use the /node/view/full.tpltemplate to display the form, but that template does not include theelements required to display and process the form properly.

    To point eZ Publish to the correct template (which we will create next), edit the override.ini.append.php file for each siteaccess, such as the “eng” siteaccess:

    /settings/siteaccess/eng/override.ini.append.php

    Add the following entry to the override file:

    [full_membership_application_form] Source=node/view/full.tpl MatchFile=full/membership_application_form.tpl Subdir=templates Match[class_identifier]=membership_application_form

    Creating the full view template

    The next step is to create the template file that was defined in the override.ini.append.php settings file.

    In this example, the new formtemplate will be placed in the appropriate folder within thedirectories for the Website Interface extension:

    /extension/ezwebin/design/ezwebin/override/templates/full/membership_application_form.tpl

    The easiest thing to do is to copy the template for the default eZ Publish feedback form (feedback_form.tpl) from the same directory and adapt it to the new form. Our membership_application_form.tpl template is shown below. For more information about the eZ Publish template language, see the templates section of the technical manual or

  • 相关阅读:
    Xargs
    录制终端会话-script--查找find
    命令之乐-cat
    Linux_shell编程--比较与测试
    线程进程
    计算机网络基础
    python基础-列表相关
    初学Python
    numpy 基本的数组统计方法
    python 操作mysql 入门
  • 原文地址:https://www.cnblogs.com/davidhhuan/p/1716912.html
Copyright © 2011-2022 走看看