Tiles/Technical Documentation: Difference between revisions

Directory -> Default
m (Directory -> Default)
(Directory -> Default)
Line 57: Line 57:
At a high level the data object looks like this:
At a high level the data object looks like this:


   { "LOCALE" : [ ARRAY OF DIRECTORY TILE OBJECTS ] }
   { "LOCALE" : [ ARRAY OF DEFAULT TILE OBJECTS ] }


You can have many locales in the Tiles dictionary object to support multiple languages.
You can have many locales in the Tiles dictionary object to support multiple languages.
Line 63: Line 63:
For example:
For example:


   { "en-US" : [ ARRAY OF US DIRECTORY TILES ], "en-CA" : [ ARRAY OF CA DIRECTORY TILES ] }
   { "en-US" : [ ARRAY OF US DEFAULT TILES ], "en-CA" : [ ARRAY OF CA DEFAULT TILES ] }


Each Directory Tile object requires a few attributes, most of which are self explanatory.
Each Default Tile object requires a few attributes, most of which are self explanatory.


     {
     {
Line 77: Line 77:
'''NOTE''': You need to URL escape all the text, in the bgColor you'll see the # is replaced with %23 and the spaces are replaced with %20 in the title.
'''NOTE''': You need to URL escape all the text, in the bgColor you'll see the # is replaced with %23 and the spaces are replaced with %20 in the title.


''Directory Tiles Object Attributes''
''Default Tiles Object Attributes''


* '''url''' is the URL you want the Tile to link to
* '''url''' is the URL you want the Tile to link to
Confirmed users
1,059

edits