Re: LofSlider and LofSliderNews - both new since 1.4.7 r410
Posted: Fri 21. Jan 2011, 08:48
i think the hidden images must be placed outside the visible area.
der hausmeister
der hausmeister
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/
Hat das vielleicht irgend jemand schon mal als Template für den CP TEASER umgesetzt, ich habe mal damit angefangen, aber bei mir kommen Fehler. Die ebene die den Titel ausgeben soll kommt nur auf dem ersten Bild.Oliver Georgi wrote:I have tested it with Images <special> only. But based on this work it should run with teaser or other content too. If someone needs help, remember you can hire me.
Code: Select all
<!--IMAGE_SETTINGS_START//-->
<!--IMAGE_SETTINGS_END//-->
<!--TEASER_HEAD_START//-->
[TITLE]<h3>{TITLE}</h3>[/TITLE]
[SUBTITLE]<h4>{SUBTITLE}</h4>[/SUBTITLE]
<!--[TEXT]{TEXT}[/TEXT]-->
<div class="lof-slidecontent lof-snleft">
<div class="lof-main-outer">
<ul class="lof-main-wapper">
<!--TEASER_HEAD_END//-->
<!--TEASER_ENTRY_START//-->
<!-- {IMAGE_NAME} -->
<li>
<a href="{ARTICLELINK}"><img src="img/cmsimage.php/400x300x1/{THUMB_ID}"[TITLE] title="{TITLE}"[/TITLE] alt="[ALT]{ALT}[/ALT]" border="0"/></a>
<div class="lof-main-item-desc"><div[PRIO] class="prio{PRIO}"[/PRIO]>
<h3><a href="{ARTICLELINK}">{TITLE} »</a></h3></div>[SUBTITLE] <b>_{SUBTITLE}.</b>[/SUBTITLE]
<div class="lof-nav-item">
<img src="img/cmsimage.php/100x60x1/{THUMB_ID}" alt="" />
[TITLE]<h3>{TITLE}</h3>[/TITLE]
{SUBTITLE}
</div>
</li>
<!--TEASER_ENTRY_END//-->
<!--TEASER_SPACER_START//--><!--TEASER_SPACER_END//-->
<!--TEASER_FOOTER_START//-->
</ul>
</div>
</div>
<!-- CSS: {TEMPLATE}lib/lofslider/css/lofslider-style.css -->
<!-- CSS:
/* Hide the nav item element by default - we use JS to move it at right place */
.lof-nav-item {display:none;}
-->
<!-- JS: dimensions.min --><!-- JS: easing.min --><!-- JS: mousewheel.min --><!-- JS: {TEMPLATE}lib/lofslider/lofslider.js -->
<!-- JS:
// build lofslider navigational element
jQuery(document).ready(function(){
var lof_options = {
interval: 4500,
easing: 'easeInOutSine',
duration: 1200,
auto:true
};
// iterate all nav items "div.lof-nav-item
$('ul.lof-main-wapper').each(function(){
// append lof navigator wrapper and lof navigator element
var nav_wrapper = $('<div class="lof-navigator-outer"><'+'/div>').insertAfter( $(this).parent() );
var nav = $('<ul class="lof-navigator"><'+'/ul>').appendTo( nav_wrapper );
// now iterate all and remove it from DOM the same step
var navitems = $(this).find('li div.lof-nav-item').detach();
navitems.each(function(){
// append it to navigator element
$('<li><div>' + $(this).html() + '<'+'/div><'+'/li>').appendTo(nav);
});
$(this).parent().parent().lofJSidernews(lof_options);
});
});
-->
<!--TEASER_FOOTER_END//-->
In your template change the line:baklavoni wrote: Opacity ON - linking is wrong (only last link is active for all entries)
Opacity OFF - linking OK
Code: Select all
<div class="lof-main-item-desc">
to
<div class="lof-main-item-desc" style="z-index:1;">
Code: Select all
<p><a class="readmore" href="{URL}"{URL_TARGET}>[URL_TEXT]{URL_TEXT}[/URL_TEXT][URL_TEXT_ELSE]Read more...[/URL_TEXT_ELSE]</a></p>
Code: Select all
<!--TEASER_HEAD_START//-->
<div id="lofslidecontent45" class="lof-slidecontent" style="width:730px; height:340px;">
<div class="preload"><div></div></div>
<div class="lof-main-outer" style="width:730px; height:340px;">
<div onclick="return false" href="" class="lof-previous">Previous</div>
<ul class="lof-main-wapper"><!--TEASER_HEAD_END//-->
<!--TEASER_ENTRY_START//-->
<li>
[IMAGE]{IMAGE}[/IMAGE]
<div class="lof-main-item-desc">
<h3><a href="{ARTICLELINK}">/ {TITLE} /</a></h3>
<p>{SUMMARY}</p>
<p><a class="readmore" href="{ARTICLELINK}">Read more...</a></p>
</div>
</li>
<!--TEASER_ENTRY_END//-->
<!--TEASER_SPACER_START//-->
<!--TEASER_SPACER_END//-->
<!--TEASER_FOOTER_START//-->
</ul>
<div onclick="return false" href="" class="lof-next">Next</div>
</div>
</div>
<!--TEASER_FOOTER_END//-->