Skip to content

Instantly share code, notes, and snippets.

@simoneloru
Last active December 28, 2015 21:49
Show Gist options
  • Save simoneloru/7566841 to your computer and use it in GitHub Desktop.
Save simoneloru/7566841 to your computer and use it in GitHub Desktop.
Content with all attributes
<contenttype typecode="CNT" typedescr="Generic Content" viewpage="**NULL**" listmodel="**NULL**" defaultmodel="**NULL**">
<attributes>
<attribute name="Attach" attributetype="Attach" />
<attribute name="Boolean" attributetype="Boolean" />
<attribute name="CheckBox" attributetype="CheckBox" />
<attribute name="Composite" attributetype="Composite">
<attributes>
<attribute name="Attach" attributetype="Attach" />
<attribute name="Boolean" attributetype="Boolean" />
<attribute name="CheckBox" attributetype="CheckBox" />
<attribute name="Date" attributetype="Date" />
<attribute name="Enumerator" attributetype="Enumerator" separator=","><![CDATA[1,2,3]]></attribute>
<attribute name="Hypertext" attributetype="Hypertext" />
<attribute name="Image" attributetype="Image" />
<attribute name="Link" attributetype="Link" />
<attribute name="Longtext" attributetype="Longtext" />
<attribute name="Monotext" attributetype="Monotext" />
<attribute name="Number" attributetype="Number" />
<attribute name="Text" attributetype="Text" />
<attribute name="ThreeState" attributetype="ThreeState" />
<attribute name="Timestamp" attributetype="Timestamp" description="Timestamp" />
</attributes>
</attribute>
<attribute name="Date" attributetype="Date" />
<attribute name="Enumerator" attributetype="Enumerator" separator=","><![CDATA[a,b,c]]></attribute>
<attribute name="Hypertext" attributetype="Hypertext">
<roles>
<role>jacms:title</role>
</roles>
</attribute>
<attribute name="Image" attributetype="Image" />
<attribute name="Link" attributetype="Link" />
<list name="ListBoolea" attributetype="List">
<nestedtype>
<attribute name="ListBoolea" attributetype="Boolean" />
</nestedtype>
</list>
<list name="ListCheck" attributetype="List">
<nestedtype>
<attribute name="ListCheck" attributetype="CheckBox" />
</nestedtype>
</list>
<list name="ListDate" attributetype="List">
<nestedtype>
<attribute name="ListDate" attributetype="Date" />
</nestedtype>
</list>
<list name="ListEnum" attributetype="List">
<nestedtype>
<attribute name="ListEnum" attributetype="Enumerator" separator=","><![CDATA[a,b,c]]></attribute>
</nestedtype>
</list>
<list name="ListMonot" attributetype="List">
<nestedtype>
<attribute name="ListMonot" attributetype="Monotext" />
</nestedtype>
</list>
<list name="ListNumber" attributetype="List">
<nestedtype>
<attribute name="ListNumber" attributetype="Number" />
</nestedtype>
</list>
<list name="List3" attributetype="List">
<nestedtype>
<attribute name="List3" attributetype="ThreeState" />
</nestedtype>
</list>
<attribute name="Longtext" attributetype="Longtext" />
<list name="MonoLAtta" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLAtta" attributetype="Attach" />
</nestedtype>
</list>
<list name="MonoLBool" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLBool" attributetype="Boolean" />
</nestedtype>
</list>
<list name="MonoLChec" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLChec" attributetype="CheckBox" />
</nestedtype>
</list>
<list name="MonoLCom" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLCom" attributetype="Composite">
<attributes>
<attribute name="Attach" attributetype="Attach" />
<attribute name="Boolean" attributetype="Boolean" />
<attribute name="CheckBox" attributetype="CheckBox" />
<attribute name="Date" attributetype="Date" />
<attribute name="Enumerator" attributetype="Enumerator" separator=","><![CDATA[a,b,c]]></attribute>
<attribute name="Hypertext" attributetype="Hypertext" />
<attribute name="Image" attributetype="Image" />
<attribute name="Link" attributetype="Link" />
<attribute name="Longtext" attributetype="Longtext" />
<attribute name="Monotext" attributetype="Monotext" />
<attribute name="Number" attributetype="Number" />
<attribute name="Text" attributetype="Text" />
<attribute name="ThreeState" attributetype="ThreeState" />
</attributes>
</attribute>
</nestedtype>
</list>
<list name="MonoLDate" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLDate" attributetype="Date" />
</nestedtype>
</list>
<list name="MonoLEnum" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLEnum" attributetype="Enumerator" separator=","><![CDATA[a,b,c]]></attribute>
</nestedtype>
</list>
<list name="MonoLHyper" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLHyper" attributetype="Hypertext" />
</nestedtype>
</list>
<list name="MonoLImage" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLImage" attributetype="Image" />
</nestedtype>
</list>
<list name="MonoLLink" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLLink" attributetype="Link" />
</nestedtype>
</list>
<list name="MonoLLong" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLLong" attributetype="Longtext" />
</nestedtype>
</list>
<list name="MonoLMonot" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLMonot" attributetype="Monotext" />
</nestedtype>
</list>
<list name="MonoLNumb" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLNumb" attributetype="Number" />
</nestedtype>
</list>
<list name="MonoLText" attributetype="Monolist">
<nestedtype>
<attribute name="MonoLText" attributetype="Text" />
</nestedtype>
</list>
<list name="MonoL3stat" attributetype="Monolist">
<nestedtype>
<attribute name="MonoL3stat" attributetype="ThreeState" />
</nestedtype>
</list>
<attribute name="Monotext" attributetype="Monotext" />
<attribute name="Number" attributetype="Number" />
<attribute name="Text" attributetype="Text" />
<attribute name="ThreeState" attributetype="ThreeState" />
<attribute name="Timestamp" attributetype="Timestamp" description="Timestamp" />
</attributes>
</contenttype>
@simoneloru
Copy link
Author

"$content": {

        "getId()": null,
        "getCategories()": null,
        "getContentLink()": null,
        "getContentOnPageLink(\"<PAGE_CODE>\")": null,
        "getCreated(\"<DATE_PATTERN>\")": null,
        "getLastModified(\"<DATE_PATTERN>\")": null,
        "getVersion()": null,
        "getLastEditor()": null,
        "isUserAllowed(\"<PERMISSION_NAME>\")": null,
        "getLangCode()": null,
        "Attach": {

            "text": null, 
            "attachPath": null, 
            "getResource(\"<LANG_CODE>\")": null, 
            "resource": null, 
            "getTextForLang(\"<LANG_CODE>\")": null, 
            "textMap[\"<LANG_CODE>\"]": null
        },
        "Boolean": {

            "value": null, 
            "booleanValue": null
        },
        "CheckBox": {

            "value": null, 
            "booleanValue": null
        },
        "Composite": {

            "get(\"<ATTRIBUTE_NAME>\")": null, 
            "size()": null
        },
        "Date": {

            "fullDate": null, 
            "longDate": null, 
            "mediumDate": null, 
            "shortDate": null, 
            "getFormattedDate(\"<DATE_PATTERN>\")": null
        },
        "Enumerator": {

            "text": null
        },
        "Hypertext": {

            "text": null, 
            "getTextForLang(\"<LANG_CODE>\")": null, 
            "textMap[\"<LANG_CODE>\"]": null, 
            "getTextBeforeImage(<PERCENT_VALUE>)": null, 
            "getTextByRange(<START_PERCENT_VALUE>,<END_PERCENT_VALUE>)": null, 
            "getTextAfterImage(<PERCENT_VALUE>)": null, 
            "getHead(<VALUE>)": null, 
            "getHeadEscaped(VALUE)": null
        },
        "Image": {

            "text": null, 
            "getImagePath(<SIZE_ID>)": null, 
            "getResource(\"<LANG_CODE>\")": null, 
            "resource": null, 
            "getTextForLang(\"<LANG_CODE>\")": null, 
            "textMap[\"<LANG_CODE>\"]": null
        },
        "Link": {

            "text": null, 
            "destination": null, 
            "getTextForLang(\"<LANG_CODE>\")": null, 
            "textMap[\"<LANG_CODE>\"]": null, 
            "symbolicLink": null
        },
        "ListBoolea": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "ListCheck": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "ListDate": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "ListEnum": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "ListMonot": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "ListNumber": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "List3": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "Longtext": {

            "text": null, 
            "getTextForLang(\"<LANG_CODE>\")": null, 
            "textMap[\"<LANG_CODE>\"]": null
        },
        "MonoLAtta": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLBool": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLChec": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLCom": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLDate": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLEnum": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLHyper": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLImage": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLLink": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLLong": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLMonot": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLNumb": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoLText": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "MonoL3stat": {

            "get(<INDEX>)": null, 
            "size()": null
        },
        "Monotext": {

            "text": null
        },
        "Number": {

            "number": null, 
            "value": null
        },
        "Text": {

            "text": null, 
            "getTextForLang(\"<LANG_CODE>\")": null, 
            "textMap[\"<LANG_CODE>\"]": null
        },
        "ThreeState": {

            "value": null, 
            "booleanValue": null
        },
        "Timestamp": {

            "JDOMElement": null, 
            "date": null, 
            "failedDateString": null, 
            "failedHourString": null, 
            "failedMinuteString": null, 
            "failedSecondString": null, 
            "fullDate": null, 
            "longDate": null, 
            "mediumDate": null, 
            "searchableOptionSupported": null, 
            "shortDate": null, 
            "status": null, 
            "value": null
        }
    },
    "$i18n": {
        "getLabel(\"<LABEL_CODE>\")": null 
    },
    "$info": {
        "getConfigParameter(\"<PARAM_NAME>\")": null, 
        "getCurrentPage()": null, 
        "getCurrentLang()": null, 
        "getCurrentShowlet()": null
    },
        "#foreach ($item in $<LIST>) $item #end": null,
        "#if (<TRUE>) <DO> #else <DOANOTHER> #end": null, 
        "#if (<TRUE>) <DO> #end": null,
        "#set ($<VAR> = <VALUE>)": null
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment