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
121GWJolt ("Jolt")
@121GWJolt
So, it seems that it's failing to create the localdb database and that's why it's failing. Do I need to create the database ahead of time?
This is on the new sample for reference
2019-10-04 17:18:32.33 Logon Login failed for user [REDACTED]. Reason: Failed to open the explicitly specified database 'coFoundryTest'. [CLIENT: <named pipe>]
2019-10-04 17:18:52.43 Logon Error: 18456, Severity: 14, State: 38.
^logs from localdb
Joel Mitchell
@HeyJoel
Yes you need to create the db. SQLServer 2012+ is supported. You can try localdb, i think I've seen someone else has got it to work but it isnt tested by us
121GWJolt ("Jolt")
@121GWJolt
It worked! Thank you!
121GWJolt ("Jolt")
@121GWJolt
I would like to ask before exploring CoFoundry further: my site will be using a lot of images. A whole lot. Currently the number is 1,777. If all of those images are registered to CoFoundry will I experience slowdowns when accessing CoFoundry's image panel and image picker?
121GWJolt ("Jolt")
@121GWJolt

So, a bit of a concern:

I noticed while testing out the code that you're apparently using TinyMCE for the visual editor? They changed their licensing model recently so that if you want to self-host you have to pay a large sum of money if not using the code for anything that doesn't fall under LGPLv3 terms,. As this project is apparently targeted as an MIT license, I figured you would like to know this. I did see that the code was minified and combined into a different js file so I am unsure how feasible that is but it might be something you'd want to point out to whoever's adopting the project, as this means they either need to treat this code like LGPLv3 (and thus, due to how that license works, their own code would need to be compatible with LGPLv3) or buy a license from tiny.cloud instead.

Although, if I'm not correct about that, please feel free to inform me, as this is mainly based on how I'm interpreting it.

Joel Mitchell
@HeyJoel
Re images, we are still in a pre 1.0 phase and we haven't done any scale out performance testing. I would expect it to perform fine, the lists are paged and resized images are cached, although I'd suggest sticking a reverse proxy CDN like cloudflare in front of it. The problem might be with UX on the picker in that we would like to eventually include better search and organisational features.
With regards to tiny mce, last i looked into it lgpl allows using code as a linked module inside an application with a more restrictive licence, which is different from the more restrictive gpl3. I can look into it though, did it change from lgpl? I thought it had always been lgpl?
121GWJolt ("Jolt")
@121GWJolt
It changed LGPL versions, at the very least. They're requiring licenses for self-hosting now, and I doubt anyone just runs tinyMCE on a server, so it's a little unclear to me what the case is here.
Also thank you for the information about the images!
geovan117
@geovan117
Hi, Is it possible to post a document as a byte[]?
Joel Mitchell
@HeyJoel
@geovan117 can you expand a little? Do you mean adding via the admin panel? or adding via the API? Or something else
geovan117
@geovan117
Hi, sorry yes, adding via API
geovan117
@geovan117

Currently using a method which uses a IFormFile below

var command = new AddDocumentAssetCommand()
{
File = _formfileUploadFactory.Create(formFile),
Title = "Test File"
};

var elevatedExecutionContext = await _executionContextFactory.CreateSystemUserExecutionContextAsync();
await _documentAssetRepository.AddDocumentAssetAsync(command, elevatedExecutionContext);

Is there a way to do this If Im receiving the file a btye[] , any objects I could use,

Many Thanks

Joel Mitchell
@HeyJoel
You could make your own implementation of IUploadedFile that takes in a byte stream. See FormFileUploadedFile for the Cofoundry default implementation that uses a IFormFile source.
geovan117
@geovan117
Thanks for the quick reply :)
Hobnob93
@Hobnob93
Afternoon, @HeyJoel ! Just a quick question; is Cofoundry development still ongoing? I only ask as I'm really enjoying using it but was sad to see little activity over the last 6 months on Github. Has the project fallen through, or is work still certainly continuing? Thanks! :)
Joel Mitchell
@HeyJoel
Hi @Hobnob93, we lost our sponsor at the start of the year which means I've had to take on other work and haven't been able to work on Cofoundry much. We had a positive lead on a sponsor earlier in the year but that didn't work out in the end. In the last few weeks we've got someone else on board and so we hope to see work start up again soon, hopefully in December and we'll have to see how we go from there. The plan is to eventually get to a position where we're self-sufficient, or have multiple sponsors that ensures the longevity of the project, but it's a bit of a journey to get there.
Glad to hear you're enjoying using it though, positive feedback does keep us motivated and helps us justify the project to potential sponsors =)
Hobnob93
@Hobnob93
@HeyJoel wow, speedy reply! Thank you for the explanation - really hope the sponsors can pick up again as this is a really promising CMS! Wishing you all the best, both you and Cofoundry deserve to do well. Keep us updated :)
David Parr
@BarFoo
Hi @HeyJoel how much do you need from a sponsor?
Have you guys considered patreon?
Joel Mitchell
@HeyJoel
Hi @BarFoo, Cofoundry is a large project with a wide scope when you consider all the ways the project can be used and the configurations it can be deployed under. It's not really a project that can be run on just my spare time and as such we're looking for a sum that supports at the very least a developer salary (or portion of) that can put us on the road to self-sufficiency. The patreon model doesn't realistically work for our situation - ImageSharp being a good example of what you can achieve in our .NET community after several years through this method (annual budget: $980) https://opencollective.com/imagesharp?#section-budget
David Parr
@BarFoo
I have a weird issue with a Cofoundry data model. A property defined with a decimal type isn't showing up in the admin section. Any idea?
nevermind, I am being an idiot. Of course I need the [Number] annotation. :)
AdamJacks
@AdamJacks
Hey guys, I'm looking for a CMS which supports both inline editing and Oauth2. Is authenticating with Oauth2 possible with Cofoundry?
Joel Mitchell
@HeyJoel
Joel Mitchell
@HeyJoel
You'd need to add the OAuth parts yourself and then provision the user and log them in. The sample I linked to really just deals with a Members area and I guess you're looking at using OAuth to log the user tino the Admin area. The principal should be the same, but it may be more DIY that you're looking for.
AdamJacks
@AdamJacks
@HeyJoel Brilliant, thank you!
Missshu
@Missshu
Hello there, I am evaluating Cofoundry to implement document repository feature. I have created a sample project and it has all the features including a login feature. But I only want to use Content Management component -Documents feature and integrate it into an existing application that has it own login mechanism. I don't want to use the whole feature, just the document uploading and downloading feature. Is it possible to do that?
Joel Mitchell
@HeyJoel
Hi @Missshu , take a look at the common config settings, I think you'll be looking for settings like Cofoundry:Pages:Disabled and Cofoundry:ImageAssets:Disabled
You can disable the admin panel completely with Cofoundry:Admin:Disabled if you're not wanting to use the UI at all
zool128
@zool128_twitter
Hi! Is there any timeframe for porting Cofoundry to .net core 3.1? Is there anything we could help to port it? We're going to start a new project where .net core 3.1 is mandatory, and I'd love to use Cofoundry for it :D
Joel Mitchell
@HeyJoel
Hi @zool128_twitter no timeframe at present, we'd be waiting for the 3.1 release before even looking at it, but I'd expect to be working on it at the end of the year
zool128
@zool128_twitter
@HeyJoel Thanks, thats good to hear that there is a plan to do the upgrade. Our plan is to start the project in january, but we're not required to start with cofoundry, so that will be fine for us.
Missshu
@Missshu
@HeyJoel I see that we can create directories and assign the directories when we create pages. But can we integrate the directories feature with the Documents feature? Meaning can we create a directory hierarchy and upload documents to each sub directory?
Joel Mitchell
@HeyJoel
@Missshu Nope, there's no folder management of assets yet. Issue #226 covers this. You can use tags to organise and filter assets, but it's not as good as it could be
Missshu
@Missshu
@HeyJoel Thank you for your response. I will look for another CMS then.
AdamJacks
@AdamJacks
Hey guys, is it possible to set user permissions per page? I have multiple content pages but only want to allow users to edit their own page
AdamJacks
@AdamJacks
@HeyJoel
Joel Mitchell
@HeyJoel
Hi @AdamJacks that's not currently possible but I've added issue #359 to cover this. Feel free to add any more detail to that issue.
therrealdude
@therrealdude
Hello there! I'm brand new to Cofoundry and am trying to figure out why the visual editor is not working for me in the bare bones solution I have built. I downloaded the Simple Site and those regions appear to work. Is there some javascript I have to add or something? @HeyJoel
Joel Mitchell
@HeyJoel
Hi @therrealdude , there's no JavaScript you need to add, it gets inserted automatically. Some of the other samples are a bit more bare bones e.g. Cofoundry.Samples.PageBlockTypes and you might want to have a look at that.
Also remember when defining regions that they need to be async and you nee dto call InvokeAsync at the end of the definition. i.e.
@(await Cofoundry.Template.Region("Body")
                .AllowMultipleBlocks()
                .EmptyContentMinHeight(500)
                .InvokeAsync())
nassimerrahoui
@nassimerrahoui
Hello,
nassimerrahoui
@nassimerrahoui
I would like to know if it is possible to use ASPX files as templates instead of Razor files (cshtml + cshtml.cs) ? Thank you.
Joel Mitchell
@HeyJoel
@nassimerrahoui Web forms is not a tested scenario, and we will soon be moving to .NET core 3.1 which is not compatible with the .NET framework, so I would not advise it.
nassimerrahoui
@nassimerrahoui
@HeyJoel Thank you for your help.