17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2132 Views |
-
FIXED: Lightbox popup for front end ComplexTableField - possible?

27 September 2008 at 11:20pm Last edited: 2 October 2008 2:32am
Hi Ladies / Gents,
I have a front end ComplexTableField as per the example on http://doc.silverstripe.com/doku.php?id=complextablefield, but the show and edit buttons simply fill out the current browser tab or open a new one rather than use a LightBox.I've noticed a few people asking questions about getting LightBox working, but have seen no answers relevant to ComplexTableField.
Any ideas how I can pop up a lightBox in the front end?
Ta,
Z. -
Re: FIXED: Lightbox popup for front end ComplexTableField - possible?

30 September 2008 at 9:23pm Last edited: 30 September 2008 9:29pm
Ah, tricky one eh?
Can anyone point me in the right direction? (Using SS 2.2.2)
Thanks.
-
Re: FIXED: Lightbox popup for front end ComplexTableField - possible?

2 October 2008 at 2:27am
Turns out that there was a dependancy problem.
In SS 2.2.2:
sapphire/forms/ComplexTableField.php has the line:Requirements::javascript("sapphire/javascript/ComplexTableField.js");
This depends on the prototype extension, but it has not been made a requirement for ComplexTableField (it has for TableListField)
So, I just added the following 3 lines before the Requirements line above:
Requirements::javascript('jsparty/prototype.js');
Requirements::javascript('jsparty/behaviour.js');
Requirements::javascript('jsparty/prototype_improvements.js');Now it works
-
Re: FIXED: Lightbox popup for front end ComplexTableField - possible?

2 October 2008 at 2:32am
P.S.
How do I enter this as a bug in the ticket system? I've registered, but apparently I don't have the privileges.
| 2132 Views | ||
|
Page:
1
|
Go to Top |

