drewroberts / blog

📝 Laravel package for my opinionated style of adding blog posts to Laravel projects
MIT License
2 stars 4 forks source link

Add Nova View & Copy Path Buttons #88

Closed chx2 closed 3 years ago

chx2 commented 3 years ago

Page

Post

Series

Topic

Closes #87

@drewroberts I added series and topic as well. Let me know if I don't need to make buttons for them for whatever reason.

chx2 commented 3 years ago
Screen Shot 2021-04-17 at 2 23 21 PM

@drewroberts by setting these up as actions, the view inside a resource is a little wonky. If we want to have a 'preview' link there, it's generated at the top and requires selecting of the 'view' action to perform the redirect.

While I do intend on making a dedicated nova field for the copyable link, it will be a less obvious to find the 'preview' link when viewing the individual resource. I could make a dedicated text field for the link if that works better.

drewroberts commented 3 years ago

I don't think we need a "Preview" link, let's just do the "View" links.

chx2 commented 3 years ago

I have this pretty much ready to go, in terms of how to predict urls, how is that done? I made the assumption that

drewroberts commented 3 years ago

All of these models have a path attribute that should be used.

drewroberts commented 3 years ago

@chx2 Is this ready to merge?

chx2 commented 3 years ago

@drewroberts Yes