Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.4. API Reference

  1. The next functions are defined at file class.tx_glpagescat_div.php. To include the file you should use the next code:

...
if (t3lib_extMgm::isLoaded('gl_pages_cat')) {
   require_once(t3lib_extMgm::extPath('gl_pages_cat').'class.tx_glpagescat_div.php');
}

getNewsCategorized

  1. Returns news with the some category that match with the categories of the current page.

Parameter:

Data type:

Description:

Default:

$recursive

boolean

If it's true it could match with any page category or subcaterories of these categories

false

return

array

Array with news uid

getPageCategories

  1. Returns the categories of the current page.

Parameter:

Data type:

Description:

Default:

$recursive

boolean

If it's true it returns the page categories and subcaterories of these categories

false

return

string

Comma-separated list of categories uid

getSubCategories

  1. Returns subcateroires of a category given.

Parameter:

Data type:

Description:

Default:

$categoryUid

integer

Category identifier

return

array

Array with categories uid