[FLOW3-general] Unable to display form

Vinay Vinay nvinayvinay at gmail.com
Tue May 4 16:58:04 CEST 2010


Hi,

I have a issue in displaying form field.

After going the article from
http://flow3.typo3.org/documentation/tutorials/getting-started/gettingstarted.view/

1)

I created the action

/**
     * New action
     *
     * @return void
     */
    public function newAction() {
    }

2)

I created a html file in Blog/Resources/Private/Templates/Standard/new.html

and added the xml field

*<f:layout* name="master"* />*

*<f:section* name="mainbox"*>*
	*<h2* class="flow3-firstHeader"*>*Create a new post*</h2>*
	*<f:flashMessages* class="flashmessages"*/>*
	*<f:form* method="post" action="create" object="{newPost}"
name="newPost" enctype="multipart/form-data"*>*
		*<f:form.hidden* name="blog" value="{blog}"* />*
		*<label* for="author"*>*Author*</label>**<br />*
		*<f:form.textbox* property="author" id="author"* />**<br />*
		*<label* for="title"*>*Title*</label>**<br />*
		*<f:form.textbox* property="title" id="title"* />**<br />*
		*<label* for="content"*>*Content*</label>**<br />*
		*<f:form.textarea* property="content" rows="5" cols="40"
id="content"* />**<br />*
		*<f:if* condition="{existingPosts}"*>*
			*<label* for="relatedPosts"*>*Related Posts*</label>**<br />*
			*<f:form.select* property="relatedPosts" options="{existingPosts}"
optionLabelField="title" multiple="1" size="4" id="relatedPosts"*
/>**<br />*
			*<br />*
		*</f:if>*
		*<f:form.submit* value="Submit post"*/>*
	*</f:form>*
*</f:section>*



I am getting empty out put.


The article says that i have to create new.html in
Resources/Public/Templates/Post/

One more thing I couldn't understand the difference between  Resources/Public/
and Resources/Private/


More information about the FLOW3-general mailing list