Skip to content

Add a separate tab for "Published" articles #39

@kkoppenhaver

Description

@kkoppenhaver

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions