clean url and Read more
Valeratal - January 24, 2008 - 10:17
| Project: | Last Node |
| Version: | 5.x-2.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Valeratal |
| Status: | active |
Jump to:
Description
Good Day
I place block last(my_nod_type) and get list 10 title nods - good
But I get and "Read more" whith url /?q=last_node/my_nod_type
A need clean url (whithout ?q=)
How make this?

#1
Substitute this line (#148) into last_node.module:
<?php
...
$output .= "<div class=\"more-link\"><a href=\"?q=last_node/$which_block\" title=\"". t("Read More") ."\">". t("Read More...") ."</a></div>";
...
?>
with:
<?php
...
$output .= "<div class=\"more-link\">". l( t("Read More"),'last_node/'. $which_block,array('title'=>t('Read More...'))) ."</div>";
...
?>