I have form with "Followers" relation type inside.
I have done with adding followers into related users, but it always replace the the current followers instead of adding it into the list.
Editable code:
My form code:
One more thing, if the current logged in user "Authenticate User" it says "Cheating" when submitting.
Need help.
Thank you.
I have done with adding followers into related users, but it always replace the the current followers instead of adding it into the list.
Editable code:
- Code: Select all
<cms:editable type='relation' name='followers' label='Following' title='Followers' masterpage='users/index.php' has='many'/>
My form code:
- Code: Select all
<cms:form
masterpage='users/index.php'
mode='edit'
enctype='multipart/form-data'
page_id=k_page_id
method='post'
anchor='0'
>
<cms:if k_success >
<cms:db_persist_form
followers=k_user_id
/>
</cms:if>
<cms:input class="sh-btn sh-btn-small" name="submit" type="submit" value="Follow" />
</cms:form>
One more thing, if the current logged in user "Authenticate User" it says "Cheating" when submitting.
Need help.
Thank you.