Page 1 of 1

How to create a Link to News Item in a custom module.

Posted: Sun Sep 09, 2007 4:34 pm
by CNBorn

I'm trying to implement a news showcase via slide using js. I encounter such a problem. I try to link to a specific news item. By simply directing to the link, I can't make the news item being shown in detail page. I tried $this->createLink, but it seems that it should be used within the News Module.
I want to create the link just like the one News Module created, and I don't want to modify the news module.(For that, I put the slide news code in my custom module as a special action, in which news info was loaded).
I am very new to PHP. Hope someone will give me some point. Thanks for advance.

Re: How to create a Link to News Item in a custom module.

Posted: Sun Sep 09, 2007 5:15 pm
by cyberman
You have to assign it to Smarty

Code: Select all

	$this->smarty->assign('your_link', $this->CreateLink());