Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

$Content.LimitWordCountXML - help!


Go to End


1783 Views

Avatar
SalvaStripe

Community Member, 89 Posts

30 October 2008 at 3:13am

I have a site search in my site.
The code "$Content.LimitWordCountXML" works fine, BUT special characters like in german the "ä,ü,ö," or others like "©" were not correctly showen with LimitWordCountXML.

My site search uses this code (its just a part of the code):

###########################################

<% if Query %>
<p ><strong>Es wurde nach &quot;{$Query}&quot; gesucht</strong></p>
<% end_if %>

<% if Results %>
<ul id="SearchResults">
<% control Results %>
<li>
<a href="$Link">
<% if MenuTitle %>
$MenuTitle
<% else %>
$Title
<% end_if %>
</a>
<p>$Content.LimitWordCountXML</p>
<a class="mehr" href="$Link" title="Mehr erfahren...">Mehr erfahren...</a>
</li>
<% end_control %>
</ul>
<% else %>
<p>Es wurden keine Treffer ermittelt.</p>
<% end_if %>

###########################################

I ADD AN IMAGE SO U CAN SEE WHAT I MEAN!