Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Use HTML in administration system

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

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

Page: 1
Go to End
Author Topic: 1089 Views
  • fiord
    Avatar
    Community Member
    79 Posts

    Use HTML in administration system Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Use HTML in administration system Link to this post

    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?

  • fiord
    Avatar
    Community Member
    79 Posts

    Re: Use HTML in administration system Link to this post

    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 %>

  • fiord
    Avatar
    Community Member
    79 Posts

    Re: Use HTML in administration system Link to this post

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

    1089 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.