Extending the Image Slider Block
Permalink
Hi,
I'm trying to extend the image slider block built by the core team:http://www.concrete5.org/marketplace/addons/image_slider/...
I need to include a page selector input field instead of the simple url textbox.
Edit:
Searched the forum a bit and found a useful link:
http://www.concrete5.org/community/forums/customizing_c5/adding-pag...
Added this code to auto.js addNewImage function
And this into the image_row_include.php file
Still testing but seems to have done the trick.
I'm trying to extend the image slider block built by the core team:http://www.concrete5.org/marketplace/addons/image_slider/...
I need to include a page selector input field instead of the simple url textbox.
Edit:
Searched the forum a bit and found a useful link:
http://www.concrete5.org/community/forums/customizing_c5/adding-pag...
Added this code to auto.js addNewImage function
$("a.ccm-sitemap-select-page").unbind(); $("a.ccm-sitemap-select-page").dialog(); $("a.ccm-sitemap-select-page").click(function() { ccmActivePageField = this; });
And this into the image_row_include.php file
<div style="margin-top:4px"> <?php echo t('Link URL (optional)')?>: <div class="input"> <?= Loader::helper('form/page_selector')->selectPage('url[]', $imgInfo['url']); ?> </div>
Still testing but seems to have done the trick.