|
Change RSS Link Formatting in Joomla |
|
|
|
Tutorials / FAQs -
Joomla
|
|
Sometimes it may be necessary to change the way your RSS links are displayed, in order to preserve attractive formatting. There is no way to do this in the standard Joomla install, but that's where this tutorial comes in. This change will still output the correct hyperlinks for your news feeds, but will cut the display off at 50 characters to preserve formatting. Find this original code in "/components/com_newsfeeds/newsfeeds.html.php" Original Code <?php if ( $params->get( 'link' ) ) { ?> <td width="50%" class="<?php echo $tabclass[$k]; ?>"> <?php echo ampReplace ( $row-> link ); ?> </td> <?php } ?>
Replace with this updated code. I have made this a hyperlink because the truncated text is useless by itself. New Code <?php if ( $params->get( 'link' ) ) { ?> <td width="50%" class="<?php echo $tabclass[$k]; ?>"> <a href="<?php echo ampReplace( $row->link ); ?>" class="category<?php echo $params->get( 'pageclass_sfx' ); ?>"> <?php printf("%.50s\n", ampReplace ( $row-> link )); ?> </a> </td> <?php } ?>
Now just upload the modified file to your webserver and take a look at your accomplishments. |