Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Supports pathauto tokens, breadcrumbs and structural effects for a navigation heirarchy built from EntityReference.

---

This module
* provides new tokens to use with pathauto
* allowing you access to "the entity that refers to this one through entity_reference (via a named field)"

I have a number of publication issues - that link to publication 'articles' using inline_entity_form to allow an editor to do the whole thing from the top.

The pattern for my 'article' content type

[node:incoming_references:field_pi_articles:0:url:path]/[node:title]
Which translates to:
* when making a path for an article
* find the url path of
* the first (0th) entity that links to me
* by way of the field_pi_articles entityreference.

In this way, my articles are all given URLs derived from their parent/owner node.

THERE IS a race condition if you try to create all these nodes at once, as the children require the parent to have been given a valid URL before they save (observed above), and inline_entity_form may not always ensure that. But in general, this token that helps you build an URL based on incoming references is what I needed at that time.

I actually added a 'rule' to take care of the rest, including 'if parent is unpublished, all children are unpublished' and vice-versa. And one for 'if the parent path changes, update all child paths' But that was pure 'rules' only IIRC.

Related discussion issue

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Site structure
  • Created by dman on , updated