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
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.
irdublu
@irdublu

I must be missing something here :-
I have included HtmlToolbarPreset.AdvancedFormatting in the ContentSectionDataModel and it works. I've read #202, tried to implement it and find it just offers the BasicFormatting toolbar, probably because I do not know what string and object to pass in. Clearly I don't understand this topic sufficiently and, as #202 was raised 4 years ago, wonder if something new exists to customise a toolbar to include more features such as indent, text colour, background colour, font size and line spacing.

I do not see how to indent text other than typing loads of spaces. Also, text that is a bullet point or numeric shows as indented in the editor but when viewed in Preview, it reverts back to being left aligned against the left margin. Does anyone else see this?

Joel Mitchell
@HeyJoel
Have you looked at the docs for the html annotation? Its details a lot of the configuration https://www.cofoundry.org/docs/content-management/data-model-annotations/html
It sounds like you will want a custom toolbar to add additional buttons for indentation
irdublu
@irdublu
@HeyJoel Sorry about that. I was so fixed on looking in Gitter and GitHub issues pages, I missed the Docs!
Got that working, thanks but now wondering how to implement the Tiny non-premium plug-ins.
Joel Mitchell
@HeyJoel
I’m sorry, I’m not familiar with that and it’s been a while since I worked on the html editor. Perhaps you could post an issue if you’re having trouble getting what you want working
irdublu
@irdublu
Thanks and good timing. I posted Issue 506 about an hour ago. I see you have replied so will take a look.
Stefan Moonen
@Qonstrukt

Hey @HeyJoel, it's been a while and I've been setting up a new development environment for our site with Cofoundry 0.10.3 as a few developers are now helping with it. I've been busy setting up a local MSSQL database, and as such was setting up Cofoundry anew as well, but I run into an issue logging in. I keep getting into a login loop. I can create the first user using the setup correctly, but logging in does nothing else than return this;

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5123/admin/dashboard  
info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
      Authorization failed.
info: Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler[12]
      AuthenticationScheme: Cofoundry_UserArea_Scheme_COF was challenged.
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 1.8625ms 302 
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5123/admin/auth/login?ReturnUrl=%2Fadmin%2Fdashboard

Do you have any clue what might be causing this? Could it be the new password hashing? Connecting to an existing database is still working fine.
I'm running from a clean Docker container, no Data Protection, no cache.

Joel Mitchell
@HeyJoel
The error seems to indicate that authentication was successful (pw hash fine), but there is some issue with the cookie or authorizing permissions on the route.. not sure what offhand. We introduced various security enhancements including some cookie invalidation techniques so perhaps something to do with that. U mention docker, are u running linux? Any custom auth or cookie code?
Stefan Moonen
@Qonstrukt
Not running anything custom no. I've been changing my Startup.cs to be more in line with the latest sample updates. Using AddControllersWithViews instead of AddMvc and stuff like that. I keep everything very basic at this point.
Stefan Moonen
@Qonstrukt
A cookie doesn't seem to be set at all. Could it be that not using SSL might be the issue?
Stefan Moonen
@Qonstrukt
It seems that's the issue, using a developer certificate the problem has gone away. Must've been accidental that I thought it didn't happen with another database as I was also switching away from HTTPS as I didn't see the point for local development.
Joel Mitchell
@HeyJoel
I’m not in a position to look it up right now, but there can be issues if you’re moving between http and https eg proxying through nginx, there’s some closed issues around that you might want to look at
Oh great sorry didn’t see your last message.
Stefan Moonen
@Qonstrukt
Hah no worries :) The cookie being set is marked as Secure, would it be possible to disable it?
Joel Mitchell
@HeyJoel
It’s set to the asp.net default which is something like ‘use whatever the incomming connection uses’. U can customize the cookie settings, but it’s not officially documented, it’s detailed in an issue somewhere
Stefan Moonen
@Qonstrukt
Alrighty, thanks again 😊