exponent-cms team mailing list archive
-
exponent-cms team
-
Mailing list archive
-
Message #00053
Re: About hardcoding a newsmodule for 2.0
For the news module, yes. By default, you don't have to specify the view name, and it will default to whatever the action is.
On Jan 5, 2011, at 9:17 AM, Sanna Edelman wrote:
> Ok!
> What about the "action" in that case? Is it the same?
>
> Sanna
>
> -- Sent from my iPad --
>
> On 5.1.2011, at 17.48, Phillip Ball <phillip@xxxxxxxxxxxx> wrote:
>
>> Sanna,
>>
>> The view should be 'showall', not 'Default'.
>>
>> --
>> Phillip
>>
>> On Jan 5, 2011, at 5:00 AM, Sanna Edelman wrote:
>>
>>> 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
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~exponent-cms
>>> Post to : exponent-cms@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~exponent-cms
>>> More help : https://help.launchpad.net/ListHelp
>>
References