orchardcms-1.6

Orchard CMS Transaction Errors

99封情书 提交于 2019-12-23 21:20:00
问题 We are consistently, randomly getting the following errors on our Orchard site. It seems most prevalent when quickly navigating between pages. There are no other errors in the logs, so I'm not sure how to track down the root cause. We're not doing anything special with ODBC or anything like that (which is what google brought up when searching for this error with regard to Orchard). [TransactionException: The operation is not valid for the state of the transaction.] System.Transactions

Merge orchard content from development and production databases

混江龙づ霸主 提交于 2019-12-23 09:37:43
问题 I`m looking for a solution to a following problem. We have orchard site on production environment developed some time ago. All site structure (widgets, parts, layers) was created before initial release. Now we want to add sub site with additional pages and layers. We want to do this work on development environment and test it before release (on top of recent production database snapshot). At the same time on production environment new minor content would be added. So question is – is there

Creating a module for Orchard that stores data from the front-end

痞子三分冷 提交于 2019-12-14 03:48:18
问题 Code will come later as soon as i am in front of my development machine, though hoping in the meantime someone can help.... I am trying to develop on Orchard CMS v1.6.1. At the moment I am in the midst of trying to develop a module that will essentially allow me to place a Newsletter subscription view within the footer (or anywhere else i choose) on the front end. I have followed several tutorials and they all seem to show how to store data from the Admin only - I need to store data on the

Return JsonNet type JSON from WebAPI in Orchard

旧巷老猫 提交于 2019-12-13 05:58:02
问题 In standard MVC I use JsonNet to return JSON that is in camelCase and sucessfully serializes entities that have related entities (which otherwise reports a "cycles" error" using the default serializer). I'd like to do the same for a WebAPI controller in an Orchard module. By default it returns PascalCase JSON and reports a "cyles" exception when given a list of entities. Can anyone explain how best to configure the JSON output from within the Orchard module, to mimic what JsonNet would

Item Templates vs Part Templates in Orchard

北战南征 提交于 2019-12-12 00:28:25
问题 I'm learning Orchard and I did some Pluralsight course. It covered Part Templates, but now I'm reading this article: Anatomy of a theme and there's a section called: Item Templates . And I'm confused. I think I haven't came across this notion before. What is the difference? Let's have a sample that I have a content type Movie with content part Movie . I can override how it's rendered using Part Template . So where I would use Item Template in this case? 回答1: Wrote a blog post with a tiny bit

Orchard CMS 1.6 placement.info Order not working

喜欢而已 提交于 2019-12-11 15:01:48
问题 I've just migrated a site to 1.6 - form 1.5, and I'm experiencing issues with the placement.info file in my theme, I have the following placement <Match DisplayType="Detail"> <Place Parts_Title="/BeforeMain:1.5"/> </Match> I aslo have a Bred crumb menu widget placed in Before main with a placement setting of 5 No matter what I do to the numeric placement values, the Title always appears before the bread crumbs. I'm also experiencing other issues with the theme placement.info file anybody else

Retrieving content and all associated properties in Orchard CMS

邮差的信 提交于 2019-12-11 08:14:58
问题 Is there a good way of programmatically pulling back a list of Content Items from Orchard? At the moment I'm doing this, which returns a ContentPartRecord and the Title, but it's not pretty by any means: public IEnumerable<LookupViewModel> Lookup(string searchText) { var items = _contentManager .Query<MyItemPart, MyItemPartRecord>() .Join<TitlePartRecord>() .Where(x => x.Title.Contains(searchText)) .OrderBy(x => x.Title) .List(); return items .Select(x => new LookupViewModel() { Text = x.Name

completed an orchard tutorial on displaying a calendar but nothing displays?

自作多情 提交于 2019-12-11 07:51:45
问题 I was trying to display some sort of booking system in orchard and I found a set of tutorials that allow you to set queries to display on different dates... So ive went through all the 18 tutorials for orchard CMS 1.6 displaying a calendar on screen http://www.youtube.com/watch?v=Iv7rA-viyTw and my calendar doesnt appear on screen? ive tried changing the widget of it (which selects dates on the calendar) and nothing appears, im logged in as authentic user, (as it is set to show-when creating

Add a MediaPicker to the General Site Settings

ぐ巨炮叔叔 提交于 2019-12-11 03:36:45
问题 The current project I'm on is utilizing tenant sites. With each site, we want the ability to change the logo through out the tenant site by modifying the its settings (on the admin page, settings > general). I've added two text fields to the site settings by following this well documented tutorial. However, I'd like the user to be able to pick the logos using the media picker instead of typing in the path. Currently I have a LogoBarSettings part with its record, driver and handler. I'm not

How to render shape to string?

可紊 提交于 2019-12-11 02:57:00
问题 i am using Orchard 1.6 and want to render view to string with theme custom layout and so on. In fact there is orchard cms rendering shape as email template but i need some more details (cant add comment to that answer, i dont have rep enough :(, and cant send private message) I do it in controller for test (in future i want to do int in separate task). So controller is (model is simple class with some properties) var renderer = new ViewRenderer( _workContextAccessor, _siteThemeService,