draftdev / draftdev/writer-portal
Add a separate tab for "Published" articles
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
I was going through all my previous articles in an attempt to find all of my published pieces and realized there was no view to get all these links currently.
I was able work around this by going to https://portal.draft.dev/assignments?type=all and running the following in the Dev Tools console:
```
document.querySelectorAll('tr td:nth-of-type(1) .font-bold.text-sm').forEach((item) => {
if(item.parentNode.parentNode.parentNode.querySelector('td:nth-of-type(2) a')){
console.log(item.querySelector('a').text);
console.log(item.parentNode.parentNode.parentNode.querySelector('td:nth-of-type(2) a').href);
}
})
```
Which gave me a reasonable output:
```
How to Set Up WooCommerce Notifications
https://www.courier.com/guides/woocommerce-notifications/
Cultivating a remote culture that empowers your team
https://andela.com/insights/distributed/what-goes-into-building-a-successful-remote-culture/
Scalable WordPress Hosting for Developers
https://developer.wordpress.com/2022/09/26/scalable-wordpress-hosting-for-developers/
...
```
...but it would be nice if there was a separate tab/section where writers could see all of their published articles and easily pull links.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.