Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
returnPageField
#1
I want to read the parent of a slug in a plugin, if possible without reading the slug xml file.

- In the frontend I cannot use returnPageField($slug,'parent') before index-pretemplate (it's still not defined)

- In the backend (the plugin page) the function is available but doesn't work - I get these errors:
Code:
Notice: Undefined index: my-slug in [...]\admin\inc\caching_functions.php on line 114

Warning: array_key_exists() expects parameter 2 to be array, null given in [...]\admin\inc\caching_functions.php on line 114
(I suppose it's because $pagesArray has not been populated.)

Any other recommended way to do this?
Reply


Messages In This Thread
returnPageField - by Carlos - 2013-05-07, 02:05:46
RE: returnPageField - by shawn_a - 2013-05-07, 02:16:56
RE: returnPageField - by Carlos - 2013-05-07, 05:49:06
RE: returnPageField - by shawn_a - 2013-05-07, 07:28:51
RE: returnPageField - by Carlos - 2013-05-08, 04:37:38
RE: returnPageField - by shawn_a - 2013-05-08, 05:31:39
RE: returnPageField - by Carlos - 2013-05-08, 05:37:19
RE: returnPageField - by shawn_a - 2013-05-08, 06:56:21
RE: returnPageField - by Carlos - 2013-05-09, 00:37:10



Users browsing this thread: 1 Guest(s)