CMS MADE SIMPLE FORGE

Section Image

 

[#6025] What if there's a new page?

avatar
Created By: Lucas Culas (culas)
Date Submitted: 2011-01-19 16:29

Assigned To: Tapio Löytty (Stikki)
Resolution: Fixed
State: Closed
Summary:
What if there's a new page?
Detailed Description:
I'm using the section plugin to show images on pages/channels.

For the contact page, I've made the contact.jpg
For the about page, I've made the about.jpg

Now, I launch the website, giving control to the webmaster/client/customer. They
add a new page called: shop.. I did not make a shop.jpg so the webpage 'shop'
crashes..

Can there be a feature where 'if no image, then show default.jpg' ?

History

Comments
avatar
Date: 2011-01-19 16:41
Posted By: Tapio Löytty (Stikki)

Hi Lucas.

I thinked about it already and it is included in latest version.

use parameter: default_image

ie. {sectionimage image_path="uploads/images/headers"
default_image="default.jpg"}

default.jpg should be stored into same directory where other images remain.

It is possible i forgot add this option to help of sectionimage plugin, will
review this and if it is missing will add it immediatley

I hope this was what you were looking for.

Best regards

-Stikki- 
      
avatar
Date: 2011-01-19 17:01
Posted By: Lucas Culas (culas)

Ola Stikki,

Thank you for your fast reply. I downloaded the lastest version 0.6.1 and tested
it and it works.

By adding default_image="default.jpg" it works.


      
Updates

Updated: 2012-06-01 06:33
state: Open => Closed

Updated: 2011-01-19 16:41
resolution_id: => 7
assigned_to_id: 100 => 11306