Capturing content: images

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Capturing content: images

Post by wmdvanzyl »

I am using http://purecss.io/layouts/gallery/ from the Pure framework as an example. I have converted that into a CMSMS theme using the menu manager, templates and style-sheets.

But what if i wanted to allow end users to control the images that were displayed? At the moment those images are hard-coded in the template.

Code: Select all

<div class="photo-box u-1 u-med-1-3 u-lrg-1-4">
                <a href="http://www.dillonmcintosh.tumblr.com/">
                    <img src="http://24.media.tumblr.com/d6b9403c704c3e5aa1725c106e8a9430/tumblr_mvyxd9PUpZ1st5lhmo1_1280.jpg"
                         alt="Beach">
                </a>
    
                <aside class="photo-box-caption">
                    <span>by <a href="http://www.dillonmcintosh.tumblr.com/">Dillon McIntosh</a></span>
                </aside>
            </div>
I could create a capture for each of those blocks and then use the WYSIWYG editor to include the images, but that got me thinking...

Isn't there a way to just capture an image? A capture that would just add a browse button to the back-end and i could click that and select the image?

Thanks for your time.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Capturing content: images

Post by velden »

Module GBFilePicker could do that.

Example:

Code: Select all

{content_module block="filepicker_block_4" module="GBFilePicker" assign="image4" label="Logo rechts onder" mode="browser" media_type="image" dir="images"}
Or the built-in tag {content_image}

Use CGSmartImage module to make resize the images to required dimensions.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Capturing content: images

Post by calguy1000 »

<cough>{content_image}</cough> the documentation for which is built into your installation, you don't even need to go to an external website.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: Capturing content: images

Post by wmdvanzyl »

calguy1000 wrote:<cough>{content_image}</cough> the documentation for which is built into your installation, you don't even need to go to an external website.
Is there an emoticon for embarrassment? :-X
Post Reply

Return to “Layout and Design (CSS & HTML)”