Support .txt files in listpages