Posts by martinelliff

    I have a repeater in a repeating region.

    I need each repeater to have a unique id. i.e. the repeating region item id.

    Using perch_item_index returns a unique id within the region but the repeater resets this, and as all the regions appear on the page they are not unique.

    Region = <perch:content id="perch_item_index" type="hidden" />

    <perch:repeater id="topics">

    Topic = <perch:content id="perch_item_index" type="hidden" />


    For 2 items in the region this produces;

    Region = 1

    Topic = 1

    Topic = 2

    Region = 2

    Topic = 1

    Topic = 2

    I want something like;

    Region = 1

    Topic = 1_1

    Topic = 1_2

    Region = 2

    Topic = 2_1

    Topic = 2_2

    So is there a way to pull in the itm id? As in the URL /perch/core/apps/content/edit/?id=35&itm=31

    How do I hide content fields from being visible in the editor?

    I am using placeholders to pass content into templates e.g.

    <perch:content id="menu" encode="false" />

    I do not want this to show in the dashboard region editor. At the moment it shows as an input field with no label.