762 Posts in 312 Topics by 291 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 405 Views |
-
Customising RandomContent widget - show first paragraph only

24 June 2012 at 7:12pm
Hi, I made an change to the RandomContent widget so that it would show only the first paragraph of a page.
The original code
<div class="RandomContentWidget">
<% control RandomContent %>
$Content
<% end_control %>
</div>Updated to show only the first paragraph of each page
<div class="RandomContentWidget">
<% control RandomContent %>
<p>$Content.FirstParagraph <a href="$Link" title="Read more on "{$Title}"">Read more >></a></p>
<% end_control %>
</div>Is there a better way to do this (i.e. without using <p> tags)?
| 405 Views | ||
|
Page:
1
|
Go to Top |

