• E
    ernestobellei

    Hi @arminunruh,

    thank you for the response!
    I'm temporarily displaying a black square with the category ID and it works perfectly...it was just a detail I was guessing about.
    Actually I think that using Ajax in this case wouldn't work either because the JS backend rendering is fired on mousemove (several times for second) and an Ajax call would fire too many times (the API call was just an extreme attempt to get it work and experimentate with it).

    But as said before this is just a detail, I can easily live without it :)) If there was a way to integrate this function before the rendering function (for example by hooking to a CMB2 sanitize function) it could have worked.

    Many thanks,
    Ernesto

    posted in General Discussion read more
  • E
    ernestobellei

    Hi all,

    I'm experiencing a weird problem when using some stack elements on backend.
    Here a video of the error. As long as I'm dragging the handles in order to resize the element inside the stack everything get displayed correctly but, on mouse release, the element width became 0% and everything looks compressed 😕

    Thanks,
    Ernesto

    posted in General Discussion read more
  • E
    ernestobellei

    Hi,

    I'm trying to create a category slider for the gridder.
    The user should input a category (from a select dropdown) and the output should be an array of post ids and images.
    I was thinking of doing it using the sanitize function provided by CMB2 but it doesn't seems to work (maybe because it is hooked on post save? boh)

    Right now I'm retrieving the correct category id from the model variable.
    I've also tried by using an async wp-json API call in order to render the images asyncronously but it is not working (even though I was excpecting thi behaviour).

    Is there any way to reprocess the CMB2 input value before passing it to the gridder? Even as a PHP filter function...

    P.s. Obviously on the frontend I manage to do wathever I want by using a Wp query on the $category_id returned value. I'm just asking in order to have a "better feeling" on backend gridder

    Thank you in advance,
    Ernesto

    posted in General Discussion read more
  • E
    ernestobellei

    Re: CMB2 'Group' field type support

    Hi,

    I'm currently working on a custom menu block for the gridder.
    Right now I'm using a CMB2 Gorup field which contains a "label" (input_type: text), an "URL" (input type: text_url) and a "Open in new page" (input_type; checkbox) in order to create a menu element.

    The group field and types get retrieved correctly from the model but val is always false or undefined

    alt text

    This is the Setup

    $cmb = new_cmb2_box(array(
      'id'            => 'nfl_metabox',
      'title'         => 'Inner navigation menu'
    ));
    
    $group_field_id = $cmb->add_field( array(
      'id'          => 'nfl_links',
      'type'        => 'group',
      'description' => __('Generates reusable form entries', 'cmb2'),
      'options'     => array(
      'group_title'       => __('Entry {#}', 'cmb2'),
      'add_button'        => __('Add Another Entry', 'cmb2'),
      'remove_button'     => __('Remove Entry', 'cmb2'),
      'sortable'          => true,
      ),
    ));
    
    $cmb->add_group_field($group_field_id, array(
    	'name' => 'Link label',
    	'id'   => 'label',
    	'type' => 'text',
    ));
    
    $cmb->add_group_field($group_field_id, array(
    	'name' => 'Link URL',
    	'id'   => 'url',
    	'type' => 'text_url',
    ));
    
    $cmb->add_group_field($group_field_id, array(
    	'name' => 'Open in new tab',
    	'id'   => 'new_tab',
    	'type' => 'checkbox',
    ));
    

    And this is the rendering

        console.log(model);
    
        var viewContent = '';
        var viewElement = document.createElement('div');
    
        var wrapperElement = document.createElement('ul');
    
        var links = model.get('nfl_links').val;
    
        [...links].forEach(link => {
          var menuElement = document.createElement('li');
          menuElement.innerHTML = link.label.val;
          wrapperElement.appendChild(menuElement);
        })
    
        return wrapperElement.innerHTML;
    

    Thank you in advance!

    Update

    I noticed that even with a checkbox outside the CMB2 group I always get false as a result

    posted in General Discussion read more
  • E
    ernestobellei

    Hi @f-albert-work,

    Any news about this implementation?

    Thanks :))
    Ernesto

    posted in Feature Requests read more
  • E
    ernestobellei

    Hi @f-albert-work,

    Thanks! :)) it worked.

    Nope, I never used the free laygridder on this wp instance, but I moved the entire website back and forth two web spaces multiple times...maybe that's the reason.

    Best,
    Ernesto

    posted in Bug Reports read more
  • E
    ernestobellei

    It started as a random error but now just appeared and won't go away.
    Both console and log file are not showing any error. I could simply deactivate all PHP warnings, but would be nice to have it fixed :))

    → → → → → → → →

    Warning: First parameter must either be an object or the name of an existing class in /kunden/437627_39100/dev/wordpress/wp-content/plugins/laygridder/frontend/frontend.php on line 529

    Warning: First parameter must either be an object or the name of an existing class in /kunden/437627_39100/dev/wordpress/wp-content/plugins/laygridder/frontend/frontend.php on line 532

    Warning: First parameter must either be an object or the name of an existing class in /kunden/437627_39100/dev/wordpress/wp-content/plugins/laygridder/frontend/frontend.php on line 536

    Warning: First parameter must either be an object or the name of an existing class in /kunden/437627_39100/dev/wordpress/wp-content/plugins/laygridder/frontend/frontend.php on line 541

    Warning: First parameter must either be an object or the name of an existing class in /kunden/437627_39100/dev/wordpress/wp-content/plugins/laygridder/frontend/frontend.php on line 550

    Warning: First parameter must either be an object or the name of an existing class in /kunden/437627_39100/dev/wordpress/wp-content/plugins/laygridder/frontend/frontend.php on line 565

    → → → → → → → →

    Thanks for your help

    posted in Bug Reports read more
  • E
    ernestobellei

    Google Chrome 68.0.3440.106 (but tested both on Safari and Firefox)

    I created a custom layout for mobile version with two full bleed images.
    I removed the row gap for each image row but...

    alt text

    There still is a weird blank space after the row...

    alt text

    It doesn't happens in desktop version!

    alt text

    By inspecting it in Google Chrome I can see that this weird space is inherited from .lg-column-wrap but it doesn't seems to be a margin/padding/border.

    alt text

    Thanks for your help
    Ernesto :))

    posted in Bug Reports read more
  • E
    ernestobellei

    Hi @f-albert-work

    No errors in /usr/local/var/log/httpd/error_log and no errors in browser console.
    → See the error in action

    Tested on last versions of Chrome, Safari and Firefox (on local server) without any result :((

    Best,
    Ernesto

    posted in Bug Reports read more