install a custom view for existing block

Permalink
Anyone have a code example of installing a custom view for an already existing block from a separate package install?

in other words...I have a custom package, and I want to toss in a "styling" if you will of the page_list block. When the package installs, I want to add to root->blocks dir a "page_list" folder with my custom view.php and view.css for that block.

didn't know if there is a function to aid with this or if someone has an example I could peek at.

thanks

Chad

RadiantWeb
 
ScottC replied on at Permalink Reply
ScottC
treat any installed package as your site root.
RadiantWeb replied on at Permalink Reply
RadiantWeb
can you explain that more?

I don't want to "dupe" the block...I just want to have a "view" set of it, without having separate controllers and other sub-files.

I want to install a custom package...and "oh by the way..." here's a new take on this already existing C5 block.(without duplicating in within the package) just the view.php and the view.css
ScottC replied on at Permalink Reply
ScottC
sure

say I want to add a new page_list template for blog for whatever reason(maybe even override the exisiting one so it doesn't show future posts?)

id go into the blog app, go to blocks/page_list/templates/no_future_blog_posts/view.php and view.css there.

They don't get installed or anything, all packages have their paths checked when andrew wrote up the new block template stuff.