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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1904 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!