Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I really like the blog app, but is there any way to limit it to only show posts from a particular user on a page? #54

Open
patrickjlee opened this issue Jan 1, 2025 · 3 comments

Comments

@patrickjlee
Copy link

patrickjlee commented Jan 1, 2025

I really like the blog app, but is there any way to limit it to only show posts from a particular user on a page please? I'm using Oqtane 6.0.0

@iJungleboy
Copy link
Contributor

Hi Patrick

You may have already noticed that the default setup supports an author-filter. If you click on the author, it will show you the posts of only that person.

So the data is there, the functionality is possible, but probably not 1:1 as you would need it.

My recommendations for you will differ, depending on your skill level, since there are many ways to skin this cat. A core question is also if you need it specifically for one user, if you need it for 3-5 users, or if you need it in a generic way (e.g. if you have a different module resulting in hundreds of pages, and each should find the author etc.

Could you describe your scenario a bit more?

@patrickjlee
Copy link
Author

Many thanks Daniel.

My scenario is that we are planning a site with hundreds and eventually thousands of users and we are allowing each one to have a personalised page (using the Personalizable feature of Oqtane pages). On that page we will allow them to write a blog, but their page should only show their own blog posts.

@iJungleboy
Copy link
Contributor

This is possible, but it's quite an advanced scenario which needs some work - so it's not out of the box.

The Blog App is currently a site-blog, where all authors can contribute to the same stream, use the same tags, and can also ghost-write (so they could select someone else to be the author).

I assume you want to isolate each user, so that they all have an independent experience and can't access (edit) other users posts, or that if another user creates a tag or category, it doesn't appear in the first users edit experience.

So it can be done, but would require some very advanced modifications. Probably 2-3 days or our experienced work, and my guess is it will take you quite a bit longer.

You would have to solve ca. these challenges:

  1. filtering by user (that's actually the easiest bit)
  2. restricting editing permissions to only the posts of each author
  3. possibly restricting / hiding the author choice and modifying the author-profile info to be different (since you don't want an author to select another author as the person having written the post)
  4. categories and tags should be isolated

So quite a few challenges. I'm not sure if the 2sxc blog would be the best choice to start from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants