Discussions
Activity
Sign In
How it works
Newscoop Themes
images
Vote Up
0
Vote Down
mark casson
November 2012
Posts: 219
Member
hi
new custodian - 4.0.2
have created a new image size of 1000x500 for articles
some of the images are not as big as that, so how do i get it to use 600x400 instead or 500x333 etc
5 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
Petr Jasek
November 2012
Posts: 144
Member
hi mark,
in your theme folder there is a file theme.xml and inside there are renditions where you can modify it.
once you have it go to admin - configure - image rendering and click on reload renditions.
Vote Up
0
Vote Down
mark casson
November 2012
Posts: 219
Member
Hi petr
ive got the new size working fine
its just someone has sent a story will a picture that is only 700 x 600px size
my article shows 1000x500 so nothing shows
i need to know a way that makes the article show the next size down, 600x400
Vote Up
0
Vote Down
Petr Jasek
November 2012
Posts: 144
Member
i see. there is no good support but workaround exists:
{{ capture name="image" }}
{{ image rendition="big" }}
<img .../>
{{ /image}}
{{ /capture }}
{{ if ! trim($smarty.capture.image) }}
{{ capture name="image" }}
{{ image rendition="small" }}
<img .../>
{{ /image }}
{{ /capture }}
{{ /if }}
{{ $smarty.capture.image }}
Post edited by Petr Jasek at 2012-11-22 11:44:56
Vote Up
0
Vote Down
mark casson
November 2012
Posts: 219
Member
that works perfect
i had tried using {{ else }} etc but got nowhere
that needs to go in the manual
Vote Up
0
Vote Down
Daniel James
November 2012
Posts: 844
Member, Sourcefabric Team
Hi Mark,
> that works perfect
>
> i had tried using {{ else }} etc but got nowhere
>
> that needs to go in the manual
I've added a note on this to the 'Working with images' chapter of the
Newscoop 4.0 Cookbook.
Of course, the better solution is to tell your photographers to post
higher resolution images
:-)
Cheers!
Daniel
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339