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?

Comments

TheCrow’s picture

Component: Documentation » Code

Substitute this line (#148) into last_node.module:

   ...

  $output .= "<div class=\"more-link\"><a href=\"?q=last_node/$which_block\" title=\"". t("Read More") ."\">". t("Read More...") ."</a></div>";

  ...

with:

   ...

  $output .= "<div class=\"more-link\">". l( t("Read More"),'last_node/'. $which_block,array('title'=>t('Read More...'))) ."</div>";

  ...