public function currentPosition()
    {
        $parent = $this->parent();
        $collection = $parent ? $parent->collection('content', false) : null;
        if ($collection instanceof Collection) {
            return $collection->currentPosition($this->path());
        }

        return 1;
    }
public function currentPosition()
    {
        $parent = $this->parent();
        $collection = $parent ? $parent->collection('content', false) : null;
        if ($collection instanceof Collection) {
            return $collection->currentPosition($this->path());
        }

        return 1;
    }
public function currentPosition ( ) { $ parent = $ this -> parent ( ) ; $ collection = $ parent ? $ parent -> collection ( 'content' , false ) : null ; if ( $ collection instanceof Collection ) { return $ collection -> currentPosition ( $ this -> path ( ) ) ; } return 1 ; }
Returns the item in the current position.

@return int   the index of the current page.
Returns the item in the current position .