Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: What would be the best way to display news (listing) and only showing the (translated) news for the
Status | Resolved |
Add-on / Version | Publisher 1.6.3 |
Severity | |
EE Version | 2.9.3 |
Rob Post
May 12, 2015Trying to set-up a news listing, an excerpt of all news items. But only want to show those news excerpts for the chosen language. See my template below. However Even if I set the Publisher/Settings/Show content fallback (FE)? to No. It still outputs the news excerpts for all languages.
{preload_replace:channel="over_ons"}
<!-- ///////////////////////////////////////////////////////////////////////// Page start ////////////////////////////////////////////////////////////////////////// -->
{exp:channel:entries
channel="{channel}"
limit="1"
require_entry="yes"
status="open"
disable="{disable_default}"
cache="yes"
refresh="360"
publisher_cache="yes"
publisher_lang_id="{publisher:current_language_id}"
}
{exp:tracker:track
channel="{channel}"
entry_id="{entry_id}"
mode="image"
}
<section id="casestudy" class="project ">
<div class="main-border container">
<div class="row">
<div class="casestudy_text">
<h1>{title}{triggers:entries_title_archive}</h1>
<p> </p>
</div>
<p> {exp:ce_img:pair src="{images}" cache="yes" refresh="360" allow_scale_larger="yes"}<br />
<img src="{made}" width="1150" alt="{title}" class="img-responsive"><br />
{/exp:ce_img:pair}</p>
<p> </p>
</div>
<p> </p>
</div></section>
<p> <!-- Content --><br /></p><div class="container">
<p> </p><div class="content main-border5 row">
<p> </p><section class="content_body news col-xs-12 col-sm-12 col-md-9 col-lg-9">
<p> <!-- Triggers news breadcrumbs --><br />
</p><ul class="breadcrumb">
{exp:crumbly:breadcrumbs}
<li>
<a href="{breadcrumb_url}">
{breadcrumb_title}
</a>
</li>
{/exp:crumbly:breadcrumbs}
{if triggers:segment_4}
<li> {if triggers:month}{triggers:month}-{/if}{triggers:year}</li>
{/if}
</ul>
<p> </p><hr 0;">
<p> {/exp:channel:entries}</p>
<p> <!-- News articles --><br />
{exp:channel:entries<br />
channel="nieuws"<br />
dynamic="no"<br />
order="asc"<br />
limit="{article_limit}"<br />
paginate="bottom"<br />
disable="{disable_default}"<br />
cache="yes"<br />
publisher_cache="yes"<br />
publisher_lang_id="{publisher:current_language_id}"<br />
refresh="360"<br />
{triggers:entries}<br />
}</p>
<p> </p><article>
<p> </p><div>
<p> </p><div class="row">
<p> </p><div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<p> </p><h1><a href="{page_url}">{title}</a></h1>
<p> </p>
</div>
<p> </p>
</div>
<p> </p><div class="row">
<p> </p><div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<p> {if images}<br />
<a href="{page_url}" class="thumbnail"><br />
{exp:ce_img:pair src="{images}" width="260" height="160" crop="yes" cache="yes" refresh="360" }<br />
<img src="{made}" width="{width}" height="{height}" alt="{title}"><br />
{/exp:ce_img:pair}<br />
</a><br />
{/if}<br />
</p>
</div>
<p> </p><div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<p> </p><p>{body strip_tags="true" character_limit="320"}</p>
<p> </p><p class="leesmeer_button"><a href="{page_url}">{phrase:lees_artikel}</a></p>
<p> </p>
<p> </p><p class="news-tags">
<i class="fa fa-user"></i> {author}
<i class="fa fa-calendar"></i> {entry_date format="%j-%m-%Y"}
{exp:tag:tags
entry_id="{entry_id}"
type="weblog"
backspace="2"
orderby="clicks"
sort="asc"
limit="5"
}
{if tag_count =="1"}
<i class="fa fa-tags"></i>
{/if}
<a href="{path='archives/categorie/tag'}/{websafe_tag}"><span class="label">{tag}</span></a>
{/exp:tag:tags}
</p>
<p> </p>
</div>
<p> </p>
</div>
<p> </p>
</div>
<p> </p>
</article>
<p> </p><hr>
<p> {paginate}<br />
</p><div class="prev_next_links">
<p> {if previous_page}<br />
</p><div class="prev_link"><a href="{path='nieuws'}" title="{phrase:vorige_berichten}">{phrase:vorige_berichten}</a></div>
<p> {/if}</p>
<p> {if next_page}<br />
</p><div class="next_link"><a href="{path='nieuws'}" title="{phrase:volgende_berichten}">{phrase:volgende_berichten}</a></div>
<p> {/if}<br />
</p>
</div>
<p> {/paginate}</p>
<p> {/exp:channel:entries}</p>
<p> </p>
</section>
<p> </p><section class="subcontent col-xs-12 col-sm-12 col-md-3 col-lg-3">
<p> {embed="_includes/_contact" channel="over-ons"}</p>
<p> {social_media}</p>
<p> {news_archive}</p>
<p> </p>
</section>
<p> </p>
</div></div>
BoldMinded (Brian)
Try adding publisher_enable_persistence=”n” to the entries tag.
BoldMinded (Brian)
Closing b/c of no response in over a month.