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

$("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.

 
magpie replied on at Permalink Reply
How would I add the WYSIWYG editor to a textarea when dynamically adding slides? I guess I'd have to use some extra javascript to initiate the editor for each slide item? At the moment the editor does not load?