nooku is a Public Portfolio from Assembla
Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.
check out other free and subscription products from Assembla that will help accelerate your development projects.
6 Editing data
Backend form view
When you click a Title link in the previous admin view example, an 500 error should be generated.
Exception 'KTemplateException' with message 'Template "/components/com_blog/views/post/form.php" in ...' not found.
As already mentioned before in the naming conventions, a default list view goes into views/posts/tmpl/default.php and to edit a single post we need to create a form in "/components/com_blog/views/post/tmpl/form.php".
Enter the code below in form.php
<form action="<?= @route('id='.$post->id) ?>" method="post" class="-koowa-form"> <div> <div> <input type="text" name="title" id="title" size="40" maxlength="255" value="<?= $post->title; ?>" placeholder="<?= @text( 'Title' ); ?>" /> </div> <?= @editor( array('name' => 'text', 'editor' => 'tinymce', 'width' => '100%', 'height' => '300', 'cols' => '60', 'rows' => '20', 'buttons' => null, 'options' => array('theme' => 'simple', 'pagebreak', 'readmore'))); ?> </div> </form>
This code will get and render all data from the selected post in a new form, or create an empty form when the New button was clicked, with a title input and editor field and the default Save, Apply and Cancel buttons.
BTW, have you seen the placeholder tag? Nooku fully supports HTML5 and CSS3.
Choose two versions to compare, or click the link to view it.