Unable to use Nova to create nested hierarchy of sub-sub-topics, Nova throws a 404 not found page #5873
Unanswered
connecteev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a content_topics table, which contains a hierarchy of "content topics" (
topicsfor short) as well assubtopics. Both are stored in the samecontent_topicstable. A topic has a parent_id of NULL, wheras a sub-topic has a non-NULL parent_id.My problem:
Database table
Creating Top-level Topics works
I can create a top-level topic (with no parent) by going to /admin/resources/content-topics and clicking "Create Content Topic"

Creating SubTopic (under a Top-level Topic) works
I can create a 1st level sub-topic (with a non-null parent) by going to a top-level content topic like /admin/resources/content-topics/18 and clicking "Create Content Topic"
Creating Sub-SubTopic (under a SubTopic) Fails and results in a 404 page
However, if I try to nest this hierarchy further by going to a content sub-topic like /admin/resources/content-topics/25 and then try to click on "Create Content Topic", I see a 404 not found page.
My Code:
app/Models/ContentTopic.php:
app/Nova/ContentTopic.php:
Beta Was this translation helpful? Give feedback.
All reactions