Hi,

do you plan an port to Drupal 8?
I'm looking forward to this because its a really neccessary feature at our Website, we have no other solution yet :-(

Comments

infopicard created an issue.

MarcElbichon’s picture

No, i do not plan to port it to Drupal 8 because no longer use Drupal for developments.
I'm looking for maintainers so if you are interested ....

infopicard’s picture

yes, I'm very interested for a D8 Version of your excellent work! THank you!
If I could assist in testing (I think migration is not really needed(?) because you use only standard book elements?)

MarcElbichon’s picture

Oops, i've completly forgotten than now, iyyappan govind is the main maintainer of this module. Sorry for thant
I've still added you as co-maintainter to help him.
Thanks for your help

Marc

ressa’s picture

Has there been any progress with a Drupal 8 version?

EDIT: I ended up making a module which makes a block with the create child page links. Put this in the src/Plugin/Block folder of your custom module ("MODULE_NAME"), called CreateChapterSource.php (I haven't tested it, but it should work):

<?php

namespace Drupal\MODULE_NAME\Plugin\Block;

use Drupal\Core\Block\BlockBase;
use Drupal\Core\Cache\Cache;

/**
 * Provides a 'Create chapter or source' Block
 *
 * @Block(
 *   id = "create_chapter_block",
 *   admin_label = @Translation("Create chapter or source"),
 * )
 */
class CreateChapterSource extends BlockBase {
  /**
   * {@inheritdoc}
   */
  # don't cache node IDs
  public function getCacheMaxAge() {
    return 0;
  }
  public function build() {
    $node_id = \Drupal::routeMatch()->getRawParameter('node');
    return array(
      '#markup' => $this->t('<a href="/node/add/chapter?parent=' . $node_id . '">Create chapter</a><br /><a href="/node/add/source?parent=' . $node_id . '">Create source</a>'),
    );
  }
}
joel_osc’s picture