Skip to content

Instantly share code, notes, and snippets.

@quimo
Created July 25, 2016 13:26
Show Gist options
  • Select an option

  • Save quimo/5cff679cc69804d98a69da88ed682421 to your computer and use it in GitHub Desktop.

Select an option

Save quimo/5cff679cc69804d98a69da88ed682421 to your computer and use it in GitHub Desktop.
MODX 1.x | Mostra le proprietà di una pagina
<?php
/*
contentType
pagetitle
longtitle
description
alias
link_attributes
published
pub_date
unpub_date
parent
isfolder
introtext
content
richtext
template
menuindex
searchable
cacheable
createdby
createdon
editedby
editedon
deleted
deletedon
deletedby
publishedon
publishedby
menutitle
donthit
haskeywords
hasmetatags
privateweb
privatemgr
content_dispo
hidemenu
*/
$id = $modx->documentObject['id'];
$data = $modx->getDocumentObject('id',$id);
foreach ($data as $key => $value) {
echo "$key<br />";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment