helpers.js
function (title) {
            // important to pass single param, because casper acts
            // weirdly with single key objects https://github.com/n1k0/casperjs/issues/353
            return casper.evaluate(function (anchorTitle) {
                return CMS.$('.jstree-anchor').map(function () {
                    var anchor = CMS.$(this);

                    if (anchor.text().trim() === anchorTitle) {
                        return anchor.parent().data('nodeId');
                    }
                }).toArray();
            }, title);
        }
function (title) {
            // important to pass single param, because casper acts
            // weirdly with single key objects https://github.com/n1k0/casperjs/issues/353
            return casper.evaluate(function (anchorTitle) {
                return CMS.$('.jstree-anchor').map(function () {
                    var anchor = CMS.$(this);

                    if (anchor.text().trim() === anchorTitle) {
                        return anchor.parent().data('nodeId');
                    }
                }).toArray();
            }, title);
        }
function ( title ) { // important to pass single param, because casper acts // weirdly with single key objects https://github.com/n1k0/casperjs/issues/353 return casper . evaluate ( function ( anchorTitle ) { return CMS . $ ( '.jstree-anchor' ) . map ( function ( ) { var anchor = CMS . $ ( this ) ; if ( anchor . text ( ) . trim ( ) === anchorTitle ) { return anchor . parent ( ) . data ( 'nodeId' ) ; } } ) . toArray ( ) ; } , title ) ; }
Returns page nodeIds of all the pages with same title.
Pages has to be visible in the page tree. See `expandPageTree`.

@function _getPageNodeIds
@private
@param {String} title page title
@returns {String[]|Boolean} page node ids as an array of strings or false if couldn't be found
Returns page nodeIds of all the pages with same title . Pages has to be visible in the page tree . See expandPageTree .