Advertisement
krot

MODX aliasMap get resourceId

Sep 14th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.45 KB | None | 0 0
  1. <? $resourceId = $modx->aliasMap['404.html'];?>
  2.  
  3.  [aliasMap] => Array
  4.                         (
  5.                             [index.html] => 1
  6.                             [404.html] => 2
  7.                             [sitemap.xml] => 3
  8.                             [robots.txt] => 4
  9.                             [о-нас/] => 8
  10.                             [меню/] => 10
  11.                             [thank-you.html] => 17
  12.                             [rb/] => 19
  13.                             [о-нас/контакты.html] => 9
  14.                             [о-нас/test.html] => 18
  15.                             [меню/главная.html] => 11
  16.                             [меню/features.html] => 12
  17.                             [меню/about-us.html] => 13
  18.                             [меню/our-work.html] => 14
  19.                             [меню/services.html] => 15
  20.                             [меню/contact.html] => 16
  21.                             [rb/fully-responsive.html] => 20
  22.                             [rb/clean-design.html] => 21
  23.                         )
  24.  
  25.                     [resourceMap] => Array
  26.                         (
  27.                             [0] => Array
  28.                                 (
  29.                                     [0] => 1
  30.                                     [1] => 2
  31.                                     [2] => 3
  32.                                     [3] => 4
  33.                                     [4] => 8
  34.                                     [5] => 10
  35.                                     [6] => 17
  36.                                     [7] => 19
  37.                                 )
  38.  
  39.                             [8] => Array
  40.                                 (
  41.                                     [0] => 9
  42.                                     [1] => 18
  43.                                 )
  44.  
  45.                             [10] => Array
  46.                                 (
  47.                                     [0] => 11
  48.                                     [1] => 12
  49.                                     [2] => 13
  50.                                     [3] => 14
  51.                                     [4] => 15
  52.                                     [5] => 16
  53.                                 )
  54.  
  55.                             [19] => Array
  56.                                 (
  57.                                     [0] => 20
  58.                                     [1] => 21
  59.                                 )
  60.  
  61.                         )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement