← Back to team overview

exponent-cms team mailing list archive

About hardcoding a newsmodule for 2.0

 

Hi all, 

if I hardcode a newsmodule I'm not getting the links like "Create a news post" visible.
In the attachment I have a newsmodule added for the container by the "user" (green block) and that has the links but the one hardcoded on the right (red block) doesn't have the links. How would we get it working?

The code used for adding the module:

<?php
		// hard coding a controller for news 
		expTheme::module(array(
		"controller"=>"news", // the name of controller (exp2 mod) to display			   					"action"=>"showall", // the action (class method) to run
	 	"view"=>"Default",  // the view to display in
		"source"=>"@right",
  		"scope"=>"top-sectional",  // display this container’s content on ever top-level page link
		"chrome"=>true // show this modules chrome
)); ?>


All the Best New Year greetings,
Sanna


Follow ups