Jump to content

Archived

This topic is now archived and is closed to further replies.

thoinayezine

Docker

Recommended Posts

thoinayezine

How to make a page like Doc page on demo site?

 

I used Docker but when i click on the link on the left the content not load on the right. it link to different page.

 

http://nailsbuilder.com/help/

 

Thanks

Share this post


Link to post
Share on other sites
Danny

Hi,

 

The Docker section has inline documentation on the settings for the section, which explain how to use it.

 

Using Docker is simple. Usually, it requires two steps.
 
1. Docker uses a custom post type of your choosing. So you probably want to use a plugin to create a custom post type and select it in Docker options.
 
2. You will need to add Docker to both its root page and to the template for the custom post type you have created.
 
So you need to create a custom post type using a plugin such as Types or Custom Post Type UI.
This Custom Post Type can be named anything such as Help or Documentation etc..
When that is created, you will have a new menu panel in your WordPress admin dashboard.
Now create some new posts for that Post type
Then go to your page for that post type and add the Docker section, do the same for the individual post type page.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thoinayezine

Ok,

I had install the Custom Post Type UI

 

1. I create the Post Type Name Help

2. create post name Salon Theme

3. add Help page and drag the docker to the template

4.Select Post type--->Help

5. It show up on help page

 

http://nailsbuilder.com/help/

 

This is the demo page http://themes.pagelines.com/dms/?dobar=1

 

But when click on the post name one the left hand side it go to different page.  It suppose to display on the right side (like on demo help/doc page) but it not.

 

What Am I missing here?

Share this post


Link to post
Share on other sites
Danny

Your Custom Post Type isn't help, as you mentioned in #2 your created custom post type is called Salon Theme.

 

Can you provide a screenshot of your Docker settings (all of them please) and also your custom post type settings please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thoinayezine
Danny

OK, what you have is correct, the only issue is, you haven't added the Docker section to your individual Help post type page i.e. replace the PostLoop section on your Salon Theme page with Docker.

 

So replace PostLoop on this page - http://nailsbuilder.com/help/salon-theme/ with Docker.

 

This should resolve your issue.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thoinayezine

Hi Danny,

 

I add the docker section to individual custom post type but it still link to another page with sidebar

 

check it out  http://nailsbuilder.com/help/

Share this post


Link to post
Share on other sites
Danny

You need to remove the sidebar, once that is removed Docker will be setup correctly.

 

Basically, when you create a custom post type which you have called Help, you add your posts to the Help post type instead of using the standard WordPress posts or pages.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
thoinayezine

Danny,

 

I still see it not set up correctly.  If it set up correctly when i click on Help page the should be post on title on the left, content on the right.

As of now when i click on Help page it show up post title on the left and the word HELP on the right.

 

http://nailsbuilder.com/help/

 

I still don't get it correct yet

Share this post


Link to post
Share on other sites
Danny

I am not sure what you mean, what do you want to be displayed on your help page ? As that isn't a page, it's an archive for your custom post type Help.

 

If you view the DMS demo, you will see that on the documentation archive page, we do not use the Docker section, as there is no need - http://themes.pagelines.com/dms/documentation/

 

Docker works for your actual custom post types and not the archive page itself. How could it, as it is an archive of all your Help posts, so it can not show you a specific post. If that makes sense.

 

What you will want to do is do what we have done on our demo and link to the first item in from your custom post.

 

If you view our demo, you will notice that the URL for the docs in the menu is actually this - http://themes.pagelines.com/dms/documentation/requirements/

 

What you do are doing is linking to this instead - http://themes.pagelines.com/dms/documentation/requirements/

 

So instead of linking to your custom post types archive page, link to the first item in your Docker menu.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hansonexperience

I am not sure what you mean, what do you want to be displayed on your help page ? As that isn't a page, it's an archive for your custom post type Help.

 

If you view the DMS demo, you will see that on the documentation archive page, we do not use the Docker section, as there is no need - http://themes.pagelines.com/dms/documentation/

 

Docker works for your actual custom post types and not the archive page itself. How could it, as it is an archive of all your Help posts, so it can not show you a specific post. If that makes sense.

 

What you will want to do is do what we have done on our demo and link to the first item in from your custom post.

 

If you view our demo, you will notice that the URL for the docs in the menu is actually this - http://themes.pagelines.com/dms/documentation/requirements/

 

What you do are doing is linking to this instead - http://themes.pagelines.com/dms/documentation/requirements/

 

So instead of linking to your custom post types archive page, link to the first item in your Docker menu.

 

Danny I am also looking into the possibilities of docker. How did you manage to get an custom post type archive? Where can I install or implement that?

Share this post


Link to post
Share on other sites
Danny

hansonexperience - When you create a custom post type, the archive page is automatically created. There is nothing that needs installing or implementing. Lets imagine you have created a custom post type called Movies, to view your Movies archive you use the name of the post type in your URL (if you have changed your permalinks to a prettier structure such as post name) mywebsite.com/movie.

 

If you were to drag and drop Docker onto your CPT archive all that will happen is, the Docker sidebar will display all your CPT posts and the right hand column where content should be will be empty, as it doesn't work with archives. 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hansonexperience

Danny right, but how do i get it visible on a page? Like on the page you mentioned.

Share this post


Link to post
Share on other sites
Danny

When you say "visible on a page? Like on the page you mentioned." are you referring to the archive page ? If so, I mentioned in my post above that Docker can not be populated on an archive page. All that will display is a link to the post itself, you will need to use WP-Content/PostLoop section.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny

I answered your question in my post above, I stated at the end that in-order to display your posts on an archive page, you will need to use the WP-Content/PostLoop section.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hansonexperience

Danny ah but then it shows all the posts and not just the docker posts? Right?

Share this post


Link to post
Share on other sites
Danny

Yeah, but if you're using a custom post type, it will only show your custom post type posts, like it does on the Documentation example. That is a custom post type called Documentation.

 

Also, can you please refrain from @mentioning me, as there is no need to do so. I am the only one replying to your topic and I receive emails every time someone does.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hansonexperience

Ah sorry!  

I do not get it. I use both. So ordinary posts and a custom post type. On my blog I want the show of course the blogs and on the documentation page I want to show the custom post type posts. When I use wp-content/post loop I also get the normal posts on the documentation post.

Share this post


Link to post
Share on other sites
Danny

If you're using a custom post type, it is not possible to display another post types posts in a custom post type archive page using the WP-Content/PostLoop. The WP-Content/PostLoop section will only display the posts for that post type.

 

So I am going to need to know exactly how you have setup your site. As I have recreated the documentation demo without any issue. All I have done is the following:

 

1. Created a custom post type and called it Docs

2. Created some posts in my Docs post type

3. Gone to my docs archive page and added the WP-Content/PostLoop section to the page. Which displays all docs posts.

4. I then click on a Docs post, add Docker to the page replacing the WP-Content/PostLoop section.

5. I then configure Docker to use the Docs post type and thats it.

 

 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hansonexperience

But where is the custom post archive page? In your case the docs archive page? I cannot find that archive page.

Share this post


Link to post
Share on other sites
Danny

Haven't I already mentioned this in a previous post?

 

The archive is generated by WordPress when you create your custom post type. If you're using pretty permalinks i.e. /%postname%/ then you can access your custom post type archive using its name.

For example, lets say you have a CPT called Movies, you can visit its archive page by adding the following to your sites URL.

 

/movies

 

If you had a sports CPT then the URL would be /sports like so:

 

http://mywebsite.com/movies

http://mywebsite.com/sports

 

I recommend you visit the WordPress codex and read through the Post type documentation for more information.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
hansonexperience

Ah right. Done! Thx for your great help! Much appreciated.

Share this post


Link to post
Share on other sites
Danny

No problem and yeah, custom post types can be very confusing :D


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×