Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2013-03-26 10:21:12
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
HTML in link list
Apologies if this is a stupid question but i’ve trawling google and the forum and the docs, and cant see an answer to this. Im trying to use HTML to format the description field in the link list, however it doesn’t seem to work. All I want to do is put <BR> tags in to split some lines.
Am I missing something?
Thanks.
Offline
Re: HTML in link list
Can you post your page markup and your link form?
Offline
Re: HTML in link list
can you post the code you use?
Offline
#4 2013-03-26 10:37:08
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: HTML in link list
Sure…
<txp:linklist category="useful-contacts" wraptag="ul" break="li" class="usefullinks">
<strong><txp:link_name /></strong>
<txp:link_description />
<txp:link />
</txp:linklist>
Offline
Re: HTML in link list
Hi
then when you add a code like this:
<txp:linklist category="useful-contacts" wraptag="ul" break="li" class="usefullinks">
<strong><txp:link_name /></strong><br />
<txp:link_description /><br />
<txp:link /><br />
</txp:linklist>
The br are not rendered?
Offline
#6 2013-03-26 11:13:55
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: HTML in link list
No, misunderstanding i think, its the text that gets entered in Textpatterns admins side, in discription box that ignores HTML, it prints it out as text.
Offline
Re: HTML in link list
Ah you have to explain better next time ;)
looking at txp documentation
you can see that <txp:link_description /> has an escape attribute thta is default to html then change your code like that should work
<txp:linklist category="useful-contacts" wraptag="ul" break="li" class="usefullinks">
<strong><txp:link_name /></strong>
<txp:link_description escape=""/>
<txp:link />
</txp:linklist>
Offline
#8 2013-03-26 11:47:14
- txpdevcoder
- Member
- Registered: 2012-06-07
- Posts: 58
Re: HTML in link list
Thanks. Its weird that they made this box do the opposite to what the Write page does. Weird, thanks though ill give i t ago.
Offline
Pages: 1