Editing a block without it being removed from the site

Permalink Browser Info Environment
Hi.

I was wondering if there was a way to modify an existing block without that block being removed from pages it's already on in the site. I have a "Last Updated/Page Owner" block that I built and have added to over a thousand pages on my site, but now I want to make a couple of small changes to the block.

In my development site, I followed the instructions athttps://www.concrete5.org/marketplace/addons/block-designer/question... and was able to successfully rebuild the block, but it was removed from every page it was on. Is it at all possible to make changes to an existing block without having to re-add the block to every page it was on before?

Thanks,
John

Type: Pre-Sale
Status: Resolved
campbell
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

You can load the config back in, in another concrete5 project where this block type doesn't exist. Make your changes, save it, copy over the /application/blocks/your_block_handle folder and then:

- Go to your dashboard
- Click "Stacks & Blocks"
- Click "Block Types"
- Click your created Block Type name in the Installed Block Types section
- Click the "Refresh" button here (this will update your database table, most likely you deleted the block type at some point, and after changing and installing again, database changes won't be applied)
- Now try and save your block types again with the data that couldn't be saved

Afterwards of course delete the block type from your other (or local) installation where you don't need this block type.

Does that make sense?

Kind regards,

Ramon

concrete5 Environment Information

# concrete5 Version
Core Version - 8.4.2
Version Installed - 8.4.2
Database Version - 20180716000000

# concrete5 Packages
Accordion Menu (3.0), Block Designer (1.2.8), Call to Action Pro (1.0.0), Editor Comment (7.0.1), ExchangeCore LDAP Authentication (1.2.3), Formidable (Full Version) (2.0.2), Honest Websites Back To Top (0.9.4), HTML+PHP Code Block (1.0.1), Icons for Redactor (0.9.1), List files from set (1.0.10), Login/Logout Link (1.0), Login Page Background (0.9), Magic Tabs (7.0.1), Page Activity (0.9.3), Page List+ (1.3.4), Page Selector Attribute (2.0), PDF Viewer (1.0.1), Pending Pages (0.9.2), ProEvents (2.7.3.1), QuizMaker Pro (2.1.3), Raptorize (2.0), Search++ (0.1.12), Spacer (0.9.2), Supermint Theme (3.3.1.3), Thumb Gallery (1.0.3), Tokens (1.0.0)

# concrete5 Overrides
blocks/expire_six/add.php, blocks/expire_six/composer.php, blocks/expire_six/config.json, blocks/expire_six/controller.php, blocks/expire_six/db.xml, blocks/expire_six/edit.php, blocks/expire_six/form.php, blocks/expire_six/icon.png, blocks/expire_six/view.php, blocks/expire_six, blocks/expire_three/add.php, blocks/expire_three/composer.php, blocks/expire_three/config.json, blocks/expire_three/controller.php, blocks/expire_three/db.xml, blocks/expire_three/edit.php, blocks/expire_three/form.php, blocks/expire_three/icon.png, blocks/expire_three/view.php, blocks/expire_three, blocks/last_update_page_owner/add.php, blocks/last_update_page_owner/composer.php, blocks/last_update_page_owner/config.json, blocks/last_update_page_owner/controller.php, blocks/last_update_page_owner/db.xml, blocks/last_update_page_owner/edit.php, blocks/last_update_page_owner/form.php, blocks/last_update_page_owner/icon.png, blocks/last_update_page_owner/view.php, blocks/last_update_page_owner, blocks/user_avatar/add.php, blocks/user_avatar/composer.php, blocks/user_avatar/config.json, blocks/user_avatar/controller.php, blocks/user_avatar/db.xml, blocks/user_avatar/edit.php, blocks/user_avatar/form.php, blocks/user_avatar/icon.png, blocks/user_avatar/view.php, blocks/user_avatar, blocks/user_photo/add.php, blocks/user_photo/composer.php, blocks/user_photo/config.json, blocks/user_photo/controller.php, blocks/user_photo/db.xml, blocks/user_photo/edit.php, blocks/user_photo/form.php, blocks/user_photo/icon.png, blocks/user_photo/view.php, blocks/user_photo, blocks/expire_twelve/add.php, blocks/expire_twelve/composer.php, blocks/expire_twelve/config.json, blocks/expire_twelve/controller.php, blocks/expire_twelve/db.xml, blocks/expire_twelve/edit.php, blocks/expire_twelve/form.php, blocks/expire_twelve/icon.png, blocks/expire_twelve/view.php, blocks/expire_twelve, elements/page_controls_footer.php, authentication/concrete/form.php, authentication/concrete, single_pages/account/edit_profile.php, single_pages/account, tools/pages/preview_version.php, tools/pages

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.6 (Red Hat Enterprise Linux) PHP/7.1.8

# Server API
apache2handler

# PHP Version
7.1.8

# PHP Extensions
apache2handler, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 3000
memory_limit - 512M
post_max_size - 500M
sql.safe_mode - Off
upload_max_filesize - 500M
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 57600

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.