Picture of Robert Drew Jeffrey
Parent content objects to each other?
by Robert Drew Jeffrey - Wednesday, 30 April 2014, 10:59 AM
 

Hi all,

Im wanting to have a page link to another set of pages.

E.g iv got 5 content objects that are pages all parented to the course, when i click view i want to be taken to another screen where i can choose from another 4 pages and then when you click on one of them an article appears. Currently when i try and parent a content object to another i just get a blank screen, i also tried to change article type to page but neather seems to work for me.

Here is the structure i want:

 

Course
    Getting started - page
    Topic1 - page
         Unit1 - page
          Unit2 - page
          Unit3 - page
    Topic2  - page
          Unit2 - page
          Unit3 - page
           Unit4 - page
 
 
Thanks  :)
Picture of Daryl Hedley
Re: Parent content objects to each other?
by Daryl Hedley - Thursday, 1 May 2014, 8:17 AM
 

Hey Robert,

I got a bit confused by the structure you're trying to create so I'll try my best to understand it and write it out below. 

First level menu:

Getting started

Topic 1

Topic 2

 

Under each Topic first level menu item you want three pages?

Just a heads up on editing JSON. It's important to remember that it is only contentObjects that can change form between menu items and pages. So articles are always articles, blocks are also blocks etc.

Once we've got the structure sorted out then I can help a bit more.

Thanks,

Daryl

Picture of Robert Drew Jeffrey
Re: Parent content objects to each other?
by Robert Drew Jeffrey - Thursday, 1 May 2014, 10:36 AM
 

Thanks a lot for the reply,

I will try and clarify what i mean :)

So the course page currently has about 5 content objects in, which are all pages.

When i click on one of them i want it to go to another screen with more content objects on that are also pages.

When i say pages i mean the boxes with a picture that you can click on that take you to an article.


SOOO

 

FIRST LEVEL

Getting started

unit 1

unit 2

unit 3

unit 4

gloassay

when you click on any unit i want a screen to show with more pages (so i would have to parent a content object to the unit 1 content object page?)

UNIT 1

topic 1

topic 2

topic 3

Cheers

Picture of Daryl Hedley
Re: Parent content objects to each other?
by Daryl Hedley - Thursday, 1 May 2014, 11:01 AM
 

Hey Robert,

So does each Unit have multiple topics?

I imagine in a tree structure it's like this

 

Getting started

Unit 1

    => Topic 1

    => Topic 2

    => Topic 3

Unit 2

    => Topic 1

    => Topic 2

    => Topic 3

Unit 3 

    => Topic 1

    => Topic 2

    => Topic 3

Unit 4

    => Topic 1

    => Topic 2

    => Topic 3

Glossary

 

Topics being pages which contain articles and the learning content.

Thanks,

Daryl

Picture of Robert Drew Jeffrey
Re: Parent content objects to each other?
by Robert Drew Jeffrey - Thursday, 1 May 2014, 11:40 AM
 

Correct!

Ok thats a much better way of explaining it :)

So at the moment iv a got all the units as content objects with type being page, i want the Topics to also be content objects with type page. I thought the way to do this would be to parent each topic to the relevant Unit, but nothing displays when i do this!

thanks alot for your help and quick replys :)

Picture of Daryl Hedley
Re: Parent content objects to each other?
by Daryl Hedley - Thursday, 1 May 2014, 1:50 PM
 

Hey Robert,

I think what you're missing is that some of the contentObjects need to be '_type': 'menu'. I've attached a mock JSON that hasn't been tested. When using this please make sure each contentObject has at least one article inside it. This hasn't been tested but you'll get in sight into building what you wanted.

Thanks,

Daryl

Picture of Robert Drew Jeffrey
Re: Parent content objects to each other?
by Robert Drew Jeffrey - Thursday, 1 May 2014, 3:00 PM
 

Awesome!,

Thankyou so much for your help :)

Robert