Skip to content

Instantly share code, notes, and snippets.

@jaspertandy
Created October 4, 2011 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaspertandy/1261646 to your computer and use it in GitHub Desktop.
Save jaspertandy/1261646 to your computer and use it in GitHub Desktop.
<record tableName="homepage_boxes" tableUrl="homepage-boxes" name="Homepage Boxes">
<fields>
<section name="">
<link field="box_type" name="Type" type="dropdown" tableName="homepage_box_types" uid="homepageboxtype">
<linkOptions field="name" orderBy="name ASC" allowNull="false"/>
</link>
<templateGroup name="News Types" link="homepageboxtype">
<template id="1" name="Section">
<text field="transition_every" name="Transition Every" width="80" comment="1/1000th second"/>
</template>
</templateGroup>
<boolean field="live" type="checkbox" name="Live?" default="1"/>
</section>
<section name="Images" type="variations">
<link field="id" name="Homepage Box Items" type="subtable" tableName="homepage_box_items" linkField="homepage_box" noList="true">
<text field="title" name="Title" width="100"/>
<text field="subtitle" name="Subtitle" width="100"/>
<text field="link_text" name="Link Text" width="100"/>
<text field="url" name="URL" width="100"/>
<images name="Image" valids="jpg,jpeg,png,gif" noList="true">
<image field="image" width="579" height="341" path="up/homepage-boxes/579_341"/>
<image field="image" width="339" height="341" path="up/homepage-boxes/339_341"/>
<image field="image" width="459" height="258" path="up/homepage-boxes/459_258"/>
<image field="image" width="0" height="0" path="up/homepage-boxes"/>
</images>
<text field="list_order" name="List Order" width="20"/>
<text field="pos_top" name="Overlay Y" width="30" default="0"/>
<text field="pos_left" name="Overlay X" width="30" default="0"/>
<boolean field="is_black" type="checkbox" name="Black Text?" default="0"/>
</link>
</section>
</fields>
</record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment