Adding Attributes + PageTypes + formlayout using cif file
Permalink
Hello i am having an issue when installing a cif file
Everything works fine until i add the formlayout for custom attributes.
Am I missing Someathing ?
<?xml version="1.0" encoding="UTF-8"?>
<concrete5-cif version="1.0">
<themes>
<theme handle="home_theme" package="home_package" activated="0"/>
</themes>
<pagetemplates>
<pagetemplate icon="blank.png" name="Blank" handle="blank" package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Home Catalog" handle="home_catalog" package="home_package"
internal=""/>
<pagetemplate icon="full.png" name="Home Constellation Item" handle="home_constellation_item"
package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Home Constellations" handle="home_constellations"
package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Home News Article Item" handle="home_news_article_item"
package="home_package" internal=""/>
<?xml version="1.0" encoding="UTF-8"?>
<concrete5-cif version="1.0">
<themes>
<theme handle="home_theme" package="home_package" activated="0"/>
</themes>
<pagetemplates>
<pagetemplate icon="blank.png" name="Blank" handle="blank" package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Home Catalog" handle="home_catalog" package="home_package"
internal=""/>
<pagetemplate icon="full.png" name="Home Constellation Item" handle="home_constellation_item"
package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Home Constellations" handle="home_constellations"
package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Home News Article Item" handle="home_news_article_item"
package="home_package" internal=""/>
<pagetemplate icon="full.png" name="Full" handle="full" package="" internal=""/>
<pagetemplate icon="left_sidebar.png" name="Left Sidebar" handle="left_sidebar" package="home_package"
internal=""/>
<pagetemplate icon="right_sidebar.png" name="Right Sidebar" handle="right_sidebar" package="home_package"
internal=""/>
</pagetemplates>
<pagetypes>
<pagetype name="HomeLab Constellations" handle="home_constellations" package="home_package"
launch-in-composer="0">
<pagetemplates type="custom" default="home_constellations">
<pagetemplate handle="home_constellations"/>
</pagetemplates>
<target handle="all" package="home_package" form-factor=""/>
<composer>
<formlayout>
<set name="Basics" description="">
<control custom-template="" required="1" custom-label="" description=""
type="core_page_property" handle="name"/>
</set>
</formlayout>
<output>
<pagetemplate handle="home_constellations">
<page name="" path="" public-date="2018-02-05 21:24:08" filename=""
pagetype="home_constellations" template="home_constellations" user="admin"
description="" package="home_package" root="true"/>
</pagetemplate>
</output>
</composer>
</pagetype>
<pagetype name="HomeLab Constellation Item" handle="home_constellation_item_page_type"
package="home_package"
launch-in-composer="0" is-frequently-added="1">
<pagetemplates type="custom" default="home_constellation_item">
<pagetemplate handle="home_constellation_item"/>
</pagetemplates>
<target handle="page_type" package="home_package" pagetype="home_constellations" form-factor=""/>
<composer>
<!--<formlayout>-->
<!--<set name="Basics" description="">-->
<!--<control custom-template="" required="1" custom-label="" description=""-->
<!--type="core_page_property" handle="name"/>-->
<!--<control custom-template="" required="1" custom-label="" description=""-->
<!--type="collection_attribute" handle="cluster"/>-->
<!--<control custom-template="" custom-label="" description="" type="collection_attribute"-->
<!--handle="thumbnail"/>-->
<!--</set>-->
<!--</formlayout>-->
<output>
<pagetemplate handle="home_constellation_item">
<page name="" path="" public-date="2018-02-05 21:25:50" filename=""
pagetype="home_constellation_item_page_type" template="home_constellation_item"
user="admin" description="" package="home_package" root="true">
<attributes>
<attributekey handle="exclude_nav">
<value>1</value>
</attributekey>
</attributes>
</page>
</pagetemplate>
</output>
</composer>
</pagetype>
</pagetypes>
<attributekeys>
<attributekey handle="thumbnail" name="Thumbnail" package="home_package" searchable="1" indexed="1"
type="image_file" category="collection">
<type mode="file_manager"/>
</attributekey>
<attributekey handle="cluster" name="Home Constellation" package="home_package" searchable="1"
indexed="1" type="text" category="collection">
<type placeholder=""/>
</attributekey>
</attributekeys>
</concrete5-cif>
Have you reviewed the "concrete5 CIF Example: Attribute Keys" documentation?
https://documentation.concrete5.org/developers/appendix/concrete5-ci...