orchardcms / orcharddoc Goto Github PK
View Code? Open in Web Editor NEWDocumentation for Orchard 1.x (not Orchard Core, for that see https://docs.orchardcore.net/).
Home Page: http://docs.orchardproject.net
Documentation for Orchard 1.x (not Orchard Core, for that see https://docs.orchardcore.net/).
Home Page: http://docs.orchardproject.net
Edit: I just realized that this issue may not be attached to the specific page I am complaining about. It is here:
http://docs.orchardproject.net/Documentation/Writing-a-content-part
This documentation (and the code) needs to be seriously updated. It is way out of date.
If there are up-to-date instructions for writing content parts that work with Orchard 1.7 and Visual Studio 2012, then I apologize for wasting peoples' time. I had to Google around a bit to even get to this page, so I don't know what is and is not available.
I'm also willing to edit these pages myself. I just want to be clear on the proper steps before I commit a major foul.
orchard> codegen theme MyFirstTheme
No command found matching arguments "codegen theme MyFirstTheme". Commands avail
able: site setting set baseurl,autoroute create,theme list,theme activate,layer
create,widget create,menuitem create,menu create,blog create,blog import,blog bu
ild archive,user create,role list,role detail,permission list,user roles,user ad
d role,user remove role,role add permission,role remove permission,role create,r
ole delete,feature list,feature enable,feature disable,package create,package in
stall,package uninstall,page create,recipes harvest,recipes execute,warmup gener
ate,cultures list,cultures get site culture,cultures set site culture,cultures a
dd,help commands,help.
Hi, I've discovered some errors in the following documentation
http://docs.orchardproject.net/Documentation/Creating-a-custom-field-type
Under "Writing the Driver" there are two "using Contrib" which is rather confusing, since Contrib hasn't been mentioned before
and later
ContentFieldDriver<Fields.DateTimeField> but both Contrib and Fields are apparently supposed to be replaced with "CustomFields" ...
$("#@Html.FieldIdFor(m => Model.Time)").timepickr();
probably should be
$("#@Html.FieldIdFor(m => Model.Time)").timepicker();
Further down, I'm asked to find the
there's a
but no
When I finally finished the tutorial, the end product didn't actually work. After having enabled the features, I went to add the new field type to a content and it wasn't in the options list. (Though it's quite likely I just made a typo somewhere since I didn't copy paste anything but typed everything in by hand)
Orchard-1.9.1 works on SQL server 2005 Database ?
Docs don't cover it currently
Hi
Current EditPost always recreate activities, so original activities id is loss. I have create customize table to record current content approving activity. So if these activities are deleted. It will be error.
I think recreate activities, it is not reasonable. And if user delete a activities which are waiting user action, means it have awaitingactivity. It will not be deleted.
I have do some modify in my local code, like below:
[HttpPost, ActionName("Edit")]
[FormValueRequired("submit.Save")]
public ActionResult EditPost(int id, string localId, string data) {
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to edit workflows")))
return new HttpUnauthorizedResult();
var workflowDefinitionRecord = _workflowDefinitionRecords.Get(id);
if (workflowDefinitionRecord == null) {
return HttpNotFound();
}
workflowDefinitionRecord.Enabled = true;
var state = FormParametersHelper.FromJsonString(data);
var activitiesIndex = new Dictionary<string, ActivityRecord>();
// Ezra Modified Start
//workflowDefinitionRecord.ActivityRecords.Clear();
foreach (var activity in state.Activities) {
ActivityRecord activityRecord;
int activityId;
if (!((string)activity.ClientId).Contains("jsPlumb") &&
int.TryParse(((string)activity.ClientId).Split('_').Last(), out activityId))
{
activityRecord = workflowDefinitionRecord.ActivityRecords.First(a => a.Id == activityId);
activityRecord.X = activity.Left;
activityRecord.Y = activity.Top;
activityRecord.Start = activity.Start;
activityRecord.State = FormParametersHelper.ToJsonString(activity.State);
}
else
{
activityRecord = new ActivityRecord
{
Name = activity.Name,
X = activity.Left,
Y = activity.Top,
Start = activity.Start,
State = FormParametersHelper.ToJsonString(activity.State),
WorkflowDefinitionRecord = workflowDefinitionRecord
};
}
activitiesIndex.Add((string)activity.ClientId, activityRecord);
}
//Get deleted activities
var delWaitingActivityRecords = from orgActivityRecord in workflowDefinitionRecord.ActivityRecords
join newActivityRecord in activitiesIndex.Values.ToList() on
orgActivityRecord.Id equals newActivityRecord.Id into joinActivityRecords
from delActivityRecord in joinActivityRecords.DefaultIfEmpty()
where delActivityRecord == null
select orgActivityRecord;
// Check deleted activities is awaiting activity
delWaitingActivityRecords = from delActivityRecord in delWaitingActivityRecords
join awaitingActivityRecord in _awaitingActivityRepository.Table.AsEnumerable()
on delActivityRecord equals awaitingActivityRecord.ActivityRecord
select delActivityRecord;
if (delWaitingActivityRecords != null && delWaitingActivityRecords.Count() > 0)
{
// Cancel current hibernet transaction
Services.TransactionManager.Cancel();
Services.Notifier.Error(T("Can't delete {0} activity there are awaiting activity! ", delWaitingActivityRecords.ElementAt(0).Name));
return RedirectToAction("Edit", new { id, localId });
}
workflowDefinitionRecord.ActivityRecords.Clear();
foreach(var activityRecord in activitiesIndex.Values)
{
workflowDefinitionRecord.ActivityRecords.Add(activityRecord);
}
workflowDefinitionRecord.TransitionRecords.Clear();
foreach (var connection in state.Connections) {
workflowDefinitionRecord.TransitionRecords.Add(new TransitionRecord {
SourceActivityRecord = activitiesIndex[(string)connection.SourceId],
DestinationActivityRecord = activitiesIndex[(string)connection.TargetId],
SourceEndpoint = connection.SourceEndpoint,
WorkflowDefinitionRecord = workflowDefinitionRecord
});
}
// Ezra Modified End
Services.Notifier.Information(T("Workflow saved successfully"));
return RedirectToAction("Edit", new { id, localId });
}
It's only lightly covered in one of the orchard.exe documents.
Came up the other day in OrchardCMS/Orchard#5727.
This is directly related to this doc: http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure
We are trying to come up with a good solution for deploying orchard to multiple azure instances from Visual Studio. We have it pre-configured to run a recipe on deployment (however, that requires that each instance be browsed by the person deploying, otherwise the app_data folder is doesn't exist and the first time the instance gets hit, it will try to run the setup).
We have multiple custom modules that are deployed, but our problem is the recipe running on each instance. Is there a way to deploy orchard and run a recipe on each instance after deployment? We are also using Orchard 1.8.
Updating seems to also be an issue as any time it updates the deployments, the App_Data folder is erased (or is populated with our local dev environment).
Code sample:
@{
string title = "Title";
string siteName = "Site";
}
<meta property="og:title" content="@Html.Title(T(title).ToString(), T(siteName).ToString())" />
<title>@Html.Title(T(title).ToString(), T(siteName).ToString())</title>
makes:
<meta property="og:title" content="Site - Title" />
<title>Site - Title - Site - Title</title>
Because @Html.Title reuses same instance of IPageTitleBuilder. So PageTitleBuilder.AddTitleParts collects title parts for all @Html.Title calls.
For Orchard CMS 1.8.2
I tryied to http://docs.orchardproject.net/Documentation/Customizing-the-default-theme
but the suggested command "codegen theme" doesnt seem to exist.
I have written the Map module presented in the "Writing a content part" documentation page at http://docs.orchardproject.net/Documentation/Writing-a-content-part and added it to the page content definition.
However, when tried to create a new page, I received the following error:
"An exception of type 'NHibernate.Exceptions.GenericADOException' occurred in NHibernate.dll but was not handled in user code
Additional information: could not execute batch command.[SQL: SQL not available]
If there is a handler for this exception, the program may be safely continued."
This happened on the Orchard.Framework Orchard.ContentManagement.DefaultContentManager.cs file at Line 359: return contentItemVersionCriteria.List();
I also downloaded and added the code from the link at the bottom of the page and received the same error.
Lists of OrchadDoc Issues to be fixed.
Inserting a just uploaded fails,
there are javascript errors in the media upload screen.
TypeError: $("#img-cancel, #lib-cancel").live is not a function
In MediaBrowser.js (line 13)
See: http://jquery.com/upgrade-guide/1.9/#live-removed
Use the .on() function instead.
It seems that you can access the pages of the documentation website with custom casing but you get a 404 error if you then click the Edit This Page link. It only works if you are on the correctly cased page.
I ended up on the problem page via this Google search:
Viewing the page works fine but when you click the Edit This Page link down the right hand side you get an error on GitHub:
I looked into it and discovered that the only difference is that the actual file on GitHub has a capital C in Custom. This url works:
The site needs to be updated so that it uses the correct casing in the page rather than mirroring the casing used in the URL.
URLs should be consider case-sensitive according to the w3 so I don't think it can be considered a GitHub issue.
http://docs.orchardproject.net/Documentation/Understanding-data-access
http://docs.orchardproject.net/Documentation/Creating-1-n-and-n-n-relations
I accidentally introduced an error into the docs when I updated them all to use the infoset last year and it's gone largely unnoticed.
I was just running through the tutorial today, found it didn't work and actually found some discussion on CodePlex from back in May.
The error I introduced into the docs was when I tried to put an unsupported type into the infoset with this code:
public StateRecord State
{
get { return Retrieve(r => r.State); }
set { Store(r => r.State, value); }
}
It causes this exception:
System.NotSupportedException: Could not handle type StateRecord
The solution is to encode and decode it as you pass it to the InfoSet.
I've updated it to this:
// in the AddressPart class
public StateRecord State
{
get
{
var rawStateRecord = Retrieve<string>("StateRecord");
return StateRecord.DeserializeStateRecord(rawStateRecord);
}
set
{
var serializedStateRecord = StateRecord.SerializeStateRecord(value);
Store("StateRecord", serializedStateRecord);
}
}
// and in the StateRecord class
public static StateRecord DeserializeStateRecord(string rawStateRecord) {
if (rawStateRecord == null) {
return new StateRecord();
}
var stateRecordArray = rawStateRecord.Split(new[] { ',' });
return new StateRecord() {
Id = String.IsNullOrEmpty(stateRecordArray[0]) ? 0 : Int32.Parse(stateRecordArray[0]),
Code = stateRecordArray[1],
Name = stateRecordArray[2]
};
}
public static string SerializeStateRecord(StateRecord stateRecord) {
if(stateRecord == null) {
return "";
}
return String.Join(",", stateRecord.Id, stateRecord.Code, stateRecord.Name);
}
Before I make a PR does anyone have any advice on a better way to do it?
It seems brittle because its encoding strings so they could potentially contain the join delimiter ,
. I'd prefer to use IJsonConverter
but seeing as it's need in a static method I don't know how to get at it?
Hi, the following page
http://docs.orchardproject.net/Documentation/First-steps-into-Orchard
has a lot of mentions of "figure. 1" and "figure. 2" etc. but all the images are missing.
Here
http://docs.orchardproject.net/Documentation/Contributing-patches
It still refer to codeplex
"Once this is done, your changes are on CodePlex, but not yet in the project's official repository. To get it there, you'll need to ask us to pull the changes in. In order to do that, send us a pull request from the fork management screen under the source control tab on CodePlex:"
The global process seems Ok, but is it really Ok with Github. May be conventions on referencing issues are outdated ?
Hi,
I have some questions as below:
Best Regards,
Jianzhuang
Hi
we use three tenant for our web site and implement it but our biggest problem is that tenants failed automatically and we have to reset IIS and delete cashe.cab. this solves the problem temporary but the problem happens again and agian. by reviewing the logs we understand that this happens when orchard-error.txt is made but it is empty.
is there any thing that we can do to solve the problem?
thank you in advance.
Since upgrading to Orchard 1.9.1 we now have no footer information on our login page when a user is unauthenticated.
It is no longer being rendered. If i set the 'layer rule' to 'authenticated' the footer is rendered.
This is because the Model.Footer is now null in our custom Layout.cshtml
Any suggestions from anyone please?
As recommended in the documentation, if you set up a Send Email activity after a timer to keep the actual sending off the main thread, a null exception occurs:
System.ArgumentNullException: Value cannot be null.
Parameter name: httpContext
at System.Web.Routing.RequestContext..ctor(HttpContextBase httpContext, RouteData routeData)
at Orchard.DesignerTools.Services.ShapeTracingFactory.IsActivable()
at Orchard.DesignerTools.Services.ShapeTracingFactory.Created(ShapeCreatedContext context)
at Orchard.DisplayManagement.Implementation.DefaultShapeFactory.Create(String shapeType, INamedEnumerable1 parameters, Func
1 createShape) in c:\src\Orchard\DisplayManagement\Implementation\DefaultShapeFactory.cs:line 90
at Orchard.DisplayManagement.Implementation.DefaultShapeFactory.Create(String shapeType, INamedEnumerable1 parameters) in c:\src\Orchard\DisplayManagement\Implementation\DefaultShapeFactory.cs:line 31 at Orchard.Email.Services.SmtpMessageChannel.Process(IDictionary
2 parameters)
at Orchard.Messaging.Services.DefaultMessageService.Send(String type, IDictionary2 parameters) in c:\src\Orchard\Messaging\Services\DefaultMessageService.cs:line 20 at Orchard.Events.DelegateHelper.<>c__DisplayClass2e
3.b__2d(Object target, Object[] p) in c:\src\Orchard\Events\DelegateHelper.cs:line 122
at Orchard.Events.DefaultOrchardEventBus.TryInvokeMethod(IEventHandler eventHandler, Type interfaceType, String messageName, String interfaceName, String methodName, IDictionary`2 arguments, IEnumerable& returnValue) in c:\src\Orchard\Events\DefaultOrchardEventBus.cs:line 81
at Orchard.Events.DefaultOrchardEventBus.TryInvoke(IEventHandler eventHandler, String messageName, String interfaceName, String methodN
It appears this is happening because the email send activity isn't executing on the main thread, which means it doesn't have access to the HttpContext.
If it helps, I have a fix for this issue locally, but want to get things done in the official way.
Thanks,
Walt
In First-steps-into-Orchard eight figures are referenced like
Figure 1. Picture of a website with a tree of linked boxes: front end static page at the top, below: blog box (below: comments box), wiki box, etc.
but no image is linked at all.
This needs documenting as it's going to be in 1.9.2
Notes can be taken from OrchardCMS/Orchard#5450
@DanielStolt you said you would do this documentation. Have you got anything in motion for it? I'm not giving you a hard time, I just don't want to start writing stuff if its already half done :)
http://docs.orchardproject.net/Documentation/Setting-up-a-source-enlistment
This is the next rewrite I will be doing. I can't assign it to myself as I think that needs more rights on the repo but I just wanted to post it publicly so we don't end up duplicating our efforts.
Currently, the nightly build is using 2 hours on JetBrains-agent01 at CodeBetter CI http://teamcity.codebetter.com/viewType.html?buildTypeId=bt539.
Given there are over 200 projects configured to use this single agent (http://teamcity.codebetter.com/agentDetails.html?id=7&agentTypeId=7) it would be greatly appreciated if this level of usage could be reduced to a fair level. If all 200 projects had 2 hour nightly builds we'd be pretty stuck.
I work on a few of these other projects (the longest build takes 6 minutes) and work has been blocked a few times now for up to two hours whilst waiting for the Orchard nightly build to complete. I guess either the nightly build needs to be changed to do less, or it should be moved to a dedicated server/agent.
I'm not sure if CodeBetter CI has a fair usage policy but I'm sure as a community we can work things out regardless.
I'll sort it tomorrow, its late here.
This is my next project that I'm working on.
http://docs.orchardproject.net/Documentation/Upgrading-a-site-to-a-new-version-of-Orchard
It is pretty long, might benefit from splitting the scenarios out.
The reason I've flagged it is that the "upgrading by enlistment" section basically just says How? Just do it. My first time through I was lost so I want to make that step-by-step at least.
This looks like a bug in toc.js, it's not stripping out enough of the special characters
The tutorial at http://docs.orchardproject.net/Documentation/Creating-a-custom-field-type has several fatal flaws in it which means that it is not possible to create a working module from the tutorial.
It initially looked like the time picker scripts were missing but while looking into this issue for this report it seems that it could have just gone stale as the Orchard.Jquery
module has entries for jQueryUI_TimePicker
and jQueryDateTimeEditor
but the tutorial refers to a non-existent jQueryUtils_TimePicker
.
Hello,
I have created a custom content type and added a content picker field to it. Then I created a query and projection and added that projection to the custom content via content picker. I am trying to get rid of it, but it doesn't go away. I deleted the projection and query, and the content picker field from the custom content type but the data is still showing in the front end of the website. Is this a bug of some sort? Or I cannot delete these things? Thank you for any help.
Hello,
I have a video portal and have a performance issue. When the active request counts(IIS) increase over 70/80 requests, the website going to down and anyone cannot access to it. We analyzed all ip addresses in real time and we could not find any harmfull connection. Our system engineer also have been independently checked all posibilities. He said to us, "there are no any problem in traffic and we set firewall and IIS settings of the servers to protect system from attacks." So, there is no problem in server side. Website should be able to handle more active request. How can i improve this? Also I have another issue about cpu. IIS worker uses too much cpu percentage with ~8 users. I need to decrease cpu usage. How can i optimize this?
Thanks
cf. https://github.com/OrchardCMS/OrchardDoc/blob/master/Documentation/Feature-roadmap.markdown
We list all the features, and the upcoming release effort, I think we should also have the changelog on this page, or link to all release note pages.
As stated in the answer to this StackOverflow article http://stackoverflow.com/questions/14826212/blog-zone-placement placing a / before the zone name in the Place element renders the shape in the global zone as opposed to the local zone. This is a pretty crucial feature that should be included in the "Understanding placement info" documentation.
I have installed and enabled the Messaging module and Email Messaging module. I have also set the email settings and testing them with a Contact Us form.
I am now trying to create a workflow that messages me when a comment is created, but there is no "Messaging" action node available in the Workflow toolbox.
What am I missing?
For example:
Notice how the first paragraph after the table is offset:
This is because it's just a line of text, it doesn't have any <p>
tag wrapped around it:
Orchard's upgrade process is a horrible mess. It needs to be one click so we can get back to our work.
The release notes don't help either. The latest release notes are at http://docs.orchardproject.net/Documentation/Orchard-1-8-1.Release-Notes and refer to documents that seem to talk about 1.0 => 1.1 upgrades
i.e. http://docs.orchardproject.net/Documentation/Upgrading-a-site-to-a-new-version-of-Orchard as well as https://github.com/OrchardCMS/OrchardDoc/blob/master/Documentation/Upgrading-a-site-to-a-new-version-of-Orchard.markdown
The link just below that ("Upgrading from Orchard 1.7.1 and earlier") is broken.
Imagine you're reading the release notes and then trying to upgrade - it's terrible presentation of required instructions.
http://docs.orchardproject.net/Documentation/Creating-Custom-Forms does not have a working set of instructions on how to create a Custom Form. I am currently working with Custom Forms (not Forms) in Orchard v.1.7.3.0. Please advise as to where to find correct instruction on how to create Custom Forms to be used as widgets, or please update with the missing steps to do so from this page. Thank you.
Azure has changed some of its services, including Azure Cache (no longer available, and now Redis Cache). Orchard 1.9 has support for Redis Cache. Perhaps updating the documentation to reflect these changes? I'm going to try to submit some PRs with some updates.
This is the strategy we talked about at Orchard Harvest:
Here is a diagram of the end result. Note: orchardproject.net is an Orchard CMS; the docs sites are not. The docs sites receive their content from GitHub repos.
It is probably good idea to add Last Updated: DateTimeStamp on the documentation pages :) , i mean when was the last time this page was updated?
http://docs.orchardproject.net/Documentation/themes-includes#HtmlZone("head""metasstylesscripts")
<p>@T("You have {0} credits left.", @Model.SmsCredits)</p>
Component
to automatically get these featureshttp://docs.orchardproject.net/Documentation/Manually-installing-Orchard-zip-file
This page should have a link to an area that describes the table layout for the database setup that is needed. I'm a new user trying it out to see if we are interested in using it (along with DNN and a few other CMS's). I have existing IIS and SQL Server boxes and will be trying to move over our existing website. I'm partway through the install instructions but then hit the database setup section. Without knowing how to set up the database I'm stuck.
Sorry if this is the wrong area for this post.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.