Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

backend cms fixes

  • Loading branch information...
commit 5606836088f850708144daa9414ef5265e2423f9 1 parent 37a194f
@quincykwende quincykwende authored
View
2  classes/cms/associator.php
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
-abstract class Cms_Associator extends Lattice_Cms_Associator { }
+class Cms_Associator extends Lattice_Cms_Associator { }
View
4 classes/controller/list.php
@@ -110,7 +110,7 @@ public function action_get_list($list_object_id_or_parent_id, $family = NULL)
foreach ($list_members as $object)
{
- $html_chunks = latticecms::buildUIHtml_chunks_for_object($object);
+ $html_chunks = Cms_Core::buildUIHtml_chunks_for_object($object);
$custom_item_view = 'lattice/object_types/' . $object->objecttype->objecttypename;
$item_view = NULL;
@@ -203,7 +203,7 @@ public function action_add_object($list_object_id, $object_type_id=NULL)
// $item->email = NULL;
/*End cludge*/
- $html_chunks = latticecms::buildUIHtml_chunks_for_object($object);
+ $html_chunks = Cms_Core::buildUIHtml_chunks_for_object($object);
$custom_item_view = 'lattice/object_types/' . $object->objecttype->objecttypename;
$item_view = NULL;
View
4 classes/lattice/cms/core.php
@@ -117,7 +117,7 @@ public static function buildUIHtml_chunks($elements, $object = NULL)
break;
case 'associator':
- $associator = new Associator($object->id, $element['lattice'],$element['filters']);
+ $associator = new Cms_Associator($object->id, $element['lattice'],$element['filters']);
$associator->set_label($element['label']);
$associator->set_pool_label($element['pool_label']);
$associator->set_page_length(Kohana::config('cms.associator_page_length'));
@@ -265,7 +265,7 @@ public static function convert_xml_element_to_array($object, $element)
case 'associator':
// need to load filters here
- $entry['filters'] = Associator::get_filters_from_dom_node($element);
+ $entry['filters'] = Cms_Associator::get_filters_from_dom_node($element);
$entry['pool_label'] = $element->getAttribute('pool_label');
$entry['associator_type'] = $element->getAttribute('associator_type');
$entry['page_length'] = Kohana::config('cms.associator_page_length');;
View
2  classes/model/listcontainer.php
@@ -10,7 +10,7 @@
*
* @author deepwinter1
*/
-class Model_List_container extends Model_Object {
+class Model_listcontainer extends Model_Object {
protected $_has_one = array(
'objecttype' => array('foreign_key'=>'objecttype_id')
View
34 lattice/clusters.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE configuration SYSTEM "clusters.dtd">
+
+<configuration>
+ <clusters>
+<!--
+ page meta bits need to expand frontend side to offer more than just opengraph stuff maybe foaf and rdf
+-->
+ <objectType name="pagemeta">
+ <elements>
+ <text name="slug" label="Page Slug" />
+ <text name="windowTitle" label="Browser Window Title" />
+ <text name="description" label="Meta Description" />
+ <text name="socialDescription" label="Share Description" />
+ <text name="keywords" label="Page Keywords" />
+ <image name="img" label="Page Thumb">
+ <resize name="uithumb" width="90" height="90" forceDimension="height" />
+ </image>
+ </elements>
+ </objectType>
+<!-- link cluster -->
+ <objectType name="link">
+ <elements>
+ <text name="label" label="Label" isMultiline="false" />
+ <text name="url" label="URL" isMultiline="false" />
+ <checkbox name="external" label="external" />
+ </elements>
+ </objectType>
+
+<!-- @Todo, create an image cluster so that it's not necessary to define it via the ojbecttype, although that gives you more control over the markup, still some defaults are nice -->
+ </clusters>
+
+</configuration>
+
View
17 lattice/cms_modules.dtd
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ LatticeCMS Frontend Data File DTD
+ Revision: 0.1
+ Date: 2010/09/30
+-->
+
+<!ELEMENT configuration (module*) >
+
+<!ELEMENT module EMPTY >
+<!ATTLIST module
+ controller CDATA #REQUIRED
+ parent CDATA "Lattice_NOTHING"
+ label CDATA #REQUIRED
+>
+
View
8 lattice/cms_modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE configuration SYSTEM "cms_modules.dtd">
+
+<configuration>
+
+ <module controller="usermanagement" label="Add &amp; modify users" />
+
+</configuration>
View
44 lattice/data.dtd
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ LatticeCMS Data Configuration File DTD
+ Revision: 0.1
+ Date: 2010/09/18
+-->
+
+<!ELEMENT data (nodes,relationships) >
+
+<!ELEMENT nodes (item*) >
+
+<!ELEMENT item (item|field|list|object)* >
+<!ATTLIST item
+ objectTypeName CDATA #REQUIRED
+>
+
+<!ELEMENT field (#PCDATA|field)* >
+<!ATTLIST field
+ name CDATA #REQUIRED
+>
+
+<!ELEMENT list (item*) >
+<!ATTLIST list
+ family CDATA #REQUIRED
+>
+
+<!ELEMENT object (field*) >
+<!ATTLIST object
+ name CDATA #REQUIRED
+>
+
+<!ELEMENT relationships (lattice*) >
+
+<!ELEMENT lattice (relationship*)>
+<!ATTLIST lattice
+ name CDATA #REQUIRED
+>
+
+<!ELEMENT relationship EMPTY >
+<!ATTLIST relationship
+ parent CDATA #REQUIRED
+ child CDATA #REQUIRED
+>
View
109 lattice/data.xml
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE data SYSTEM "data.dtd">
+<data>
+ <nodes>
+
+ <item objectTypeName="tagsObjectType">
+ <field name="title">Tags</field>
+ </item>
+
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 1</field>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 2</field>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 3 A</field>
+ </item>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 3 B</field>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 4 A</field>
+ </item>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 4 B</field>
+ </item>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 4 C</field>
+ </item>
+ </item>
+ <item objectTypeName="basicCategory">
+ <field name="title">Category 3 C</field>
+ </item>
+ </item>
+ </item>
+
+ <item objectTypeName="singleIPE">
+ <field name="title">Single IPE</field>
+ <item objectTypeName="multilineIPE">
+ <field name="title">Multiline as Component</field>
+ </item>
+ </item>
+
+ <item objectTypeName="multilineIPE">
+ <field name="title">Multiline IPE</field>
+ </item>
+
+ <item objectTypeName="singleRadioGroup">
+ <field name="title">Single Radio Group</field>
+ </item>
+
+ <item objectTypeName="singleCheckbox">
+ <field name="title">Single checkbox</field>
+ </item>
+
+ <item objectTypeName="singleDate">
+ <field name="title">Single Date</field>
+ </item>
+
+ <item objectTypeName="singleTime">
+ <field name="title">Single Time</field>
+ </item>
+
+ <item objectTypeName="singleFile">
+ <field name="title">Single File</field>
+ <field name="file">lattice/latticetests/testdata/ctoolsAllCases.csv</field>
+ </item>
+
+ <item objectTypeName="singleImage">
+ <field name="title">Single Image</field>
+ <field name="file">lattice/latticetests/testdata/29305_390907843268_707068268_4114906_7182725_n.jpg</field>
+ <item objectTypeName="singleImage">
+ <field name="title">Image Build Test</field>
+ <field name="file">lattice/latticetests/testdata/29305_390907843268_707068268_4114906_7182725_n.jpg</field>
+ </item>
+ </item>
+
+ <item objectTypeName="simpleListModule">
+ <field name="title">Simple List Module</field>
+ <list family="simplelist">
+ <item objectTypeName="simpleListModuleItem">
+ <field name="title">THIS IS THE TITLE</field>
+ </item>
+ </list>
+ </item>
+ <item objectTypeName="complexListModule">
+ <field name="title">Complex List Module</field>
+ </item>
+
+ <item objectTypeName="imageListModule">
+ <field name="title">Image List</field>
+ </item>
+
+ <item objectTypeName="fileListModule">
+ <field name="title">File List</field>
+ </item>
+
+ <item objectTypeName="singleAssociator">
+ <field name="title">Associator</field>
+ </item>
+ <item objectTypeName="linkTest">
+ <field name="title">Link Test</field>
+ <object name="theLink">
+ <field name="url">lasdf</field>
+ <field name="label">nas as s</field>
+ </object>
+ </item>
+</nodes>
+<relationships></relationships>
+
+</data>
View
9 lattice/dataTemplate.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE data SYSTEM "data.dtd">
+<data>
+
+ <item objectTypeName="objectTypeName">
+ <field name="name">Label</field>
+ </item>
+
+</data>
View
34 lattice/frontend.dtd
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ LatticeCMS Frontend Data File DTD
+ Revision: 0.1
+ Date: 2010/09/30
+-->
+
+<!ELEMENT configuration (view*) >
+
+<!ELEMENT view (includeData|subView)* >
+<!ATTLIST view
+ name CDATA #REQUIRED
+ loadPage (true|false) "true"
+>
+
+<!ELEMENT includeData ANY >
+<!ATTLIST includeData
+ from CDATA "parent"
+ label CDATA #REQUIRED
+ objectTypeFilter CDATA "all"
+ where CDATA #IMPLIED
+ tagged CDATA #IMPLIED
+ slug CDATA #IMPLIED
+ sortBy CDATA #IMPLIED
+ sortDirection CDATA #IMPLIED
+>
+
+<!ELEMENT subView EMPTY >
+<!ATTLIST subView
+ view CDATA #IMPLIED
+ slug CDATA #IMPLIED
+ label CDATA #REQUIRED
+>
View
13 lattice/frontend.xml.example
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE configuration SYSTEM "frontend.dtd">
+
+<configuration>
+ <view name="singleIPE">
+ <includeData from="parent" label="something"/>
+ </view>
+
+ <view name="whatever">
+ <includeData from="single-ipe" label="something"/>
+ </view>
+</configuration>
+
View
5 lattice/frontendmenu.xml
@@ -0,0 +1,5 @@
+<menu>
+ <books /> <!-- the idea i had was for these to map to the 'names' in the frontend.xml, or be specific slugs -->
+ <contact /> <!-- each item could also have the frontend sub-items in it -->
+ <wheretofind /> <!-- somehow this will generate the default code for the menu -->
+</menu>
View
187 lattice/objects.dtd
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ LatticeCMS Backend Configuration File DTD
+ Revision: 0.1
+ Date: 2010/08/26
+-->
+
+<!ENTITY % uiattrs
+ "name CDATA #REQUIRED
+ label CDATA #IMPLIED
+ className CDATA #IMPLIED
+ default CDATA #IMPLIED"
+>
+
+<!ELEMENT configuration (objectTypes) >
+
+<!ELEMENT objectTypes (objectType*) >
+
+<!ELEMENT objectType ( elements?,addableObject*,components* ) >
+<!ATTLIST objectType
+ name CDATA #REQUIRED
+ nodeType CDATA "object"
+ contentType CDATA "document"
+ allowDelete (true|false) "true"
+ allowTogglePublish (true|false) "true"
+ allowChildSort (true|false) "true"
+ sortDirection (ASC|DESC) "ASC"
+ allowTitleEdit CDATA "true"
+ pageLength CDATA "18"
+ initialAccessRoles CDATA #IMPLIED
+>
+
+<!ELEMENT elements (text|list|image|file|radioGroup|multiSelect|date|time|checkbox|time|associator|pagemeta|link|tags|pulldown)* >
+
+<!ELEMENT components (component*) >
+
+<!ELEMENT addableObject EMPTY >
+<!ATTLIST addableObject
+ objectTypeName CDATA #REQUIRED
+ addText CDATA #IMPLIED
+>
+
+<!ELEMENT component ANY>
+<!ATTLIST component
+ objectTypeName CDATA #REQUIRED
+ label CDATA #REQUIRED
+>
+
+<!ELEMENT list (addableObject*) >
+<!ATTLIST list
+ name CDATA #REQUIRED
+ label CDATA #REQUIRED
+ display (inline|component) "inline"
+ allowChildSort (true|false) "true"
+ sortDirection (ASC|DESC) "ASC"
+ allowTogglePublish (true|false) "true"
+ contentType CDATA "document"
+>
+<!-- last two attributes currently not supported -->
+
+<!ELEMENT pulldown (option)* >
+<!ATTLIST pulldown
+ %uiattrs;
+>
+
+
+ <!ELEMENT option EMPTY >
+ <!ATTLIST option
+ label CDATA #REQUIRED
+ value CDATA #REQUIRED
+ >
+
+
+<!ELEMENT pagemeta EMPTY>
+<!ATTLIST pagemeta
+ %uiattrs;
+>
+
+<!ELEMENT associator (filter*)>
+<!ATTLIST associator
+ label CDATA #IMPLIED
+ poolLabel CDATA #IMPLIED
+ name CDATA #REQUIRED
+ lattice CDATA #REQUIRED
+ associatorType CDATA #IMPLIED
+ pageLength CDATA "18"
+ metaObjectTypeName CDATA #IMPLIED
+>
+
+<!ELEMENT filter EMPTY >
+<!ATTLIST filter
+ from CDATA #IMPLIED
+ lattice CDATA #IMPLIED
+ objectTypeName CDATA #IMPLIED
+ tagged CDATA #IMPLIED
+ function CDATA #IMPLIED
+>
+
+<!ELEMENT text EMPTY >
+<!ATTLIST text
+ %uiattrs;
+ tag CDATA "p"
+ isMultiline (true|false) "true"
+ maxlength CDATA #IMPLIED
+>
+
+<!ELEMENT image (resize|ext)* >
+<!ATTLIST image
+ %uiattrs;
+ maxLength CDATA #IMPLIED
+>
+
+<!ELEMENT file (ext)* >
+<!ATTLIST file
+ %uiattrs;
+ maxLength CDATA #IMPLIED
+>
+
+<!ELEMENT radioGroup (radio*) >
+<!ATTLIST radioGroup
+ %uiattrs;
+>
+
+<!ELEMENT radio EMPTY >
+<!ATTLIST radio
+ label CDATA #REQUIRED
+ value CDATA #REQUIRED
+>
+
+<!ELEMENT multiSelect EMPTY >
+<!ATTLIST multiSelect
+ %uiattrs;
+>
+
+
+<!ELEMENT date EMPTY>
+<!ATTLIST date
+ %uiattrs;
+ default (now|none) "none"
+>
+
+<!ELEMENT time EMPTY>
+<!ATTLIST time
+ %uiattrs;
+>
+
+
+<!ELEMENT checkbox EMPTY>
+<!ATTLIST checkbox
+ %uiattrs;
+>
+
+<!ELEMENT link EMPTY>
+<!ATTLIST link
+ %uiattrs;
+>
+
+<!ELEMENT tags EMPTY >
+<!ATTLIST tags
+ name CDATA "tags"
+ label CDATA #IMPLIED
+ className CDATA #IMPLIED
+>
+
+<!ELEMENT resize EMPTY >
+<!ATTLIST resize
+ name CDATA #REQUIRED
+ width CDATA #REQUIRED
+ height CDATA #REQUIRED
+ forceDimension (width|height) #IMPLIED
+ crop (true|false) "false"
+ aspectFollowsOrientation (true|false) "false"
+>
+
+<!ELEMENT ext (#PCDATA) >
+
+<!ELEMENT data (item*) >
+
+<!ELEMENT item ANY >
+<!ATTLIST item
+ objectTypeName CDATA #REQUIRED
+>
+
+<!ELEMENT content ANY >
+
+<!ELEMENT title (CDATA) >
View
25 lattice/objects.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE configuration SYSTEM "objects.dtd">
+
+<configuration>
+
+ <objectTypes>
+ <objectType name="article" contentType="document" allowDelete="true" >
+ <elements>
+ <text name="multilineIPE" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE2" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE3" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE4" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE5" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE6" label="MultiLine IPE" isMultiline="true"/>
+ </elements>
+ </objectType>
+
+
+ <objectType name="category" contentType="category" allowChildSort="false" allowDelete="false" allowTogglePublish="false">
+ <addableObject objectTypeName="article" addText="Add an Article" />
+ </objectType>
+
+ </objectTypes>
+
+</configuration>
View
256 lattice/objects.xml.example
@@ -0,0 +1,256 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE configuration SYSTEM "../../modules/lattice/lattice/objects.dtd">
+
+<configuration>
+
+ <objectTypes>
+
+ <objectType name="tagsObjectType" >
+ <elements>
+ <tags label="Tags" name="tags" />
+ </elements>
+ </objectType>
+
+<!-- HOME -->
+ <objectType name="basicCategory" contentType="category" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <addableObject objectTypeName="article" addText="Add an Article" />
+ <addableObject objectTypeName="multilineIPE" addText="Add an Article" />
+ <addableObject objectTypeName="singleIPE" addText="Add an Article" />
+ <addableObject objectTypeName="singleDate" addText="Add an Article" />
+ <addableObject objectTypeName="anotherCategory" addText="Add a Category" />
+ </objectType>
+
+ <objectType name="anotherCategory" contentType="category" allowChildSort="false" allowDelete="false" allowTogglePublish="false">
+ <addableObject objectTypeName="article" addText="Add an Article" />
+ </objectType>
+
+ <objectType name="article" contentType="document" allowDelete="true" >
+ <elements>
+ <text name="multilineIPE" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE2" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE3" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE4" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE5" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE6" label="MultiLine IPE" isMultiline="true"/>
+ </elements>
+ </objectType>
+
+ <objectType name="singleIPE" contentType="document" allowChildSort="true" allowDelete="true" allowTogglePublish="false">
+
+ <elements>
+ <pulldown name="state" label="State" >
+ <option value="AL" label="Alabama" />
+ <option value="AK" label="Alaska" />
+ </pulldown>
+ <text name="singleIPE" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE2" label="Single Single Single" isMultiline="false" />
+ <text name="ssdfasdfingleIPE2" label="Single Single Single" isMultiline="false" />
+ <text name="ssdfasdfasdfasdfingleIPE2" label="Single Single Single" isMultiline="false" />
+ <text name="maritnagus" label="NEW!" isMultiline="false" />
+ <text name="lagunea" label="Test Entry" isMultiline="true" />
+ <text name="lagunea1" label="Test Entry" isMultiline="true" />
+ <text name="lagunea2" label="Test Entry" isMultiline="false" />
+ <text name="lagunea3" label="Test Entry" isMultiline="true" />
+ <text name="lagunea4" label="Test Entry" isMultiline="false" />
+ <text name="lagunea5" label="Test Entry" isMultiline="false" />
+ <text name="lagunea6" label="Test Entry" isMultiline="false" />
+ <text name="lagunea7" label="Test Entry" isMultiline="false" />
+ <text name="lagunea8" label="Test Entry" isMultiline="true" />
+ </elements>
+
+ <components>
+ <component objectTypeName="singleDate" label="SingleDate as Component" />
+ <component objectTypeName="singleFile" label="Single File as Component"/>
+ <component objectTypeName="singleFile" label="Single markksl as Component"/>
+ <component objectTypeName="multilineIPE" label="Multiline as Component"/>
+
+ </components>
+
+ </objectType>
+
+ <objectType name="multilineIPE" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="true">
+ <elements>
+ <text name="multilineIPE" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE2" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE3" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE4" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE5" label="MultiLine IPE" isMultiline="true"/>
+ <text name="multilineIPE6" label="MultiLine IPE" isMultiline="true"/>
+ </elements>
+ </objectType>
+
+ <objectType name="singleRadioGroup" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <radioGroup name="singleRadioGroup" label="Single Radio Group">
+ <radio label="One" value="1"/>
+ <radio label="Two" value="2"/>
+ <radio label="Three" value="3"/>
+ </radioGroup>
+ </elements>
+ </objectType>
+
+ <objectType name="singleCheckbox" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <checkbox name="singleCheckbox" label="Single Checkbox"/>
+ </elements>
+ </objectType>
+
+ <objectType name="singleDate" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <date name="singleDate" label="Single Date"/>
+ </elements>
+ </objectType>
+
+ <objectType name="singleTime" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <time name="singleTime" label="Single Time"/>
+ </elements>
+ </objectType>
+
+ <objectType name="singleFile" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <file name="file" label="Single File"/>
+ </elements>
+ </objectType>
+
+ <objectType name="singleImage" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <image name="file" label="Single Image">
+ <resize name="test" width="96" height="58" forceDimension="height" />
+ <resize name="uithumb" width="6" height="8" forceDimension="height" />
+ <ext>jpg</ext>
+ <ext>tiff</ext>
+ <ext>tif</ext>
+ </image>
+ <text name="singleIPE2" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE3" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE4" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE5" label="Single Single Single" isMultiline="false" />
+ </elements>
+ </objectType>
+
+ <objectType name="singleImage2" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <image name="file" label="Single Image">
+ <resize name="test" width="96" height="58" forceDimension="height" />
+ <ext>jpg</ext>
+ <ext>tiff</ext>
+ <ext>tif</ext>
+ </image>
+ <text name="singleIPE2" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE3" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE4" label="Single Single Single" isMultiline="false" />
+ <text name="singleIPE5" label="Single Single Single" isMultiline="false" />
+ </elements>
+ </objectType>
+
+ <objectType name="simpleListModule" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <list name="simplelist" label="Simple List Module" display="inline">
+ <addableObject objectTypeName="simpleListModuleItem" addText="Add a field"/>
+ </list>
+ </elements>
+ </objectType>
+
+ <objectType name="simpleListModuleItem" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <text name="description" label="Description"/>
+ <text name="detail1" label="Detail 1"/>
+ <text name="detail2" label="Detail 2"/>
+ </elements>
+ </objectType>
+
+ <objectType name="imageListModule" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <list name="imageList" label="Image List" display="inline">
+ <addableObject objectTypeName="imageListItem" addText="Add an image"/>
+ </list>
+ </elements>
+ </objectType>
+
+ <objectType name="imageListItem" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <text name="description" label="Description"/>
+ <image name="file">
+ <ext>jpg</ext>
+ </image>
+ <image name="fileTwo">
+ <ext>jpg</ext>
+ </image>
+ </elements>
+ </objectType>
+
+ <objectType name="fileListModule" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <list name="fileList" label="File List" display="inline" >
+ <addableObject objectTypeName="fileListItem" addText="Add a field"/>
+ </list>
+ </elements>
+ </objectType>
+
+ <objectType name="fileListItem" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <text name="description" label="Description"/>
+ <file name="file" label="File">
+ <ext>html</ext>
+ <ext>csv</ext>
+ <ext>txt</ext>
+ <ext>pdf</ext>
+ </file>
+ </elements>
+ </objectType>
+
+ <objectType name="complexListModule" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <list name="complexList" label="Complex List" display="inline">
+ <addableObject objectTypeName="complexListItem" addText="Add List"/>
+ </list>
+ </elements>
+ </objectType>
+
+ <objectType name="complexListItem" contentType="document" allowChildSort="true" allowDelete="false" allowTogglePublish="false">
+ <elements>
+ <text name="description" label="Description"/>
+ <checkbox name="singleCheckbox" label="One"/>
+ <radioGroup name="singleRadioGroup" label="Single Radio Group">
+ <radio label="One" value="1"/>
+ <radio label="Two" value="2"/>
+ <radio label="Three" value="3"/>
+ </radioGroup>
+ <file name="file" label="File">
+ <ext>html</ext>
+ <ext>csv</ext>
+ <ext>txt</ext>
+ <ext>pdf</ext>
+ </file>
+ </elements>
+ </objectType>
+
+ <objectType name="singleAssociator" >
+ <elements>
+ <associator name="association" lattice="association" >
+ <filter></filter>
+ </associator>
+ </elements>
+ </objectType>
+ <objectType name="linkTest" >
+ <elements>
+ <text name="something" label="A athing"/>
+ <text name="somethin2g" label="A athing2"/>
+ <link name="theLink" label="A Link for All"/>
+ </elements>
+ <addableObject objectTypeName="linkTest" addText="Add Link Test"/>
+ </objectType>
+
+
+
+
+ <objectType name="wildflowerTestObject" >
+ <elements>
+ <image name="image" label="Image of the Wildflower"/>
+ </elements>
+ </objectType>
+
+ </objectTypes>
+
+</configuration>
View
10 views/list.php
@@ -1,16 +1,16 @@
-<div id="list_<?=$listObjectId;?>" data-objectid="<?=$listObjectId;?>" class="module <?=$class;?> classPath-lattice_modules_List clearFix">
+<div id="list_<?=$list_object_id;?>" data-objectid="<?=$list_object_id;?>" class="module <?=$class;?> classPath-lattice_modules_List clearFix">
<?if (isset($label) && $label):?>
<label class='listLabel'><?=$label;?></label>
<?endif;?>
<div class="listcontrol controls top clearfix">
- <?foreach($addableObjects as $addableObject):?>
- <a href="addObject/<?=$listObjectId;?>/<?=$addableObject['objectTypeId'];?>" class="addItem button"><?=$addableObject['objectTypeAddText'];?></a>
+ <?foreach($addable_objects as $addable_object):?>
+ <a href="addObject/<?=$list_object_id;?>/<?=$addable_object['objectTypeId'];?>" class="addItem button"><?=$addable_object['objectTypeAddText'];?></a>
<?endforeach;?>
</div>
<ul class="listing clearfix <?=$label;?>"><?=$items;?></ul>
<div class="listcontrol controls bottom clearfix">
- <?foreach($addableObjects as $addableObject):?>
- <a href="addObject/<?=$listObjectId;?>/<?=$addableObject['objectTypeId'];?>" class="addItem button"><?=$addableObject['objectTypeAddText'];?></a>
+ <?foreach($addable_objects as $addable_object):?>
+ <a href="addObject/<?=$list_object_id;?>/<?=$addable_object['objectTypeId'];?>" class="addItem button"><?=$addable_object['objectTypeAddText'];?></a>
<?endforeach;?>
</div>
</div>
View
4 views/list_item.php
@@ -1,8 +1,8 @@
<?$instance=$data['instance'];?>
<li data-objectid="<?=$data['id'];?>" id="item_<?=$data['id'];?>" class="listItem">
- <?foreach($uiElements as $htmlChunk):?>
- <?=$htmlChunk;?>
+ <?foreach($ui_elements as $html_chunk):?>
+ <?=$html_chunk;?>
<?endforeach;?>
<div class="itemControls clearFix">
Please sign in to comment.
Something went wrong with that request. Please try again.