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.

Archive

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

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

Use HTML in administration system


Reply

4 Posts   1173 Views

Avatar
fiord

28 July 2008 at 6:21pm Community Member, 79 Posts

Hi
I want to use HTML tag

<br />

in my page title
but I get the following result http://bayka.kiev.ua/-7/ and see images in atach
   
as possible to overcome this problem?

Avatar
Willr

28 July 2008 at 6:38pm Forum Moderator, 5511 Posts

Its because the title fields as just raw text and not parsed as HTML at all. You might be able to overcome this by sending that via a XML parser - http://doc.silverstripe.com/doku.php?id=escape-types or try calling $Title.XML?

Avatar
fiord

28 July 2008 at 6:55pm Community Member, 79 Posts

but I try $Title.XML and nothing change

<% control Children %>
<div class="catIt">
<div class="catPhoto">$Photo.SetWidth(140)</div>
<div class="catText">
<h3>$Title.XML</h3>
<% if Year %>Год: <span>$Year</span><br /><% end_if %>
<% if Categor %>Категория: <span>$Categor</span><br /><% end_if %>
<% if Old %>Возраст: <span>$Old</span><br /><% end_if %>
<% if Region %>Регион: <span>$Region</span><br /><% end_if %>
<% if Country %>Страна: <span>$Country</span><br /><% end_if %>
<% if Manuf %>Производитель: <span>$Manuf</span><br /><% end_if %>
<% if Pack %>Упаковка: <span>$Pack</span><br /><% end_if %>
<% if V %>Объем: <span>$V</span><br /><% end_if %>
<% if Spirit %>Крепость: <span>$Spirit</span><br /><% end_if %>
<% if Nal=1 %>Наличие: <span class="nal">Нет в наличии</span><br /><% end_if %>
<% if Cena %><div class="catcena">Цена:&nbsp;<span>$Cena</span>&nbsp;грн.</div><% end_if %>
</div>
</div>
<% if EvenOdd = even %>
<div class="catclear"><!----></div>
<% end_if %>
<% end_control %>

Avatar
fiord

29 July 2008 at 12:52am Community Member, 79 Posts

$Title.XML dont help me, but $Title.JS help me
hank you very much for indication of direction ))