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

Add a separate tab for "Published" articles #39

Open
kkoppenhaver opened this issue Dec 15, 2022 · 0 comments
Open

Add a separate tab for "Published" articles #39

kkoppenhaver opened this issue Dec 15, 2022 · 0 comments

Comments

@kkoppenhaver
Copy link

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.

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

1 participant