Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[Solved] Haven't changed anything after installing userform module


Go to End
Reply

11 Posts   2334 Views

Avatar
Mitt

19 January 2011 at 11:28pm Community Member, 7 Posts

Hi everyone,
I installed user form module and , then rebuild my database.
But I haven't see any changes when creating page in my administration page.
What happened to me?

Could somebody fix my problem?
Thanks ...

Avatar
Mitt

20 January 2011 at 6:02pm Community Member, 7 Posts

Can't help anybody , please?

Avatar
Willr

20 January 2011 at 8:41pm Forum Moderator, 5511 Posts

So you don't see the new 'User Defined Form' option in the 'Create Page' dropdown in your sitetree?

Things to check
- Check the folder is named 'userforms' not 'userforms-r23'
- Reload the admin with a ?flush=1.
- Ensure userforms folder is at the root level of your SilverStripe install and is not nested inside mysite / sapphire.

Avatar
Mitt

21 January 2011 at 7:25pm Community Member, 7 Posts

@Willr => Thanks for your reply.

Yes, I don't see the new 'User Defined Form' option in the 'Create Page' dropdown in my sitetree.
And the three things you said are already done(attached screenshots). But in vain, brother.

How can I do for that?

Attached Files
Avatar
Willr

22 January 2011 at 1:01pm Forum Moderator, 5511 Posts

Strange! can you check the actual page type exists? should be in userforms/code/UserDefinedForm.php.

Does your database have any UserDefinedForm related tables (EditableFormField, SubmittedForm...)?

Avatar
Mitt

22 January 2011 at 7:32pm Community Member, 7 Posts

Ya ....
It's ok with userforms/code/UserDefinedForm.php.
And I didn't create any tables in my database yet , so I think my database won't have any UserDefinedForm related tables.
I reinstall that module , rebuild database but it still haven't appear in my admin page.
(Most of silverstripe tutorials aren't complete without userforms module , :( so I can't keep studying tutorials. )

Is there any possible facts that I have to check?

Thanks again...

Avatar
Willr

23 January 2011 at 1:03pm Forum Moderator, 5511 Posts

And I didn't create any tables in my database yet , so I think my database won't have any UserDefinedForm

When you do a /dev/build it should create the tables for you. If it is not creating any database tables even after dev/build then for some reason it is not reading that file. Check there is a _config.php file in the userforms/ folder and perhaps check permissions?

Avatar
Mitt

23 January 2011 at 5:01pm (Last edited: 23 January 2011 5:03pm), Community Member, 7 Posts

Ya .. you are right,brother.
It happens cause of permission.(Thanks for your help :) )

Now, I see UserForm Page type in admin page but I create that kind of page type ,the error shows "The CMS requires that you have JavaScript enabled.".(I searched "how to enable Javascript" , but I didn't see any page writing about that.)
So could you please tell me how to enable Javascript?

In _config.php,
"
<?php

LeftAndMain::require_javascript('userforms/javascript/FieldEditor.js');
LeftAndMain::require_css('userforms/css/FieldEditor.css');

?>
"

But there is just only one .js file(userforms/javascript/UserForm.js) in my folder.For CSS, it's ok.
Is it default?

................

Go to Top