orchardcms

Sticky footer Orchard CMS

牧云@^-^@ 提交于 2019-12-24 03:17:15
问题 I am trying to apply a sticky footer but having problems to implement this within Orchard. In a previous website I have applied the following sticky footer method successfully: http://www.cssstickyfooter.com/using-sticky-footer-code.html I just cannot get a sticky footer to work within Orchard, nor can I find anything about it. Already tried deleting all the existing CSS to attempt to find out why its not working without any success. Not getting any wiser when inspecting the HTML with firebug

Will Orchard CMS support MVC4 with Entity Framework

情到浓时终转凉″ 提交于 2019-12-24 03:06:13
问题 I have a Site built with MVC4, Entity Framework 4.4. There are 2 projects. ie, The one is about our Site and the other one, the Class library (Definded as the .edmx). This time we need to migrate it to support CMS. And, we have choose to use Orchard CMS. I need to know, whether Orchard supports Entity Framework 4.4 or not. Any suggestions to this will be highly appreciated. Thanks 回答1: You're free to use any custom code in your modules, including EF for accessing databases. Orchard core (and

Setting Unique Body Classes and IDs in Orchard

孤街浪徒 提交于 2019-12-24 02:38:08
问题 Is there a way to set unique body classes and IDs per page in Orchard? I would like to be able to control these on the 'edit page' section. For example, the home page would have the body id of 'home', the about page would have a body ID of 'about' etc... And -- if there were subpages under the about page, those pages would have a body ID of 'about' and a body class unique to the subpage. I would like to be able to set these IDs and classes on the 'edit page' section for each page. 回答1: Try

Orchard CMS: Adding default data to fields and then querying them

▼魔方 西西 提交于 2019-12-24 02:17:09
问题 I have added a LinkField called Website to a content type using a part with the same name as the content type. ContentDefinitionManager.AlterTypeDefinition("MyContentType", a => a .WithPart("CommonPart") .WithPart("MyContentType") .Creatable()); ContentDefinitionManager.AlterPartDefinition("MyContentType", cft => cft .WithField("Website", a => a.OfType("LinkField").WithDisplayName("Website") .WithSetting("FieldIndexing.Included", "True")) .Attachable()); I then create some default content

Adding an element to page <head> in Orchard CMS

跟風遠走 提交于 2019-12-24 00:55:44
问题 I am adding a new page to an Orchard site that I recently inherited from a co-worker. The page's purpose is to provide inline installation for our Google Chrome extension. Supporting this functionality requires adding a link in the page's head element to the Google webstore page e.g. <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/apdfllckaahabafndbhieahigkjlhalf"> How can I add an element to a page's head? I know we have some Orchard modules that do similar

Orchard Migration Add_Index to an existing table to make it a unique constraint

大兔子大兔子 提交于 2019-12-24 00:25:05
问题 Looking at Q A migration to add unique constraint to a combination of columns In my migration file I already have a 'MobileDeviceRecord' table with an 'ActivationCode' which is created in code from a GUID class when a new record is created. I want to ensure the new 'ActivationCode' is unique to the existing 'ActivationCodes' in the table. Do I need to remove the 'ActivationCode' column and re-add it with a constraint or can I use an add_index...Also what is the proper way to use it?? public

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

Orchard CMS - How to manage new fields for custom module widget with database?

空扰寡人 提交于 2019-12-23 05:10:43
问题 I've been working with a custom module that has a widget with some fields stored in the DB. I added a new non-required field to the widget and a corresponding field in the database is not being added. What's the best way to handle this type of change? I can manually add a field in the dev database to match it, but this is unrealistic for 50 some odd production tenant sites. 回答1: To expand on @Bertand's answer a little, you don’t need to create database columns when you add fields (Boolean

Orchard CMS - dynamic query based on TaxonomyField of current content

一曲冷凌霜 提交于 2019-12-23 04:33:13
问题 I am looking into using Orchard CMS for an upcoming project and have hit a block. The site need to display articles of various types alongside a list of recent articles of the same type. To that end I have: Created a custom ContentType called Article which includes a TaxonomyField for ArticleType. Created a custom theme with zones to reproduce the layout the customer requires. (Including RecentArticles.) Created a custom widget layer to show/hide the RecentArticles zone based on the current