Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi, I'm trying to make a form:
In the frontend it is a regular submit textarea for anonymous users.
In the backend, after visitors submit it I'd like to let the admin vote it.

I'm using: the application form as a base, and the votes module add-on.
It's is not using the members module.

Attached is my non working code so far.

Thanks!

Attachments

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.
Thanks for the pointers KK (y)
3 posts Page 1 of 1
cron