Bartonsweb wrote: I was hoping you'd try yourself, but here you go - try this:
users-admin.php
- Code: Select all
<?php require_once( '../admin/cms.php' ); ?>
<cms:template title='User Cours Admin' hidden='0' />
<cms:pages masterpage=k_user_template page_id=k_user_id >
<tr>
<th scope="row"><cms:show employee_id /></th>
<td><a href="users-cours-admin-edit.php?id=<cms:show k_page_id />"><cms:show fullname /></a></td>
</tr>
</cms:pages>
<?php COUCH::invoke(); ?>
users-admin-edit.php
- Code: Select all
<?php require_once( '../admin/cms.php' ); ?>
<cms:template title='Cours Edit' hidden='0' order='13' />
<cms:set edit_user="<cms:gpc 'id' />" />
<cms:set success_msg="<cms:get_flash 'success_msg' />" />
<cms:if success_msg >
<h2> - Endringer ble lagret velykket!</h2>
</cms:if>
<cms:form
masterpage=k_user_template
mode='edit'
page_id=edit_user
enctype="multipart/form-data"
method='post'
anchor='0'
>
<cms:if k_success >
<cms:db_persist_form />
<cms:if k_success >
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
</cms:if>
</cms:if>
<cms:if k_error >
<font color='red'><cms:each k_error ><cms:show item /><br /></cms:each></font>
</cms:if>
<td>
<cms:input name='fullname' type='bound' class="form-control col-md-10 col-xs-12"/
</td>
<input type="submit" name="submit" value="Save" class="btn btn-primary"/>
</cms:form>
Ah, now i understand. I forgott about the ?= in the link. Im so truly glad for your help. THANKS ALOT

I think i must read the Documentation one more time so i realy understand everything.