Skip to content

Instantly share code, notes, and snippets.

@LuisReyes98
Created May 16, 2019 23:03
Show Gist options
  • Save LuisReyes98/8fddfeb79464405a16379b1df0af0b56 to your computer and use it in GitHub Desktop.
Save LuisReyes98/8fddfeb79464405a16379b1df0af0b56 to your computer and use it in GitHub Desktop.
Lighttouch file reader for the popup model
-- Method to prepare a popup for the template standard
-- @params
-- popup_id : uuid : the id of the popup
function loadpopup(popup_id)
local popup = contentdb.read_document(popup_id)
local popup_button = contentdb.read_document(popup.popup_button)
popup.id = popup_id
popup.button = popup_button
return popup
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment