Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:58:30+00:00 2026-05-24T01:58:30+00:00

I am beginning to study the very nice CMS Orchard and, after reading the

  • 0

I am beginning to study the very nice CMS Orchard and, after reading the basic documentation, I’ve stumbled in a little hurdle.
I’ve created a new DataType, ‘SpecialOffer‘, which has some dataparts and some text datafields:

ProductName
PhotoURL
Price
Description

I’ve made a list, made a widget, customized the position.info file and the Views\Fields\Common.Text.cshtml file to change the position and the way the fields are rendered (a img for the photo, prepending € to the price and so on) but this doesn’t give me the right amount of customization over the generated html.

I’ve installed the developer shape tracing module and created an alternate Content-SpecialOffer.cshtml file.
This gives me the opportunity to easily customize the HTML around the content, but I have no idea how to get to the single DataItem fields to display them the way I want.

I mean that the whole SpecialOffer object is displayed through

@Display(Model.Content )

and, exploring the model, I’ve not found a way to write something as, say (pseudocode)

   <div>
    the 
   <span class="name"> @Model.Contentitem.Fields["ProductName"]</span>
     camera costs 
    @Model.Contentitem.Fields["Price"]
    euros
    </div>

I’ve read this post on SO
Custom View For RecentBlogPosts in Orchard

but it does not solves my problem, since it uses the standard properties of blogpost.

another little question: other than in the Documentation page of project orchard and b. LeRoy’s http://weblogs.asp.net/bleroy/ where can I study Orchard?

Thanks!

Edit

I’ve found a way to do it:

@{
    dynamic offer =Model.ContentItem.SpecialOffer;

    }

     <div>
    the 
   <span class="name"> @offer.ProductName.Value</span>
     camera costs 
     @offer.Price.Value
    euros
    </div>

is this the right way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:58:30+00:00Added an answer on May 24, 2026 at 1:58 am

    Yes, that’s fine.
    After the docs and the RSS feed on the home page of orchardproject.net, a major source of information (better than the previous 2) is the source code for the app and modules.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When beginning a new web project, i'm always a bit worried about removing pieces
At the beginning PHP was a scripting language. But after the introduction and improvement
Im beginning to learn sphinx search php api after running this query <?php include('sphinxapi.php');
I am beginning a new Java web application using Netbeans, and I would like
I'm beginning work on a new project that will use WF4 for business processes
I'm reading through Beginning Ruby and I'm stuck at the part about private and
We're beginning to design a whole bunch of new services to create (WCF, ADO.NET
Beginning with a basic approach -- Options Menu. Question: What is the best way
Many beginning programmers write code like this: sub copy_file ($$) { my $from =
Since beginning to use VB.NET some years ago I have become slowly familiar with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.