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
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
Bailey Ammons
@bammons
update on this, it was my error. Was trying to serve up static assets in the nginx config when I didn't need to
Bailey Ammons
@bammons
I know nothing gets answered here, but I'll ask anyway. Is migrating to blob storage as easy as moving the current images in to blob storage and activating the plugin? Also, does the current configuration support multiple cofoundry instances attached to the same blob storage?
Joel Mitchell
@HeyJoel
Hey @bammons , generally I encourage to post an issue as any knowledge added here is lost in the thread pretty quickly, but issues live on for others to find. Anyway, I’m not in front of a pc right now but i expect that you can just transfer the files, the names will be the same. I also believe i added an option to the azure plugin to allow you to set a prefix, which will enable you use the account for multiple instances
My original thinking though was that storage accounts themselves don’t cost anything, only the data in them, so it wasn’t a big deal that you needed one per instance.
Bailey Ammons
@bammons
@HeyJoel thank you for the advice. I'll make sure to start posting to GH from now on.
Joel Mitchell
@HeyJoel
Fyi i did check the azure repo and it doesnt look like i added the prefix to the settings, i was probably thinking of an s3 plugin i made recently.
It should be pretty easy to add if you needed it
Bailey Ammons
@bammons
Yeah I looked through the source and didn't see that either. I think we'll be fine with a storage resource/instance
could be a handy feature for the future, but not something that we would need right this moment
Joel Mitchell
@HeyJoel
👍
Khyri Carter
@Carter702
@HeyJoel It looks like when using the Azure plugin, the container name defaults to "imageassetcache". We would like to use unique container names for each instance. Submitted cofoundry-cms/Cofoundry.Plugins.Azure#3
Joel Mitchell
@HeyJoel

Hey @Carter702 , this sounds similar to baileys question above. It’s not supported, as i expected devs to use a storage account per instance, since they are costed per use and not by instance. I did have a look at adding the feature but it’s non trivial to support it with backwards compat. I’ll look into it tho as it seems there’s some interest in it.

For now you’d have to implement the changes yourself based on our source.

Khyri Carter
@Carter702
@HeyJoel thanks for the quick response. We were originally planning on a storage account per instance as well, however Azure limits storage accounts to 250 per subscription/region. I will look more into implementing this ourselves, appreciate the help!
Joel Mitchell
@HeyJoel
Oh, i did not know that. Ok it’s on the list todo.
Khyri Carter
@Carter702
@HeyJoel When using the Azure plugin, images are not being deleted from the Azure Storage Account/Container after deleting them on the admin site. I see the deleted images sitting in the AssetFileCleanupQueueItem table but I am not seeing any calls to the delete methods in AzureBlobFileService.cs being made.
Joel Mitchell
@HeyJoel
The files are cleaned up a periodically in a background task. Currently there’s no default background task runner implementation, so you need to install the hangfire plugin to get background tasks to run.
Khyri Carter
@Carter702
ok thanks
naz-B
@naz-B
hi. my custom entity details page is getting a 404.
Joel Mitchell
@HeyJoel
@naz-B hi there, can you post an issue with detailed information please
Bailey Ammons
@bammons
@HeyJoel is there a way to create an admin user in code?
Joel Mitchell
@HeyJoel
@bammons are you running latest? You should find commands in ‘IAdvancedContentRepository’
Bailey Ammons
@bammons
Okay, cool. Looks like we're on 0.9.1
naz-B
@naz-B
@HeyJoel in the IAdvancedContentRepository how do we save an image? can you please link an example code?
Joel Mitchell
@HeyJoel
@naz-B I assume you're having trouble with IUploadedFile, as I asked before, please post an issue with detailed information (the answer can then be found by others). I have created an issue for you and answered here: cofoundry-cms/cofoundry#471
naz-B
@naz-B
thanks @HeyJoel
naz-B
@naz-B
hi @HeyJoel im getting InvalidOperationException: Unable to resolve service for type 'Cofoundry.Web.FormFileUploadedFileFactory' while attempting to activate 'Cofoundry.Samples.SimpleSite.RegisterViewComponent'. for fileuploadfactory
Joel Mitchell
@HeyJoel
It should be IFormFileUploadedFileFactory
Inject the interface not the concrete type
naz-B
@naz-B
yeah thats the interface i am injecting. i am getting the above error though.
Joel Mitchell
@HeyJoel
It works for me in the latest version of the sample project. You should be using .net core 3.1, not 5 or 6. If you are continuing to have problems please post a reproducible code excerpt to the Cofoundry issue log on github.
irdublu
@irdublu
Just attempting my first site. Does anyone know if it is possible to delete and replace an image in the Split Content Split Section Page Block Type or must the entire block be deleted then start again? Is it OK to ask here or should I ask this on the Issues section on GitHub?
Joel Mitchell
@HeyJoel
You can edit a block after it has been created. Hover over and you should see an edit button. When editing you should be able to change the asset to another
irdublu
@irdublu
@HeyJoel Thanks for quick reply. I'm in SimpleSite. I see Edit. When clicked it opens 'Edit Content Block. That shows Title, Text and Image Asset. In Image Asset is an image. I see no way to change it for another image. Clicking the cog offers nothing new, just a ticked tick box and Select, Cancel and Filter buttons. This is why it seems I must delete the whole Block including the text and its formatting.
Joel Mitchell
@HeyJoel
image.png
@irdublu the plus icon in the right hand side of the asset picker allows you to add a new asset. You can also manage image assets separately in their section add/delete etc
I've thought about the idea of "owned" assets, whereby the image asset could appear to be uploaded directly against a custom entity or block, bypassing the asset library. I think that would be useful for some as it makes it a simpler UX at the expense of reusability.
irdublu
@irdublu

@HeyJoel I'm wondering if the answer is I was using version 0.9.0 with SkiaSharp v0.3.0. I installed versions 0.10.0 and 0.4.0 into a new VS solution and now see what you describe. Thank you.

I've looked at the GitHub Docs and Issues page and here in Gitter but have not found anything to explain the proper way to copy an existing site to a new site, in other words to replicate an existing site into a new Visual Studio Solution. Is it a matter of scripting the original db into a new db and setting the new VS project's appsettings connectionstring to the new db?

Joel Mitchell
@HeyJoel
@irdublu yes, just copy the files and then either create a new database or copy the database if you want to keep your content data. You’ll also need to copy asset files which by default are in the app_data folder, but it depends on your setup
irdublu
@irdublu
@HeyJoel Just to be clear, when you say copy the files, are you referring to the VS Project files, Assets and App_Data and then make a new db? Wouldn't all the pages be lost? My understanding is the pages only exist in the db and not in VS files. Is that wrong? The pages are what have taken so much time to create.
Joel Mitchell
@HeyJoel
The content (pages etc) are stored in the database, so yes you’ll need to copy the database to keep the content
irdublu
@irdublu
Great, many thanks.