# User Portfolio

**URL:** <https://meta.discourse.org/t/user-portfolio/156678>\
**Category:** Theme component\
**Tags:** official, user-portfolio\
**Created:** [July 3, 2020, 9:11am UTC](https://meta.discourse.org/t/user-portfolio/156678 "2020-07-03T09:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [May 12, 2023, 3:50pm UTC](https://meta.discourse.org/t/user-portfolio/156678/19 "2023-05-12T15:50:03Z")

</div>

Thanks for the feedback everyone !I’ve just made some updates to address some issues and add some features:

[https://github.com/discourse/discourse-user-portfolio/pull/12](https://github.com/discourse/discourse-user-portfolio/pull/12)

> [@Don](#):
>
> s that possible somehow to add more category to filter the portfolio? I try to add more tags but it not work for me. If I set up category: 0 and add more tags the portfolio gone empty.

More than 1 category isn’t easily possible at the moment (though we’re working on some features for this in Discourse in general so maybe someday) — but I did notice that it was only working for 1 tag (despite the setting input allowing multiple)… so this update allows multiple tags to be used to populate the portfolio.

> [@RyouTakeshi](#):
>
> One issue however, normally we’re able to filter through posts on the website by sorting them via creation date instead of reply date, utilizing the parameters for it: `?order=created`

I’ve added a setting for this called `portfolio_order` so now you can choose `created` as an option as well.

> [@carbonrich](#):
>
> With that flexibility in mind, **it would be amazing to be able to change the URL slug** (I’ve edited the title to Policies but the slug stays as `u/user/activity/portfolio`

I’ve added a setting called `portfolio_route_name` that will allow for this. Note that unless you know what you’re doing with URL encoding, it’s best to stick with a single word for this and avoid spaces and special characters.

> [@carbonrich](#):
>
> It would also be great if the `user_card_portfolio_link` was **hidden if the portfolio is empty**.

I looked into implementing this, but there’s not a great way to do it. To know if it’s empty we’d have to fetch topics whenever someone’s usercard is opened, which is a little bit of a heavy request for a usercard (a plugin could do this in a much more efficient way by adding a field to the user data server-side with a simple count of portfolio topics)

> [@carbonrich](#):
>
> he .portfolio-link in the .user-nav needs to be wrapped in a `<span>`, so that the label text is hidden for tablet/mobile along with the other user-nav entries, otherwise it just sits there like a 🍋

this has been fixed

---

_[View the full topic](https://meta.discourse.org/t/user-portfolio/156678)._
