← Back to team overview

exponent-cms team mailing list archive

Fwd: How to add a view for text module 2.0?

 

Ok, I got it:

instead of showallgreen.tpl, I needed to have showall_green.tpl that it appears in the views as "green" only.
Actions give the content to views that are starting with their action name (action here is "showall"). That's the logic. Styling can go ahead...

Sanna

> Hi, 
> 
> I was crawling the forum and also looking this (with Notices!):
> http://docs.exponentcms.org/modules-and-views
> 
> ... and trying to find info how to add a view for text module in 2.0.
> I just duplicated showall.tpl with another name (I need to only change one class "showall" to else there for stylesheet reasons) but I can't get this view or content action visible as selection. Also when adding the module, it is a bit confusing to select "showall" as content action and then Default or Tabview as the view itself.
> This is differently than it used to be but I don't know yet how. Any guides?
> 
> BR, Sanna








References