News entry with more than one image?
Posted: Mon 8. Oct 2012, 16:53
Is this possible? And how?
Thanks in advance
Thanks in advance

The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
<!--NEWS_SETTINGS_START//-->
; how many news should be listed per row
news_per_row = 2
; teaser text rendered as <p></p> = p
; or just line break to <br> = br
news_teaser_text = br
; template for files - the same as used
; for content part files , default:
; files_template_list = default
; files_template_list = news.html
files_template_detail = news_detail.html
files_direct_download = 0
<!--NEWS_SETTINGS_END//-->
Code: Select all
<!--FILE_SETTINGS_START//-->
; this is formatted like WIN.INI
; please: do not use comments for value lines
icon_path = "img/icons/"
icon_name = "small_icon_{FILE_EXT}.gif"
; alternatively use "small_icon_pix.gif" for all images/files
thumbnail = 1
thumbnail_width = 165
thumbnail_height = 125
thumbnail_crop = 1
; lighbox_init [0|1] since V1.4.2 r354 available: Enable only when really needed
lightbox_init = 1
file_size_round = 1
file_size_space = " "
date_format = "%d.%m.%y"
set_locale = "de_DE@Euro"
<!--FILE_SETTINGS_END//-->
[TITLE]<h4>{TITLE}</h4>[/TITLE]
[SUBTITLE]<h5>{SUBTITLE}</h5>[/SUBTITLE]
[TEXT]{TEXT}[/TEXT]
<div style="margin-top: 15px; padding-top: 10px; border-top: 1px dotted #CCCCCC;">
<!--FILE_ENTRY_START//-->
<div class="fileEntry" style="float:left;padding:0px; margin:0px 6px 6px 0;">
[FILE_IMAGE_ELSE]<img src="{FILE_ICON}" alt="" border="0" />[/FILE_IMAGE_ELSE]
[FILE_IMAGE]
<div style="float: left; padding:5px; margin: 0px; border:1px solid #A58F70;">
<a href="img/cmsimage.php/500x480/{FILE_ID}.{FILE_EXT}" rel="lightbox[XYZ]" title="{FILE_TITLE}" target="_blank">
<img src="{FILE_IMAGE}" alt="{FILE_NAME}" border="0" /></a>
</div>
[/FILE_IMAGE]
</div>
<!--FILE_ENTRY_END//-->
</div>