Using Nested Preview for Forum Posts

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
stpaulin
User
Posts: 139

Using Nested Preview for Forum Posts

Post by stpaulin »

I found the new Nested preview feature very interesting and would like to use it to create a sort of forum with posts and replies to posts, replies to replies to posts, and so on... I tried by creating a posts table:

(id, title, post_date, user_id, parent_post__id).

The parent_post_id field is filled if the post is a reply to another post, otherwise the post is a parent post. I then created a custom view "vue_posts" = "Select * from posts" and created a relationship between the "posts" table and "vue_posts" in phpmaker: posts.id = vue_posts.parent_post_id.

Everything's fine, and the nested preview works very well, but I can't produce the reflexivity effect. I just get the replies to a specific post by not reflexively the replies to the replies for example.

Please give me some ideas if possible.


arbei
User
Posts: 9384

Post by arbei »

Your idea won't work. Each table only shows its own detail tables.


Post Reply