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   1237 Views

Avatar
WebSpilka

Community Member, 83 Posts

28 July 2008 at 6:21pm

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

Forum Moderator, 5513 Posts

28 July 2008 at 6:38pm

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
WebSpilka

Community Member, 83 Posts

28 July 2008 at 6:55pm

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
WebSpilka

Community Member, 83 Posts

29 July 2008 at 12:52am

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