Jump to content

Open site and display specific page


pconkie

Recommended Posts

//i've got this widget prefrence from the docs. 

internal_url: {
  type: "pagepicker",
    label: "Link to a frog page",
      defaultValue: JSON.stringify({
        page_uuid: '',
        site_uuid: ''
      })
},
  
  
//i'm trying to open the site and sepecfic page selected
//but there is no example in the docs...

//this opens the site, but not to the correct page...
  
Frog.Model.api('sites.getByUuid', {
    uuid: internal_url.site_uuid
  }).done(function(resp) {
    FrogOS.openSite({
      site: resp.data.link,
      page_uuid: internal_url.page_uuid
    });
});

What do I need to change to get the correct page to show when the site is opened?

Edited by pconkie
Link to comment
Share on other sites

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
×
×
  • Create New...