Skip Navigation

[Resolved] Multi level user generated content app

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by Luo Yang 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2215073

Hello everyone, so this is my first post here and I do hope you can help.

so I am trying to build an application which is using WordPress, buddypress, elementor pro and toolset with the buddyxpro theme.

The app I am trying to build is a hobby manager that will allow you to keep track of stock (Models & Paints), track model builds progress and then manage lore and stories surrounding the models. All while being part of the community via buddypress.

Back before I became disabled was a programmer and would have simply created a table to hold basic model data, table to hold basic paint data, table for brands of paint and model, table for managing stock, table for the model progress track then a group of tables to manage the creation of lore and stories for each model, squad, character etc.

now when I started programming we linked tables by ID each would have the UserID in there to allow for pulling data via sql WHERE UserID = $UID.

I am struggling to pull all the training videos together to work this out, the old brain does not work as it once did, and I don't seem to be getting these post types. its still very new but the toolset documentation is becoming confusing at times.

now I made a couple of post types to store the basic model info though I'm still wondering if I should use taxonomy with custom image to categories the models to their brands.

Next it is the shelf that will hold UID, ModelID and Quantity. this would display front end and allow for more models to be added to the Shelf or increase the quantity of existing shelf model.

next would be the model tracker which would look to the shelf and deduct 1 from quantity and allow a user to update the progress of the build & Paint stage as well as uploading photos to a gallery for that model.

now I know how this would work mysql and php command but in toolset I am becoming stuck in what fields I need to make and how to then link the queries together.

if someone could help flesh out the toolset structure please so I can get the basic part sorted I can then work on the remainder.

Thanks everyone and happy Sunday.

#2215521

Hello,

I don't think you need the other custom database tables, you can setup some post types, for example:
- Models & Paints
- builds progress
- lore and stories
https://toolset.com/course-lesson/creating-a-custom-post-type/

Setup post type relationships:
- "Models & Paints" and "builds progress"
- "Models & Paints" and "lore and stories"
https://toolset.com/course-lesson/how-to-set-up-post-relationships-in-wordpress/

Edit each "Models & Paints" post, you can add more related "builds progress" and "lore and stories" posts
In single "Models & Paints" post, you can display the related "builds progress" posts + "lore and stories" posts
https://toolset.com/course-lesson/displaying-related-posts/

#2217871

Hi, thank you for the info. I don't think I explained myself correctly.

there are a couple of things I want to achieve.

1. I have created several taxonomys with a custom field group attached for Logos(

Game system which has parent and child taxonomy eg
Parent: GAMES WORKSHOP
Child: Warhammer 40,000
Child:Warhammer Age of Sigmar
Child:Lord of the Rings
Parent: Test Company 1
Child:Test Game 1
Child:Test Game 2

Then I have have setup several others which connect to one of the child taxonomy.
what I would like to do here is setup a page where a user will see a row of 4 logos which will be the Parent Taxonomy, when they click on say "Games Workshop" logo the page will then display the child Taxonomy "Warhammer 40,000 | Warhammer Age of Sigmar | Lord of the Rings" logos.

now because of the complexity of the further filtering I have created individually Taxonomy.
The idea is that if the user clicks on "Warhammer 40,000" Logo I can show images of other Taxonomy and so forth.

all these taxonomy are connected to a post type called Models.

the idea is that by simply clicking through images users can select the model they wish to add to their shelf instead of having to type a name or a code. there will be a search box available as well but the images are how I imagine people searching for their desired model.

now when you choose the model they wish to add to their shelf they will be directed to another page or a lightbox popup where they will be able to simply click a plus button to add 1 of the selected models to their shelf which is connected by a post reference field and a field called quantity has been added for the model quantity on the users shelf.

this then shows on the manage models post page.

Once I crack this filter/display problem I will be fine but I can't pull the prices together. I know php would be a simple if x =y show z and using bootstrap or jquery with elementor to make it look fancy it will be fine.

any input would be grateful please. as I said, my brain is unfortunately not what it used to be and most likely I am missing a single option somewhere.

Thanks
Anthony

#2218059

Thanks for the details, for the question:

what I would like to do here is setup a page where a user will see a row of 4 logos which will be the Parent Taxonomy, when they click on say "Games Workshop" logo the page will then display the child Taxonomy "Warhammer 40,000 | Warhammer Age of Sigmar | Lord of the Rings" logos.

You can try these:
1) Create a custom hierarchical taxonomy "Game system"
https://toolset.com/course-lesson/creating-a-custom-taxonomy/

2) Add a custom image term field "Logo" to above taxonomy taxonomy "Game system"
https://toolset.com/documentation/user-guides/views/term-fields/

3) Add terms as you mentioned above, and setup their logo image
Parent: GAMES WORKSHOP
Child: Warhammer 40,000
Child:Warhammer Age of Sigmar
Child:Lord of the Rings
Parent: Test Company 1
Child:Test Game 1
Child:Test Game 2

4) Dashboard-> Toolset-> Settings-> General
in section "Editing experience", enable option "Show both the legacy and Blocks interface and let me choose which to use for each item I build".

5) Dashboard-> Toolset-> Views, setup nested taxonomy views:
a) Parent taxonomy view:
- Query terms of taxonomy "Game system"
- Filter by:
Select taxonomy terms whose parent is None.
- In view's loop, display term information + below child taxonomy view
b) Child taxonomy view
- Query terms of taxonomy "Game system"
- Filter by:
Parent is the taxonomy selected by the parent Taxonomy View
- In view's loop, display term information

6) Create a page, and display above Parent taxonomy view

#2218893

Thank you for that. it seems that block modes do not like taxonomy fields and showing them in a block template is extremely difficult.

how would you recommend I pass the parent taxonomy so that the child will display?

#2218931

Blocks editor does not support taxonomy view, please try as I mentioned above, use classic editor to setup both taxonomy views.

#2219301

not a problem, I have figured the layout part out now lol.

how would you recommend translating from one taxonomy to the other when clicking?

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/translating-from-one-taxonomy-to-the-other-when-clicking/

#2220845

I assume the original questions of this thread is resolved, according to our support policy, we prefer to one ticket one question, for other new questions, please check the new thread here:
https://toolset.com/forums/topic/translating-from-one-taxonomy-to-the-other-when-clicking/