by
KK » Sun Sep 07, 2014 3:31 pm
Hi,
I had a look at the code and a couple of things stand out as problematic -
1. You have used
<cms:template title='Idea Submission 02' clonable='1' order='0' hidden='0' access_level='10'>
Placing that access level will make the template available to only super-admin
even on the frontend. So, anonymous users won't be able to submit ideas using this template.
2. You are using the same form for idea submission (a one-time event per idea resulting in the creation of a new cloned page) and also for voting on that idea (a multiple occurrence event adding data to existing idea pages). This, of course, won't work.
3. Finally, we cannot submit votes from the backend (unless you use custom admin-screens which are basically frontend templates).
An alternate solution would be to -
1. Remove the access restriction so that everybody can get to the template.
2. Divide the template into list-view and page-view.
3. Anonymous users always land on the list-view. Place a form in this view that submits ideas (i.e. creates new cloned-pages).
4. Since new pages get created with random non-guessable names (courtesy
_auto_title='1'), the page-views can only be accessed from the backend i.e. only by admins.
5. Place a form in the page-view for admins to cast votes on the ideas.
Hope this helps.