Still a perpetual n00b here. I have a new content record of a custom content
type. I'd like to display it in Razor directly in a blank-canvas theme, but
I don't know how to get to it in the model. Perhaps I have to add it to the
shape first, in which case I am lost; the documentation I've seen on various
loosely similar scenarios seems to be demonstrating larger requirements than
mine.

 

For one extremely simple web site I'm trying to take a minimalist approach
to Orchard so that I can know how I can reproduce what I previously
accomplished in raw markup without a CMS but still use Orchard to store and
define content. I have what I would like for now to be rendered as a
bulleted list of list items (I'll later be making this something else, using
a custom template for this content type) that are stored as containable
content items in a list. I'm using the Core recipe and I've enabled the
Lists feature and I'd like to show my custom List by itself on this very
simple web page. I'd like to see what I can accomplish without using the
Widgets feature. 

 

http://www.orchardproject.net/docs/Creating-lists.ashx 

 

.. describes how to add a widget, add the list to your widget, add the
widget to the zone, etc. I'm trying to approach this more minimalistically;
I'd like to see if I can just slap the list up onto the view in Razor such
as something like @Display(Model.MyCustomList). No widgets, not even any
zones. While I know that there is documentation for templating specific
content types, I don't know how to get specific content instances to show up
in the Model.

 

I am using the Layout.cshtml template in a copy of the SafeMode template
using the Core recipe.

 

Jon

 



---
You are currently subscribed to orchard-discuss as: [email protected].
To unsubscribe send a blank email to [email protected].

Reply via email to