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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Abstracting Silverstripe's front end


Go to End


2 Posts   3235 Views

Avatar
julian

Community Member, 17 Posts

11 March 2007 at 11:35pm

Edited: 11/03/2007 11:35pm

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

Administrator, 690 Posts

12 March 2007 at 4:16pm

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)