Forum for discussing general topics related to Couch.
8 posts Page 1 of 1
Hi,
I need a noobie help :) .
I have a clonable template but now I have two entries which can't delete and I don't understand why.
As I know must minimum one entry there which I can't delete but not two of them.
And I can't sort the entries through the arrows. Must I release this feature first?

Cheers
Hi,

Could you please post a screenshot?
Sorry I forgot to attach.

Attachments

Thanks.

There are two reasons for that delete button to be hidden -
1. The user does not have sufficient permission on the page.
2. There are existing 'drafts' for the page.

For the first point above, check the 'Access Level' setting for the page in 'Advanced Settings' dropdown.
For the second, check the 'Drafts' under 'Administration' section in the sidebar.

Hope this helps.
Thanks there was drafts in the admin section.
So solved first problem. Now the arrow sort. have you any idea whats the problem could be?
Javascript is not deactivated!
Are you seeing any JS error being reported in your browser's dev-console?
Also, it seems you are using <cms:config_list_view> to customize the listing - please post its full code for me to test if something is going wrong with that.
I have no JS error in the console and yes there is used a config-list-view
Code: Select all

<?php require_once( 'cms/cms.php' ); ?>
<cms:embed 'custom_code/mobile-detect.html' />

<cms:template title='wirsinddasKJF Cards' order="2" icon='' clonable='1' parent='_landingpage_'>
    <cms:editable name='wsdkjfcard_dachzeile' label='Dachzeile' type='text' order='30' />
    <cms:editable name='wsdkjfcard_einleitung' label='Einleitung' type='richtext' order='40' />
    <cms:editable name='wsdkjfcard_text' label='Text' type='richtext' order='50' />
    <cms:editable name='wsdkjfcard_image' label='Foto' type='image' order='60' show_preview='1' preview_width='150' />
    <cms:editable name="wsdkjfcard_pos" label="Position" desc="Ausrichtung des Fotos" opt_values='Mitte=50% 50% | Oben=50% 0 |  Rechts=100% 50% | Unten=50% 100% | Links=0 50%' type='radio' order='70' />
    <cms:config_list_view searchable='1' exclude='default-page' limit='50'>
        <cms:field 'k_selector_checkbox' />
        <cms:field 'k_page_title' />
        <cms:field 'k_page_date' />
        <cms:field 'k_up_down' />
        <cms:field 'k_actions' />
    </cms:config_list_view>
</cms:template>

<cms:php>
    if(!isset($_GET["ajax"]) && isset($_GET["p"])){
       header('Location: /index.php?wsdkjf='.$_GET["p"]);
    }
</cms:php>

<cms:ignore>----------------------------------------------------------------------</cms:ignore>

<article class="wsdkjf-item">
    <cms:if wsdkjfcard_image>
        <div class="modal--header" style="background-image:url(<cms:show wsdkjfcard_image />);background-position:<cms:show wsdkjfcard_pos />">
    <cms:else />
        <div class="modal--header no-foto">
    </cms:if>
    <!-- Headline -->
    <div class="padded-multiline-hl-wrapper">
        <h4 class="news__title">
            <span class="news__title--dachzeile">
                <cms:show wsdkjfcard_dachzeile />
            </span>
            <br>
            <span class="news__title--headline">
                <cms:show k_page_title />
            </span>
        </h4>
    </div>
    </div>
    <div class="modal--body">
        <div class="news-body">
            <div class="news-einleitung">
                <p class="released-on">
                    <i>Veröffentlicht am:&nbsp;</i>
                    <i>
                        <cms:date k_page_date format='%e.' locale='german' />
                    </i>
                    <i class="news__datum--monat">
                        <cms:date k_page_date format='%B' locale='german' />
                    </i>
                    <i>
                        <cms:date k_page_date format='%Y' locale='german' />
                    </i>
                </p>
                <cms:show wsdkjfcard_einleitung />
            </div>
            <div class="news-haupttext">
                <p>
                    <cms:show wsdkjfcard_text />
                </p>
            </div>
        </div>
        <div class="news-footer">
            <a href="javascript:shareOnFacebook()">
                <cms:embed 'svg/fb-logo.html' />
            </a>
            <a href="javascript:emailCurrentPage()" class="news-footer--link">
                <cms:embed 'svg/mail-logo.html' />
            </a>
        </div>
</article>
<?php COUCH::invoke(); ?>


Ist only a part html-template because it will loaded through ajax in a modalwindow.
HI @kk,
I found the mistake I do. I forgot to decline the `orderby='weight' order='asc'` on the `<cms:pages>` call.
The documentation from @SimonWpt and he himself was a big help.
8 posts Page 1 of 1