Jump to content

Creating blog functions


olivetree
 Share

Recommended Posts

Hi

I'm currently building my website with PW (a few pages and templates) and I'm wondering what's a way to integrate a blog function with categories and tags so tha I'm not limited in terms of functions and I can expand my website. There are so many possibilities and ways to do this in PW.

What are your experiences or tips for me as a beginner to realise blog functions?

Many thanks

Link to comment
Share on other sites

Hi,
having made a few websites with blog/news or so parts, i would say that before chosing the way you'll do that with pw, there are a few question toi ask yourself
first one, probably the most important one when it comes to structure, will your articles belong to only one category or will they be allowed to belong to more (as soon as it is two, think n 🙂 kind of a way of life, one is one, two is n 🙂 )
the second one, how do you want to
- display the articles, lazy loading, pagination
- select the article by category, isotope (or equivalent) or url segment
- sub question, will you allow complex selections (articles belonging to more than one category at once, and so on...)

once you know the answer to those little questions it will be far easier to decide you pages structure in pw and/or the kind of fields you'll need to categorize your blog articles, actually there is no limit in pw, the only one you could run into is something you hadn't thought about before deciding the structure 🙂

have a nice day

  • Thanks 1
Link to comment
Share on other sites

Hi @olivetree,

my preferred structure is one template blog or news which contains children with the template post.
Inside this tree I have two trees for categories and tags.
Every post has two page references fields to reference one or multiple categories and tags.

So it would look like this:

  • Blog
    • Post 1
    • Post 2
    • Post 3
    • ...
    • Categories
      • Category 1
      • Category 2
      • Category 3
      • ...
    • Tags
      • Tag 1
      • Tag 2
      • Tag 3
      • ...

You could also use URL segments for shorter urls, f.e.: blog/categories/category1/ => blog/category1/
You can also enable a pagination or comments.

Of course you can choose a different structure if you want to. 😀

Regards, Andreas

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...