Local site /blocks/name/ overriding /package/name/blocks/name/

Permalink
Hi,

I want to make some updates a block for a package I purchased (extended_form). My understanding of the way C5 works is as follows:

1) Root site 'blocks/extended_form/' folder = first priority
2) '/packages/extended_form/blocks/extended_form' = second priority

Yet, when I copy the appropriate block locally to the website, and then make my modification... the modifications don't get displayed.

What am I doing wrong?

Thanks!

 
jshannon replied on at Permalink Reply
jshannon
In theory, yes.

Can you provide more detail? What exactly are you trying to override? The view? The controller? etc?

James
Kurieuo replied on at Permalink Reply
Sure, trying to override /packages/extended_form/blocks/extended_form/form_setup_html.php with /blocks/extended_form/form_setup_html.php.

Have tried copying the file individually, and whole blocks folder and making the changes.

Doesn't seem to work.
jordanlev replied on at Permalink Reply
jordanlev
That is a tricky one -- the form_setup_html.php file is not a standard Concrete5 file and hence the C5 system doesn't know anything about overriding it.

What you need to do is also override the "add.php" and "edit.php" files which are the ones that include the form_setup_html.php file.

I think you may just be able to copy those 2 files to the same directory you copied the form_setup_html.php file, and hopefully it just magically works. If not, try posting back here (or if you don't get a good response here you can always ask the developer of that addon how to do it -- there's a support forum if you click the "Support" link in the sidebar of the addon's marketplace page).