Jump to content

generate layouts on the fly?


wintergreen
 Share

This topic is 5745 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I know this is a bit of a vague question, but is it possible to have filemaker generate layouts based on scripts?

The reason I ask is because I want to create a table called "preferences", and have the ability to turn certain elements on or off.

On a related note, is it possible to have a layout reference/include another layout? The best way I can think to explain this, is that, with mediawiki for example, you can create "template" pages which can then be included as part of other pages. This would also be handy for having a boilerplate header/footer.

Link to comment
Share on other sites

AFAIK, the answer on both counts is "No."

To deal with multiple views of data, most answers I have seen rely on creating different layouts for different privilege sets. This is reasonable for simpler security environments, but obviously could get out of hand quickly with complex (or even moderately complex) systems. You can at least create a base layout, copy it, and modify it for the different needs.

As for boilerplate, I have tended to create templates for the main layouts in my apps, and then use those as starting points for the rest.

My own aesthetic is that most modules boil down to a single-line list view and a full record view; creating templates for these two layouts (complete with buttons that trigger generic scripts) speeds development immensely.

As an aside, if you're trying to create a web Content Management System, you might want to check out what's already written for PHP and MySQL/PostGreSQL; Drupal and e107 are two such packages.

David

Link to comment
Share on other sites

This topic is 5745 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.