Options

Bug: API doesn't set album styles from the template

marekmarek Registered Users Posts: 4 Beginner grinner
My template is configured with
Theme: default
Gallery style: Thumbnails
Pagination: Show thumbnails in a single page
Auto sort: By date taken (if available)

When I create a new album using the template, the pagination and auto sort fields don't get set and remain with default values.

This creates the album but doesn't set the style properly:
https://api.smugmug.com/services/api/rest/1.2.2/?method=smugmug.albums.create&Title=TestAblumServices&CategoryID=1186276&AlbumTemplateID=298622&SessionID=xxxxxxxxxxxxx

This request I pulled out from the source code of Digikam's kipi plugins, and it works nicely:
https://api.smugmug.com/hack/rest/1.2.0/?method=smugmug.albums.create&Title=TestAblumHack&CategoryID=1186276&AlbumTemplateID=298622&SessionID=xxxxxxxxxxxxxxxxxxxx

What is https://api.smugmug.com/hack/ ? An old API address? Or a development version of the API? Anyway, it looks like this is broken in 1.2.2. I couldn't try 1.3.0, since it doesn't accept the templates at all, as described in my other post.

Comments

  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited October 4, 2012
    G'day Marek,

    I just created this album in your account using API 1.2.2 and that AlbumTemplate without a problem.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    marekmarek Registered Users Posts: 4 Beginner grinner
    edited October 5, 2012
    Hi devbobo,

    Thanks for looking into this.

    The album you created shows the following settings:
    Pagination: Viewer Controlled
    Auto sort: None

    If I reapply the template from the web interface, I get the correct values:
    Pagination: Show thumbnails in a single page
    Auto sort: By date taken (if available)

    Thanks
  • Options
    marekmarek Registered Users Posts: 4 Beginner grinner
    edited March 11, 2013
    This bug is still not fixed.

    I created a template with the following settings:
    Pagination: Show thumbnails in a single page
    Auto sort: By filenames

    I create an album through the API and apply this template, which results in:
    Pagination: Viewer Controlled
    Auto sort: None

    I then apply the same template to the same album, but through the web interface:
    Pagination: Show thumbnails in a single page
    Auto sort: By filenames
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited March 19, 2013
    marek wrote: »
    This bug is still not fixed.

    I created a template with the following settings:
    Pagination: Show thumbnails in a single page
    Auto sort: By filenames

    I create an album through the API and apply this template, which results in:
    Pagination: Viewer Controlled
    Auto sort: None

    I then apply the same template to the same album, but through the web interface:
    Pagination: Show thumbnails in a single page
    Auto sort: By filenames

    Do you have the details of the template that you are applying ? AlbumTemplateID ? So I can take a look ?
    David Parry
    SmugMug API Developer
    My Photos
Sign In or Register to comment.