Results 1 to 2 of 2
Oct 20, 2008, 19:47 #1
Examples of a default setting with exceptions?
I need to create an interface with many regions & partners to choose from. If there are 100 regions and 100 partners, then any given region or partner will need to be changed 100 times to be comprehensive. For example, if a partner named CompanyX needs to have its settings revised, those changes will need to occur 100 times -- once for each region.
The problem is that users may not wish to go through 100 regions to set up a partner. So what I need to do is set up a default. CompanyX would have one default setting that worked for all regions, and then they could specify any region that was an exception to the default.
OK? So here's the question. Can anyone point me to an interface that currently uses the default/exceptions system? I need a couple examples of what such a GUI might look like.
Oct 29, 2008, 13:50 #2
- Join Date
- Jul 2007
- 0 Post(s)
- 0 Thread(s)
I am not 100% sure this will answer your question, but from my perspective, you would be best served through a template system, and I don't mean web templates from Template Monster. What I mean is you can have CompanyX enter their revised settings, and that data is stored once as a file. Then on each of the 100 regions, the data is called up from that single source.
For example, in PHP I create an article page based on the author's last name, such as /home/user/public_html/articles/kosh.php. Then on my main page /home/user/public_html/index.php I make a call to bring up the article I want by using the author's last name as a PHP variable. I passed the variable in the URL. So on my index.php page (or any other page I wanted to insert this data) the PHP code looks like this:
# GRAB THE VARIABLES FROM THE URL
$name = $_GET['name'];
if ($name == 0)
$name = default;
blah, blah, blah
<?php include("/home/user/public_html/articles/$name.php"); ?>