Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 29 2019 22:35
    HeyJoel closed #294
  • Jan 29 2019 22:35
    HeyJoel commented #294
  • Jan 24 2019 12:13
    HeyJoel closed #297
  • Jan 24 2019 12:13
    HeyJoel commented #297
  • Jan 24 2019 12:11
    HeyJoel commented #296
  • Jan 24 2019 10:58
    HeyJoel milestoned #296
  • Jan 24 2019 10:58
    HeyJoel labeled #296
  • Jan 23 2019 11:24
    ernestoSerra commented #296
  • Jan 22 2019 21:44
    HeyJoel commented #150
  • Jan 22 2019 16:46
    j7rowan commented #150
  • Jan 21 2019 12:28
    HeyJoel commented #297
  • Jan 21 2019 12:28
    HeyJoel commented #297
  • Jan 21 2019 12:08
    Enlatic commented #297
  • Jan 21 2019 12:03
    HeyJoel commented #294
  • Jan 21 2019 11:55
    HeyJoel commented #297
  • Jan 21 2019 11:55
    Enlatic commented #297
  • Jan 21 2019 11:49
    HeyJoel commented #297
  • Jan 21 2019 11:47
    Enlatic edited #297
  • Jan 21 2019 11:46
    Enlatic edited #297
  • Jan 21 2019 11:45
    HeyJoel commented #296
Adam Yang
@adamy
Hi guys, has anyone successfully ran the ASP.NET identity alongside the Cofoundry v0.7 in .NET core 3.1? First the authentication urls don't load, I fixed it by add "routeBuilder.MapRazorPages();" in my RouteRegistration. Second, after I got the login screen, the user/password works, but I got redicted back to an unauthorised page after a successful login. Removed the Cofoundry pipeline and all back to work normally.
Joel Mitchell
@HeyJoel
Presumably there’s a reason you’re not using the Cofoundry user areas i.e. you’re running another application alongside Cofoundry? There’s no guidance here, but you’d probably need to override the Cofoundry auth startup task and modify it to your needs. I don’t have my laptop to hand so can’t look it up.
I was looking at making this area more configurable earlier in the year, so some feedback on your use-case would be helpful.
Adam Yang
@adamy
@HeyJoel Thanks. I am trying to add Cofoundry to an in-house ecommerce site that already has .Net core Identity for customers and admins. It is probably too hard to migrate my users to Cofoundry as there are too many changes. My client wants to be able to edit some contents on the site and create news items and updates. I like how Cofoundry works and it is relatively small footprint (compare with Orchard Core or Piranha). Ideally I would like all .Net core Identity users in "Admins" role can access the CMS admin portal and can do everything they want, but I can live with a seperate login system for CMS.
Joel Mitchell
@HeyJoel
@adamy that makes sense, it doesn't seem that uncommon to want to run a CMS alongside another application and it's something that's possible, but it's not straightforward. First off, I'm not very familiar with Identity, and it's been redesigned a few times since I last used it, so I can't help you too much on that part.
Secondly, I expect you'll need to override the way Cofoundry configures the auth at startup, this issue is a little old, but has the basic idea. Have a look at the source for DefaultAuthConfiguration.cs in the latest release to see what it currently does and what you'll need to override. the interface to override is IAuthConfiguration and the docs for DI tell you how to override stuff. If you need to inject anything into the startup pipeline the docs for that are here
Joel Mitchell
@HeyJoel
Thirdly, if you want to integrate your existing logins into Cofoundry, I think you'll need to have a custom login endpoint that manages the single sign on. In the above auth configuration you could set the LoginPath to your SSO script. Your SSO script would have to use the Cofoundry data APIs to create a Cofoundry user if it doesn't exist and log them in. The SPA Sample shows how you can use the data APIs, in particular the RegisterMemberAndLogInCommandHandler
As mentioned before, we'd like to make customizing the configuration of the 2nd part easier. People want to do lots of different things here so it's difficult, but we can definitely do better.
Adam Yang
@adamy
I will have a look. Thanks Joel.
Scott
@sremiger1

I have a class that will return a list of Page Directories for a select list in the DataModel

public class PageDirectoryOptionSource : IListOptionSource
{
 private CofoundryDbContext dbContext;
 public PageDirectoryOptionSource(CofoundryDbContext dbContext)
 {
   this.dbContext = dbContext;
 }
 public ICollection<ListOption> Create()
 {
   return (from p in dbContext.PageDirectories select new ListOption(p.Name, p.PageDirectoryId)).ToArray();
    }
 }

It will not inject the CofoundryDbContext. What alternative do I have build a list for the user based on information stored in the Cofoundry database? or What would be the best way to build a table of contents based on Page Directory?

Joel Mitchell
@HeyJoel
@sremiger1 have you looked at the menu sample project? https://github.com/cofoundry-cms/Cofoundry.Samples.Menus
greencmg
@greencmg

Having this issue with hosting on an Azure App Service - I developed a Custom Entity similar to the Blog Post examples. After I publish a new custom entity, and not logged into Cofoundry - I see this error in the log when browsing to the root of the site or any of the post NOT logged in. I can login into the admin but when the site begins to behave like this, I can no longer go into the Custom Entities settings. The same error below occurs. I have seen some behavior with deleting the cookies specifically the ARRAFINITY cookies. This does not occur every when running locally.

Main
MESSAGE:
Entity of type 'Cofoundry.Domain.CustomEntityRoute' and identifier '2' could not be found.

image.png
Joel Mitchell
@HeyJoel
Have you scaled out your app service? If you’re running multi-server you will run into caching issues unless you add a distributed cache service
I haven't built a distributed cache implementation yet, but it should be trivial to create your own with a provider like reddis see issue #46 cofoundry-cms/cofoundry#46
zedjr
@zedjr
is cofoundry the only code first unobtrusive cms system for asp.net
therrealdude
@therrealdude
@zedjr as far as I know it is the only free one. There is also Episerver, but it is getting more and more expensive every year. It is also code first. Not entirely sure what you mean by unobtrusive.
Clifford Anang
@NiiAnyetei
Hello, please I need help with an update exception "Cofoundry.Domain.PageTemplateRegistrationException: Duplicate template region 'Subtitle | What We Do' in template /Cofoundry/PageTemplates/_Home.cshtml". This happened when I removed a region on the Home page and created a new database. I checked the database and it updates PageTemplateRegion with previously defined regions.
Joel Mitchell
@HeyJoel
@NiiAnyetei our gitter is no longer for issues, they should be posted to the issue log where answers are more easily available to others. Please also do not post against unrelated closed issues - i've moved your question to #389
Clifford Anang
@NiiAnyetei
@HeyJoel Thanks you very much
greencmg
@greencmg
@HeyJoel I was able to develop a SQL Distributed Cache based of the InMemory Implementation in the BasicTest site example. DI System is picking it up in 0.7.0 and is working. When I move it to 0.8.0, the DI is loading my ObjectCacheFactory but is still using the InMemory. I tried setting the OverridePriority to High and still no luck.
Joel Mitchell
@HeyJoel
Hi @greencmg please submit an issue, we are no longer using Gitter for issues/support.
Please include your registration code so i can reproduce the issue
greencmg
@greencmg
Thanks @HeyJoel - submitted issue #399 ... I would really appreciate your guidance on this as getting this to work on Azure steadily would be awesome.
James Warner
@jamesnwarner
Hello everyone.
I've been enjoying using Cofoundry so far, however, I'm fairly new to CMS systems. I'm currently working on trying to implement locales on a custom entity.
I've mainly been using the SPASite sample for my inspiration. I've enabled some locales and am able to select one when editing or creating a new entity in the Admin panel. However, I do not understand0 how they fit into content repository when trying to query my custom entity.
Any samples or resources would be beneficial? I apologise if I've missed something in the documentation.
Joel Mitchell
@HeyJoel
Hi @jamesnwarner firstly, please use issues for questions/issue rather than gitter, as the content is indexed in search engines and is much more useful for other people looking for help.
Locales isn't a completed/supported features, see issue #43 - if you find otherwise in the docs please let me know where so I can update. Basically I haven't had time to properly implement it, so what you see in there is a migrated locale system that will eventually change when it gets implemented properly - use at your own risk.
Joel Mitchell
@HeyJoel
In terms of custom entity queries, there's not much in the way of locale specific queries, most lookups are by id, SearchCustomEntityRenderSummariesQuery does support locale, but may not be what you're looking for.
James Warner
@jamesnwarner
Thanks, @HeyJoel. I'll bear that in mind for the future, thanks for the update. I'll take a look at SearchCustomEntityRenderSummariesQuery, thank you.
sourabh11
@sourabh11:matrix.org
[m]
Hello Everyonr
Cofoundry new for me
I have one query How to add css and html file for contant in cofoundry cms.
sourabh11
@sourabh11:matrix.org
[m]
??
@HeyJoel: Please help me.
sourabh11
@sourabh11:matrix.org
[m]
:point_up: Edit: Hello Everyone
Joel Mitchell
@HeyJoel
image.png
As with the above queries, please use GitHub issues or stackoverflow for technical questions as per the readme
When submitting an issue, make sure you have checked the docs, samples and other issues to see if your qestion already has an answer.
If you submit an issue, please include as much detail as possible. I can't help you if you don't explain exactly the problem you are having. Your question above contains no detail.
Joel Mitchell
@HeyJoel
Lastly, I don't offer free one-to-one support, I'll pick up issues when I have time. My time is limited, please don't @ me unless you're replying to a question I've asked.
Sourabh Dhiman
@sourabh11:matrix.org
[m]
make a common header in cofoundry .It's possible or not
Bailey Ammons
@bammons
Hello, our project has various layouts that can be chosen from. At the moment we are defining the one we want to run on in appsettings, but we would like to be able to select the layout in admin. Is there a good solution for this built into the framework? It doesn't look like I can define a custom setting anywhere.
cthrower
@cthrower
I'm new to Cofoundry - Trying to setup a new site, however, when going to the page and clicking "Edit Draft" I get no visual editor buttons. Anybody experienced this before or have any idea why this might be?
Bailey Ammons
@bammons
@cthrower when you added a page with a template did the template have any regions in it?
michiel-schoofs
@michiel-schoofs
image.png
Anyone else ran into this issue when deploying?
Sourabh Dhiman
@dhiman:matrix.org
[m]
I'm new to Cofoundry - Trying to Create a table ,but i'm not able create table Please let me know how it possible
michiel-schoofs
@michiel-schoofs

I'm new to Cofoundry - Trying to Create a table ,but i'm not able create table Please let me know how it possible

A table? Do you mean in the front-end or back-end or where do you want to display a table?

Bailey Ammons
@bammons
anyone know how to configure nginx to serve the admin js and css?
Bailey Ammons
@bammons
is there an npm package for the shared css and js? I can't seem to get it to serve up with nginx on linux