Skip to content

Instantly share code, notes, and snippets.

@rsanchez
Created July 17, 2015 14:48
Show Gist options
  • Select an option

  • Save rsanchez/880ef5080368e81b28cb to your computer and use it in GitHub Desktop.

Select an option

Save rsanchez/880ef5080368e81b28cb to your computer and use it in GitHub Desktop.
site_pages
<?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',
),
),
)
)
);
@rsanchez
Copy link
Author

The array keys of the 'uris' and 'templates' arrays are Entry IDs. The values of the 'templates' array are Template IDs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment