Need Help Making a Simple Logo Image Selector in Dashboard

Permalink
This is NOT a job! I'm working on a theme that will have a back-end settings page in the dashboard. One of the things I'm trying to have is a simple image selector where you choose one image, and that image is displayed as a logo on a page.

Here is what my code on the dashboard single page looks like (so far):
<div class="ccm-module">
                           <?php echo t('<h3>Logo Image:</h3>')?>
                           <form method="post" action="<?php echo $this->action('logoimg')?>" id="ccm-single-pages-theme-logoimg">
                              <input type="text" name="logoimg" value="<?php echo $logoimg;?>"/>          
                              <div class="ccm-buttons">
                                 <a href="javascript:void(0)" onclick="$('#ccm-single-pages-theme-logoimg').get(0).submit()" style="float:left;" class="btn"><span><?php echo t('Save Logo')?></span></a>
                              </div>
                           </form>
                        </div>

This is for a text phrase. However, with this kind of form, how would I have an image selector that saves the selected image?

What code would I use in the controller? What code would I use to display it on a page?

PineCreativeLabs
 
JohntheFish replied on at Permalink Reply
JohntheFish
Have a look athttp://www.concrete5.org/documentation/developers/files/using-in-bl...

For examples, search the core code, or search some image or file related addons.