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.

Archive

Our old forums are still available as a read-only archive.

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

Abstracting Silverstripe's front end


Reply

2 Posts   2335 Views

Avatar
julian

11 March 2007 at 11:35pm (Last edited: 11 March 2007 11:35pm), Community Member, 17 Posts

Hi all,

I'm looking to do an OpenLaszlo implementation with a Silverstripe back end.

Openlaszlo is essentially a framework that provides a Flash or DHTML front end to your web site. For this to work with any system, it has to be very pluggable.

One concern I have is the amount of HTML in the core model. E.g. SiteTree has lots of <li> tags etc.

Can it be done easily? I'm guessing it shouldn't be super hard as it's been necessarily reasonably abstracted for the Ajax stuff.

comments / perspectives?

thanks, J

Avatar
Sam

12 March 2007 at 4:16pm Administrator, 679 Posts

I don't know much about how OpenLaszlo works, but presumably you're wanting to use SilverStripe to generate its XML configuration files?

There would be 2 ways of doing this:

1) Make your own templates that return XML instead of HTML. You could make them the default templates, or you could call the templates something Like Page_xml.ss or MyType_xml.ss, in which case, the XML format for the page would be accessible as http://www.mysite.com/(pagename)/xml

2) Make a subclass of controller called OpenLaszlo, and then different methods can be called on this by visiting http://www.mysite.com/OpenLaszlo/(method-name)