Created
July 17, 2015 14:48
-
-
Save rsanchez/880ef5080368e81b28cb to your computer and use it in GitHub Desktop.
site_pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$site_id = ee()->config->item('site_id'); | |
$site_pages = base64_encode( | |
serialize( | |
array( | |
$site_id => array( | |
'url' => 'http://yoursite.com//', | |
'uris' => array( | |
68 => '//', | |
7 => '/page/', | |
16 => '/page/child-page/', | |
17 => '/page/child-page/grandchild-page/', | |
18 => '/page/child-page/grandchild-page/greatgrandchild-page/', | |
19 => '/page/sibling-page/', | |
20 => '/uncle/', | |
21 => '/uncle/cousin-page/', | |
), | |
'templates' => array( | |
68 => '115', | |
7 => '115', | |
16 => '115', | |
17 => '115', | |
18 => '115', | |
19 => '115', | |
20 => '115', | |
21 => '115', | |
), | |
), | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The array keys of the 'uris' and 'templates' arrays are Entry IDs. The values of the 'templates' array are Template IDs.