Enable "Add entry to top" after block is created

Permalink Browser Info Environment
I created a block with repeatable items, installed it, and have it working on a site. However, I now realize I should have checked "Add new entry at the top". Is there a place in the code of the block or in the database table that I can enable this option? I am hoping not to have to recreate the block to achieve this!

Thank you!

1 Attachment

Type: Ticket
Status: Resolved
kspitzley
View Replies:
kspitzley replied on at Permalink Reply
kspitzley
Any chance I could get help on this?
ramonleenders replied on at Permalink Reply
ramonleenders
Hi there,

Could you perhaps attach the view.php file here, so I can manually edit it for you and send it back to you? You can compare the differences then and see what I did. I am currently not at my development machine, so can't exactly tell you what to do at this stage.

You could also load in the configuration of this block, give the block a new handle and check the checkbox, and then copy the view.php contents of this new block into the one you need it. Then delete this newly created block, since you don't need it anymore.

Let me know if that works for you!

Kind regards
Ramon
kspitzley replied on at Permalink Reply 1 Attachment
kspitzley
I've attached the whole block! Thank you so much! I tried really hard to figure it out myself but I'm just not good enough at this to get there!
ramonleenders replied on at Permalink Reply 1 Attachment
ramonleenders
Hi there,

I edited the file. It was actually auto.js, I was wrong with view.php, doh! Anyways, you can replace this auto.js file and refresh your page and it should work. If it doesn't, try a hard refresh in your browser, because it could be your browser cache still loading the old file!

Kind regards
Ramon
kspitzley replied on at Permalink Reply
kspitzley
In case this helps anyone - there is a line in auto.js around 128(ish):

$(sortableItems).append(hbTemplate(data)).sortable(sortableConfig);

change "append" to "prepend" to alter whether a new entry goes at the top or bottom of the list.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.5
Version Installed - 8.5.5
Database Version - 20201116182100

# Database Information
Version: 10.3.31-MariaDB
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
List Files From Set (1.1), Spacer (0.9.4)

# concrete5 Overrides
blocks/home_banner/edit.php, blocks/home_banner/auto.css, blocks/home_banner/view.php, blocks/home_banner/db.xml, blocks/home_banner/icon.png, blocks/home_banner/config.json, blocks/home_banner/controller.php, blocks/home_banner/view.css, blocks/home_banner/js_form/select2.sortable.js, blocks/home_banner/js_form, blocks/home_banner/view.js, blocks/home_banner/auto.js, blocks/home_banner/form.php, blocks/home_banner/add.php, blocks/home_banner/composer.php, blocks/home_banner, blocks/top_links/edit.php, blocks/top_links/view.php, blocks/top_links/db.xml, blocks/top_links/icon.png, blocks/top_links/config.json, blocks/top_links/controller.php, blocks/top_links/view.css, blocks/top_links/form.php, blocks/top_links/add.php, blocks/top_links/composer.php, blocks/top_links, blocks/small_icon_card/edit.php, blocks/small_icon_card/view.php, blocks/small_icon_card/db.xml, blocks/small_icon_card/icon.png, blocks/small_icon_card/config.json, blocks/small_icon_card/controller.php, blocks/small_icon_card/view.css, blocks/small_icon_card/view.js, blocks/small_icon_card/auto.js, blocks/small_icon_card/form.php, blocks/small_icon_card/add.php, blocks/small_icon_card/composer.php, blocks/small_icon_card, blocks/alert_banner/edit.php, blocks/alert_banner/view.php, blocks/alert_banner/db.xml, blocks/alert_banner/icon.png, blocks/alert_banner/config.json, blocks/alert_banner/controller.php, blocks/alert_banner/view.css, blocks/alert_banner/view.js, blocks/alert_banner/auto.js, blocks/alert_banner/form.php, blocks/alert_banner/add.php, blocks/alert_banner/composer.php, blocks/alert_banner, blocks/event_list/templates/home_page_list/view.php, blocks/event_list/templates/home_page_list/view.css, blocks/event_list/templates/home_page_list/view.js, blocks/event_list/templates/home_page_list, blocks/event_list/templates/event_page_list/view.php, blocks/event_list/templates/event_page_list/view.css, blocks/event_list/templates/event_page_list/view.js, blocks/event_list/templates/event_page_list, blocks/event_list/templates, blocks/event_list, blocks/autonav/templates/main_nav/view.php, blocks/autonav/templates/main_nav/view.css, blocks/autonav/templates/main_nav/view.js, blocks/autonav/templates/main_nav, blocks/autonav/templates, blocks/autonav, blocks/search/templates/lmrwd_search/view.php, blocks/search/templates/lmrwd_search/controller.php, blocks/search/templates/lmrwd_search/view.css, blocks/search/templates/lmrwd_search/view.js, blocks/search/templates/lmrwd_search, blocks/search/templates/spsa_search/view.php, blocks/search/templates/spsa_search/controller.php, blocks/search/templates/spsa_search/view.css, blocks/search/templates/spsa_search, blocks/search/templates, blocks/search, blocks/page_list/templates/related_projects/view.php, blocks/page_list/templates/related_projects/controller.php, blocks/page_list/templates/related_projects/view.css, blocks/page_list/templates/related_projects/view.js, blocks/page_list/templates/related_projects, blocks/page_list/templates/featured_news_news_page/view.php, blocks/page_list/templates/featured_news_news_page/view.css, blocks/page_list/templates/featured_news_news_page, blocks/page_list/templates/featured_news/view.php, blocks/page_list/templates/featured_news/view.css, blocks/page_list/templates/featured_news, blocks/page_list/templates/news_list/view.php, blocks/page_list/templates/news_list/controller.php, blocks/page_list/templates/news_list/view.css, blocks/page_list/templates/news_list, blocks/page_list/templates/news_list_news_page/view.php, blocks/page_list/templates/news_list_news_page/controller.php, blocks/page_list/templates/news_list_news_page/view.css, blocks/page_list/templates/news_list_news_page, blocks/page_list/templates/featured_project/view.php, blocks/page_list/templates/featured_project/view.css, blocks/page_list/templates/featured_project, blocks/page_list/templates/rfp_postings/view.php, blocks/page_list/templates/rfp_postings/view.css, blocks/page_list/templates/rfp_postings/view.js, blocks/page_list/templates/rfp_postings, blocks/page_list/templates/project_list_project_page/view.php, blocks/page_list/templates/project_list_project_page/controller.php, blocks/page_list/templates/project_list_project_page/view.css, blocks/page_list/templates/project_list_project_page, blocks/page_list/templates, blocks/page_list, blocks/button_block/edit.php, blocks/button_block/view.php, blocks/button_block/db.xml, blocks/button_block/icon.png, blocks/button_block/config.json, blocks/button_block/controller.php, blocks/button_block/view.css, blocks/button_block/auto.js, blocks/button_block/form.php, blocks/button_block/add.php, blocks/button_block/composer.php, blocks/button_block/view9821a.php, blocks/button_block, blocks/simple_icon_callout/edit.php, blocks/simple_icon_callout/view.php, blocks/simple_icon_callout/db.xml, blocks/simple_icon_callout/icon.png, blocks/simple_icon_callout/config.json, blocks/simple_icon_callout/controller.php, blocks/simple_icon_callout/view.css, blocks/simple_icon_callout/view.js, blocks/simple_icon_callout/auto.js, blocks/simple_icon_callout/form.php, blocks/simple_icon_callout/add.php, blocks/simple_icon_callout/composer.php, blocks/simple_icon_callout, blocks/calendar_event/templates, blocks/calendar_event, blocks/image_card/edit.php, blocks/image_card/view.php, blocks/image_card/db.xml, blocks/image_card/icon.png, blocks/image_card/config.json, blocks/image_card/controller.php, blocks/image_card/view.css, blocks/image_card/view.js, blocks/image_card/auto.js, blocks/image_card/form.php, blocks/image_card/add.php, blocks/image_card/composer.php, blocks/image_card, blocks/accordion/edit.php, blocks/accordion/view.php, blocks/accordion/db.xml, blocks/accordion/fonts/glyphicons-halflings-regular.woff, blocks/accordion/fonts/glyphicons-halflings-regular.eot, blocks/accordion/fonts/glyphicons-halflings-regular.ttf, blocks/accordion/fonts/glyphicons-halflings-regular.svg, blocks/accordion/fonts, blocks/accordion/icon.png, blocks/accordion/css_form/repeatable-ft.form.css, blocks/accordion/css_form/bootstrap.fonts.css, blocks/accordion/css_form/bootstrap-datetimepicker.min.css, blocks/accordion/css_form/bootstrap-datetimepicker-composer.css, blocks/accordion/css_form, blocks/accordion/config.json, blocks/accordion/form9921a.php, blocks/accordion/controller.php, blocks/accordion/view9921a.php, blocks/accordion/view.css, blocks/accordion/js_form/moment.js, blocks/accordion/js_form/handlebars-helpers9921a.js, blocks/accordion/js_form/bootstrap.min.js, blocks/accordion/js_form/handlebars-helpers.js, blocks/accordion/js_form/handlebars-v4.0.4.js, blocks/accordion/js_form/bootstrap-datetimepicker.min.js, blocks/accordion/js_form, blocks/accordion/view.js, blocks/accordion/config081421a.json, blocks/accordion/auto.js, blocks/accordion/form.php, blocks/accordion/add.php, blocks/accordion/composer.php, blocks/accordion/controller081421a.php, blocks/accordion, blocks/resources_list/edit.php, blocks/resources_list/view.php, blocks/resources_list/db.xml, blocks/resources_list/icon.png, blocks/resources_list/css_form/repeatable-ft.form.css, blocks/resources_list/css_form, blocks/resources_list/config.json, blocks/resources_list/controller.php, blocks/resources_list/view.css, blocks/resources_list/js_form/handlebars-helpers.js, blocks/resources_list/js_form/handlebars-v4.0.4.js, blocks/resources_list/js_form, blocks/resources_list/auto.js, blocks/resources_list/form.php, blocks/resources_list/add.php, blocks/resources_list/composer.php, blocks/resources_list, blocks/expand_collapse/edit.php, blocks/expand_collapse/view.php, blocks/expand_collapse/db.xml, blocks/expand_collapse/icon.png, blocks/expand_collapse/css_form/repeatable-ft.form.css, blocks/expand_collapse/css_form, blocks/expand_collapse/config.json, blocks/expand_collapse/controller.php, blocks/expand_collapse/view.css, blocks/expand_collapse/js_form/handlebars-helpers.js, blocks/expand_collapse/js_form/handlebars-v4.0.4.js, blocks/expand_collapse/js_form, blocks/expand_collapse/view.js, blocks/expand_collapse/auto.js, blocks/expand_collapse/form.php, blocks/expand_collapse/add.php, blocks/expand_collapse/composer.php, blocks/expand_collapse, blocks/doc_chapters/edit.php, blocks/doc_chapters/view.php, blocks/doc_chapters/db.xml, blocks/doc_chapters/icon.png, blocks/doc_chapters/css_form/repeatable-ft.form.css, blocks/doc_chapters/css_form, blocks/doc_chapters/config.json, blocks/doc_chapters/controller.php, blocks/doc_chapters/view.css, blocks/doc_chapters/js_form/handlebars-helpers.js, blocks/doc_chapters/js_form/handlebars-v4.0.4.js, blocks/doc_chapters/js_form, blocks/doc_chapters/auto.js, blocks/doc_chapters/form.php, blocks/doc_chapters/add.php, blocks/doc_chapters/composer.php, blocks/doc_chapters, blocks/calendar/templates/event_page/view.php, blocks/calendar/templates/event_page/controller.php, blocks/calendar/templates/event_page/view.css, blocks/calendar/templates/event_page/view.js, blocks/calendar/templates/event_page, blocks/calendar/templates/home_page_events/view.php, blocks/calendar/templates/home_page_events/controller.php, blocks/calendar/templates/home_page_events/view.css, blocks/calendar/templates/home_page_events, blocks/calendar/templates, blocks/calendar, blocks/callout_text_area/edit.php, blocks/callout_text_area/view.php, blocks/callout_text_area/db.xml, blocks/callout_text_area/icon.png, blocks/callout_text_area/config.json, blocks/callout_text_area/controller.php, blocks/callout_text_area/view.css, blocks/callout_text_area/form.php, blocks/callout_text_area/add.php, blocks/callout_text_area/composer.php, blocks/callout_text_area, blocks/full_width_color_banner/edit.php, blocks/full_width_color_banner/view.php, blocks/full_width_color_banner/db.xml, blocks/full_width_color_banner/icon.png, blocks/full_width_color_banner/config.json, blocks/full_width_color_banner/controller.php, blocks/full_width_color_banner/view.css, blocks/full_width_color_banner/form.php, blocks/full_width_color_banner/add.php, blocks/full_width_color_banner/composer.php, blocks/full_width_color_banner, themes/rpbcwd/full_with_banner.php, themes/rpbcwd/eventcalendar.php, themes/rpbcwd/view.php, themes/rpbcwd/page_theme.php, themes/rpbcwd/about.php, themes/rpbcwd/project.php, themes/rpbcwd/home8221a.php, themes/rpbcwd/js/app.js, themes/rpbcwd/js, themes/rpbcwd/images/circle-history.png, themes/rpbcwd/images/announce.png, themes/rpbcwd/images/dark-blue-wave.svg, themes/rpbcwd/images/orange-wave.svg, themes/rpbcwd/images/blue-wave.svg, themes/rpbcwd/images/bookmark.svg, themes/rpbcwd/images/Binoculars.jpg, themes/rpbcwd/images/yellow-wave.svg, themes/rpbcwd/images/IMG_0003.JPG, themes/rpbcwd/images/blue-wave-top-longtall.svg, themes/rpbcwd/images/right-arrow.svg, themes/rpbcwd/images/explorewatershed.JPG, themes/rpbcwd/images/calendar-event.svg, themes/rpbcwd/images/right-arrow-orange.svg, themes/rpbcwd/images/bookmark.png, themes/rpbcwd/images/right-arrow-white.svg, themes/rpbcwd/images/calendar.svg, themes/rpbcwd/images/search.svg, themes/rpbcwd/images/feat-story.svg, themes/rpbcwd/images/search-icon.svg, themes/rpbcwd/images/green-wave.svg, themes/rpbcwd/images/right-arrow-blue.svg, themes/rpbcwd/images/mist.jpg, themes/rpbcwd/images/feat-project.svg, themes/rpbcwd/images/Riley_wood.JPG, themes/rpbcwd/images/alert-icon.svg, themes/rpbcwd/images/blue-wave-top-long.svg, themes/rpbcwd/images, themes/rpbcwd/description.txt, themes/rpbcwd/elements/footer.php, themes/rpbcwd/elements/sub-header.php, themes/rpbcwd/elements/home-header.php, themes/rpbcwd/elements/header.php, themes/rpbcwd/elements/home-header8221a.php, themes/rpbcwd/elements, themes/rpbcwd/home.php, themes/rpbcwd/css/main090821a.css, themes/rpbcwd/css/main.css, themes/rpbcwd/css/normalize.css, themes/rpbcwd/css/main8221a.css, themes/rpbcwd/css, themes/rpbcwd/default.php, themes/rpbcwd/thumbnail.png, themes/rpbcwd/full.php, themes/rpbcwd

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
7.4.23

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, fileinfo, filter, ftp, gd, hash, iconv, imap, json, libxml, mbstring, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 512M
post_max_size - 100M
upload_max_filesize - 100M
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
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 - 7200
unserialize_max_depth - 4096

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 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.