0

in the upcoming weeks my client want me change some node reference options on his page.

I got 2 content types, press release and press office. When they create a new press release, they are able to reference to a press office via the "References" Module.

Now they want me to remove some of the press offices and add some new. Thats not the problem, when I remove the old press offices the old nodes lose their references as well. But they want the old nodes keep their references, which sounds logical to me, but I've no idea how to do that.

Greetings from germany

sg

2
  • You could just unpublish the press office rather than delete it. Commented Dec 17, 2013 at 16:32
  • Unpublishing wont solve this, cause when I do this, the old nodes will lose there references.
    – Sebastian
    Commented Dec 19, 2013 at 9:32

1 Answer 1

0

If I'm clear, you don't actually want to remove any of the press offices because existing press releases should still be able to reference them, you just want to remove the option to associate new press releases with certain press offices (while at the same time, creating some new press offices that can be referenced).

So really, we just want to filter the list of press offices that can be referenced by new press releases.

I would suggest that you add a new boolean field to the press offices, something like: "Can be referenced". Then create a view that filters press offices on that field. Finally, configure your Entity Reference field Mode to use "Views: Filter by an entity reference view" and select the view you just created.

1
  • That Sounds perfect, I'll give This a tty
    – Sebastian
    Commented Dec 18, 2013 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.