1
I’ve been trying to add a block to the news module. Unfortunately I haven’t been very successful at it. I’ve read the wikki on this matter but it didn’t help me. The goal for this block is showing latest news by category. Eventually I want to be able to create several blocks to show latest news from various category’s.
Here’s what I’ve done so far:
I created a html file in ..\modules\news\templates\blocks (basically a copy of the “news_block_new.html”). I Created a PHP file in ..\modules\news\blocks. basically a copy of the “news_top.php”. I changed the SQL (edited SQL query to only show news from a specific topicid). Then I made changes in the xoops_version.php file (added block info).
Now I thought all I had to do was generate the block (html) in the template manager. Unfortunately after I tried to generate the block I received the following error:
Selected file does not exist)
I hope somebody can tell what it is I’m forgetting. Staring at my screen doesn’t seem to help
Thank you