Data Array : Articles

Posted on Tue, 10 May 2011


Here is the data structure of the Articles array of PornCMS included in the Articles and Info template pages. The $id key variable variable is received from the front-end page URL.

[id] Unique ID for this record.

CODE: SELECT ALL
$Articles[id][$id]


[section] Section ID of this content from Sections Array. See below for Sections Array details.
CODE: SELECT ALL
$Articles[section][$id]


[title] Title of content (rawurlencoded).
CODE: SELECT ALL
$Articles[title][$id]


[subtitle] Subtitle of content (rawurlencoded).
CODE: SELECT ALL
$Articles[subtitle][$id]


[author] Author of content (rawurlencoded).
CODE: SELECT ALL
$Articles[author][$id]


[brief] Short description of content (rawurlencoded).
CODE: SELECT ALL
$Articles[brief][$id]


[featured] Flag for marking as featured content (y|n)
CODE: SELECT ALL
$Articles[featured][$id]


[meta] Meta description of the content (rawurlencoded).
CODE: SELECT ALL
$Articles[meta][$id]


[body] Body text of the content (rawurlencoded).
CODE: SELECT ALL
$Articles[body][$id]


[tags] Space delimited list of tags for this content.
CODE: SELECT ALL
$Articles[tags][$id]


[status] Active status of the content. (y|n)
CODE: SELECT ALL
$Articles[status][$id]


[showdate] Publish date of content in the following format: 2008-01-01 00:55:00
CODE: SELECT ALL
$Articles[showdate][$id]


Articles are sorted into Sections. Here is the data structure of the Article Sections array of PornCMS. The $section key variable is received from the front-end page URL.

[id] Unique ID for this record.
CODE: SELECT ALL
$mySections[id][$section]


[title] Title of section (rawurlencoded).
CODE: SELECT ALL
$mySections[title][$section]


[description] Brief description of this section (rawurlencoded).
CODE: SELECT ALL
$mySections[description][$section]

Tag cloud

cms tutorials design
Right column custom page. You can add anything you want here or disable it. This page displays on 2-column and 3-column Bootstrap layouts.