How to get Child page name and Url?
Permalink
I want to create blog list like this:
http://www.sitepoint.com/
In sitepoint On each pagelist item they have the category name clickable (javascript, mobile and so on)
I work on view.php and create custom template for "page list" block.
Site structure for example (the user must to choose category - on each page i have page-list block)
This works fine.
Now i want to create the page "see all" page (location: home -->blog).
I added page-list - How to find the child (relative to blog page) of a list item? (i cant use get current or parent page)
child = seo, mobile, javascript
** I dont use the topiclist block (I create the categories with the sitemap)
http://www.sitepoint.com/
In sitepoint On each pagelist item they have the category name clickable (javascript, mobile and so on)
I work on view.php and create custom template for "page list" block.
Site structure for example (the user must to choose category - on each page i have page-list block)
This works fine.
Now i want to create the page "see all" page (location: home -->blog).
I added page-list - How to find the child (relative to blog page) of a list item? (i cant use get current or parent page)
child = seo, mobile, javascript
** I dont use the topiclist block (I create the categories with the sitemap)
Thanks. This code work well.
The problem is i want in the "see all" list - to know the link/subject of each page category (the child) -
More example of this pattern (blog page have a list of "see all")
http://moz.com/blog
Each topic is clickable.
Its better aproach to solve this with topic-tree? ("THE PROBLEM" i dont like the topic tree auto URLs' - i want [home/blog/category/basic-seo] for example)
The problem is i want in the "see all" list - to know the link/subject of each page category (the child) -
More example of this pattern (blog page have a list of "see all")
http://moz.com/blog
Each topic is clickable.
Its better aproach to solve this with topic-tree? ("THE PROBLEM" i dont like the topic tree auto URLs' - i want [home/blog/category/basic-seo] for example)
@siton
I am not sure what you mean by "see all". Can you be more specific, please.
I am not sure what you mean by "see all". Can you be more specific, please.
- Create a page type to be used for your blog posts, for this example "Post".
- The blog Page List will filter by the "Post" page type, sort by "Most recent first", and location "Beneath this page" and "Include all child pages".
- On each category page, the Page List will filter by the "Post" page type, sort by "Most recent first", and location "Beneath this page".
- Create a custom template for the blog Page List.
- In the custom template, you will be getting and displaying the page list item parent page title and page link.
See attached template.