Posts

Showing posts from September, 2021

HubDb Simple PRev & next Pagination

{{ module.title }} {% set category = "&category=" ~module.category %} {% set table = hubdb_table_rows(module.hubdbtable_field , category) %} {# set the number of items per batch #} {% set batch_num = 6 %} {# set the number of pages #} {% if table|length % batch_num == 0 %} {% set number_of_pages = (table|length|divide(batch_num) %} {% else %} {% set number_of_pages = (table|length / batch_num) %} {% endif %} {# set the active batch #} {% if Query.page_num %} {% set page_num = Query.page_num %} {% else %} {% set page_num = 1 %} {% endif %} {% for row in table|batch(batch_num, '') %} {% if loop.index == page_num %} {% for innerRow in row %} {% if innerRow.name %} {{ innerRow.category }} {{ innerRow.name }} {{ innerRow.description }} Learn more ...

Embed Vimeo video in CMS

$(function() { var iframe = $('#player1')[0]; var player = $f(iframe); var status = $('.status'); // When the player is ready, add listeners for pause, finish, and playProgress player.addEvent('ready', function() { status.text('ready'); player.addEvent('pause', onPause); player.addEvent('finish', onFinish); player.addEvent('playProgress', onPlayProgress); }); // Call the API when a button is pressed $('button').bind('click', function() { player.api($(this).text().toLowerCase()); }); function onPause() { status.text('paused'); } function onFinish() { status.text('finished'); } function onPlayProgress(data) { status.text(data.seconds + 's played'); } }); div { margin-top: 3px; padding: 0 10px; } button { font-family: 'Helvetica Neue', Helv...

Remove Time from date In Rss or other global modules.