Enhance newsbox

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
Post Reply
Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Enhance newsbox

Post by Tata » Thu May 19, 2011 9:30 pm

Hallo, guys!
An idee again resulted from a webpage. There are used a couple of newsboxes with minimized posters linked to newsbox-source pages. But I would like the posters on these pages with larger dimensions. This feature could be included in newsbox function standardly. So that if any picture will be used on a News page, its dimension would be reduced if shown in a newsbox.
I can achieve this effect by creating two pages for each poster of course (one with content width as the width of the poster and one with the width of the newsbox as the width of the poster). But it is not very comfortable.
It would be nice if the newsbox function would automatically reduce the dimensions of any picture added on the News page depending on newsbox width. The text could be then placed above or below the picture in newsbox. If I set the value for an image in newsbox in the stylesheet, the height of the picture is not calculated.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: Enhance newsbox

Post by Gert » Fri May 20, 2011 11:46 am

Hi Tata,

set the width of the image to 100%, so it will be shown on the page big and in the newsbox small.

If you want to have a good quality of the images (posters), you have to provide 2 images (resized), a big one for the page and a "thumb" for the newsbox, and show the big image on page and the thumb in the newsbox. And that's not so easy.

And: That were comfortable only with image resizing and creating thumbs by upload. Such a function is not planned in the Core of CMSimple_XH.

It would be a nice idea for a plugin.
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Enhance newsbox

Post by Tata » Sat May 21, 2011 9:36 pm

Danke, Gert! Ich dachte nicht, dass es sogar so einfach geht. Es läuft genau, wie gewünscht jetzt http://www.rosnicka1.sk (meine neue Anstellung). Einiges validiert nicht 100%-lich, aber sonst bin ich fast zufrieden.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply