Layout Settings Simple vs Advanced -- Need explaination

nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2005-06-05 20:25

What is the difference between Simple and Advanced settings? When would someone use one over the other?

GalleryLayout.class states

    /**
     * Return whether the layout uses simple or advanced settings.
     * To support simple settings the layout needs to implement getSettings and validateSettings.
     * To support advanced settings the layout must implement loadSettingsTemplate and
     * handleSettingsRequest.
     *
     * @return boolean true for advanced settings, false for simple
     */
    function isAdvancedSettings() {
	return false;  /* Default to simple */
    }

I see that the Tile layout uses the Advance method and needs to call an external template. The Classic layout extends the Simple method by editing the getSettings, validateSettings and loadAlbumTemplate functions to add it's settings.

I'm just confused over which situations you'd use one over the other.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2005-06-07 02:37

bump

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sat, 2005-06-11 18:00

Is this the right forum to ask this question or should it be in Development, or am I just impatient ;) ?

 
lvthunder

Joined: 2003-09-12
Posts: 804
Posted: Sun, 2005-06-12 00:51

This looks to be the right place to ask, but I have no idea how to answer the question.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Sun, 2005-06-12 02:28

The only thing I can think of is if you want to do some combination of the following:

-- Custom layout settings page, either at the Site Admin level or Album level

-- Have certain settings available at the Site Admin level and additional or different ones availble at the Album level.

-- Have no options available at the Site Admin level, only available at each individual Album level. Just like the Tile layout.

If I've hit it on the nose can one of the Dev's speak up ;) If there are other reasons it would be nice to know as it would be useful for creating new layouts.