Support Forum ยป User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Older Versions #2343
    IchFloqueIchFloque
    Participant

    ah! thanks so much!

    in reply to: Older Versions #2336
    IchFloqueIchFloque
    Participant

    yes sure:

    
    // register meta poxes for attend page in backend
    add_filter( 'rwmb_meta_boxes', 'box_register_meta_boxes' );
    
    function box_register_meta_boxes( $meta_boxes )
    {
        $prefix = 'box_';
    
        // meta box
        $meta_boxes[] = array(
            'id'       => 'boxes',
            'title'    => 'Preview Boxes',
            'pages'    => array( 'page' ),
            'context'  => 'normal',
            'priority' => 'high',
    
            'fields' => array(
                
                array(
                    'name'  => 'Featured Box',
                    'desc'  => 'Full width featured boxes for content',
                    'id'    => $prefix . 'group_big',
                    'type'  => 'group',
                    'clone' => true,
                    
                    // List of child fields
                    'fields' => array(
                        array(
                            'name'    => 'Date',
                            'id'      => 'date',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Featured Text',
                            'id'      => 'text',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Image-URL (1.035x605)',
                            'id'      => 'url',
                            'type'    => 'url',
                        ),
                        array(
                            'name'    => 'Title',
                            'id'      => 'title',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Subtitle',
                            'id'      => 'subtitle',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Facebook Event URL',
                            'id'      => 'facebook',
                            'type'    => 'url',
                        ),
                        array(
                            'name'    => 'Link-URL incl. http://',
                            'id'      => 'link',
                            'type'    => 'url',
                        ),
                        array(
                            'name'    => 'FB + Link active?',
                            'id'      => 'linked',
                            'type'    => 'checkbox',
                        ),
                        array(
                            'name'    => 'Price (only Google KG events)',
                            'id'      => 'price',
                            'type'    => 'text',
                        ),
                    ),
                ),
                
                array(
                    'name'  => 'Preview Box',
                    'desc'  => 'Fixed preview boxes for content',
                    'id'    => $prefix . 'group',
                    'type'  => 'group',
                    'clone' => true,
                    
                    // List of child fields
                    'fields' => array(
                        array(
                            'name'    => 'Date',
                            'id'      => 'date',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Image-URL (350x180)',
                            'id'      => 'url',
                            'type'    => 'url',
                        ),
                        array(
                            'name'    => 'Title',
                            'id'      => 'title',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Subtitle',
                            'id'      => 'subtitle',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Link-URL incl. http://',
                            'id'      => 'link',
                            'type'    => 'text',
                        ),
                        array(
                            'name'    => 'Open link in new tab',
                            'id'      => 'target',
                            'type'    => 'checkbox',
                        ),
                    ),
                ),
                
            )
        );
    
        return $meta_boxes;
    }
    
    in reply to: Older Versions #2329
    IchFloqueIchFloque
    Participant

    Thanks for the link.
    FYI: 4.8.1 still didn't fix my problem...

    in reply to: Change order #573
    IchFloqueIchFloque
    Participant

    yes, thank you! good idea! array_reverse does what i wanted!
    for future updates please consider a way to sort data records in the backend, would be very helpful!
    thank you again!

    in reply to: Change order #571
    IchFloqueIchFloque
    Participant

    i actually meant returning the new record first. so a new data record is entered, which is only possible to be entered at the bottom in the backend, but should be the first in the frontend. like being sorted by date, newest entries first. ๐Ÿ™‚

    in reply to: Change order #568
    IchFloqueIchFloque
    Participant

    i understand. how can you change the code so the the newest field entries are being returned first by the frontend?

Viewing 6 posts - 1 through 6 (of 6 total)