There should be a location_based boolean field on pages (#15) that defaults to false. It will be utilized in the tipoff/locations package and not be utilized at all if the application does not have that package installed.
If the boolean is true, then the tipoff/locations package will handle the Layout change for the page at that slug and will add the slug to the correct Markets & Locations routing structure.
The migration to add layouts to the database is not working. The migration is not inserting any data when I run the migrations in the tipoff/demo application.
The copyable field should also display the url as a clickable hyperlink that opens in a new tab. While sixlive/nova-text-copy-field has been valuable in serving as a prebuilt component, it does not support the Nova Text field native method of asHtml(), which would normally make it possible to pass in HTML to trigger the hyperlinking of field content.
Started under a custom fork under https://github.com/chx2/nova-text-copy-field, I will need to implement a working asHTML() method for any packages that will intend to use the copyable text field.
The Layout should define a model like Page (#15) or Market (TIPOFF/locations#41) and then define a blade file. The model can then have a belongsTo relationship with Layout and there can be a default set by the package in the config file for each model of that package that will be included in web routes. That blade template can be published and updated in the application and other variations could also be created both in the package and in the application (example: AMP validated layouts). Each entry in that model can then use the default layout or define its own.
I want the default routes to be added to this package with config options for adjusting based on the project. This will require controllers in the package and also view templates for each of the models.
There should be an option with Pages (#15) that allows a Page to redirect & route visitors through the Controller to the parent Page.
An example of a use case for this is with Pages that are created for Locations (TIPOFF/locations#42) where there is only 1 Location in a Market (TIPOFF/locations#41). In that case, I want to redirect the visitor to the parent Page (the Market page).
Could we limit the Nova Resource relationship to Layout (#60) to just show select options for those Layouts that have the same type as the current Nova Resource? For example, the Page (#15) resource should just show select options for Layouts that have the enum of Page:
When creating a new topic or series, while the resource seems to be created as intended, I receive the following error for both resources during the process corresponding to resource name:
If a Page (#15) has a relationship to Market (TIPOFF/locations#41) or Location (TIPOFF/locations#42), then the Slug can't be updated in Nova. They will be updated in the Nova resource for Market or Location and that change will be synced to the Page.
This package is the first one in the set of packages and probably the only one that needs to implement Sites model and add ''site_id'' to every table to allow MultiSite usage of this package in projects. There should be a default site with a data migration of it to the database.
I need to also think through an implementation of allowing pages & the post models to be added to multiple sites or for simplicity sake to just disallow that. I can think of quite a few instances where I would want the same page of each of the websites in the project.
We'll allow the project to handle the MultiSite routing code and can do that later and provide the necessary steps in a ReadMe file but shouldn't overcomplicate the code in this package for the many single site projects that use it.
Blog Posts should belong to a Series (#4) and have a cover Image (#1). They can also feature a Video (#2). Through the Series, they also belong to a main Topic (#3).
I would also like to keep track of pageviews which are pulled from Google Analytics (#7).
Similar to how WordPress handles "View" buttons on Posts, I would like for all of the resources in this package to have a "View" link in both the Nova Index and the Resource Show pages that is a simple ahref link to the path accessor of the resource. Here is a screenshot of what WordPress does:
YouTube takes it further and does a "Copy" button for the path to the resource that would be great on the resource Show page with the "View" Button next to it and the path as in their example:
This package will also have the option of restricted authorization for some blog Posts (#5). Primarily, they will be able to see an excerpt of the content and not be able to view Videos (#2) unless they are a subscriber.