10393 Posts in 2203 Topics by 1714 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1095 Views |
-
Problem with User Forms

27 May 2010 at 5:55am
Hello Everyone.
I was trying to use a product called Slickboard on my home page and it requires javascript. In setting this up my user forms no longer work in the admin. When I click on the user form page it shows up blank and cannot be edited.
Is there any way to fix the user forms?
tx
Wil
I have already removed all the references to the slickboard application form my template files.
-
Re: Problem with User Forms

28 May 2010 at 4:27pm
Hello?
I couldn't figure this out so I wiped out my SS install and redid it from scratch. I tested the user forms and they worked until I applied the template I built. I switched applications and I am now using the jquery lite plugin so I have the following javascript in my page.ss
<script type="text/javascript" src="mysite/javascript/jquery-1.3.2.js"></script>
<script type="text/javascript" src="mysite/javascript/jquery.cycle.lite.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#slideshow').cycle();
});
</script>Once I run the pages, the userforms in the admin section can't be edited. I only get a blank page. Even when I go back to the default blackcandy theme, the userforms still can't be edited in admin.
Does anybody know why this is?
tx
Wil
-
Re: Problem with User Forms

29 May 2010 at 1:55am
It is now solved - I just downloaded the lastest trunk version and rebuilt the database and it now seems to work.
Wil
-
Re: Problem with User Forms

29 May 2010 at 3:22pm
You should also in future use the jquery bundled with SilverStripe in sapphire/thirdparty/jquery/jquery.js since alot of modules (forum, userforms at least) will include jquery on the front end (the one from sapphire) if your code uses the one in sapphire like below it will prevent loading 2 jquerys to the same page (which is bad for performance)
Use this line in your Page.ss to include the jquery from sapphire and prevent duplication. (Uses jquery 1.4.2)
<% require javascript(sapphire/thirdparty/jquery/jquery.js) %>
| 1095 Views | ||
|
Page:
1
|
Go to Top |


