Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Pauli Østerø
    @burningice2866

    @slav_kris_twitter There is a plugin for it here where you can download either all or a subset of the mediaarchive as a zip-file. It will retain the folder-structure and filenames/format

    https://github.com/burningice2866/CompositeC1Contrib/tree/master/DownloadFoldersAsZip

    Pauli Østerø
    @burningice2866
    I can send you the package for local install if you can't download and build from source
    NimeCloud
    @NimeCloud

    Hi guys, happy corona quarantine days at home! I'm playing with C1 WebApi, by default the output is XML, you can set it as json by adding query parameter like ?type=json or modifying the Startup.cs and adding the line

    GlobalConfiguration.Configuration.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));

    does the job, however the page output content type is text/html -obviously-. Now, how can I set the output json by default and make the output application/json?

    In short I want json output instead of XML :D
    Ryan
    @rmzeck
    Hi, all. Hope everyone is doing well. Is anyone familiar with the purpose of phantomJS.exe and also if it has any bearing on the random files found at: app_data/composite/cache/temp? Just looking for a little insight as to what's going on behind the scenes with these. Thanks in advance.
    Dmitry Dzygin
    @napernik
    @rmzeck PhantomJs is used for rendering function previews in the cms console. It creates some temp files that serve as a browser cache.
    @NimeCloud if I remember correctly, adding an HTTP header "Accept: application/json" to the request should change the response type to JSON.
    Ryan
    @rmzeck
    @napernik thanks for the reply! I'm' wondering if this is a process that would ever run automatically, or is this exclusively triggered by user interaction of some kind? Thanks again.
    Dmitry Dzygin
    @napernik
    @rmzeck there're a few user interactions that trigger it. One is - when you open a page for editing, the template is rendered with PhantomJs to determine the width of every placeholder, the other one - when you edit a page and there's a function in the content, PhantomJs is used for generating a preview image.
    @phillips1021 it is most likely a server side error, can you check the C1 log for related errors?
    NimeCloud
    @NimeCloud
    Composite.Tools.OData source code needs to be modified. I've modded the .cs file and fixed the compile error. Local package is installed on my local project and I could query http://localhost:36859/OData/OData.svc/ in LinqPad 4 however real website https://izsmmmo.org.tr/OData/OData.svc got 404 error. Local version C1 is 6.9.7410.31615, real site is 6.7.7240.24791. Any idea? Plus: Does LinqPad 6 support OData?
    Pauli Østerø
    @burningice2866
    @NimeCloud if you're a fan of LinqPad you should take a look at https://github.com/burningice2866/CompositeC1Contrib.LINQPad. Its a small serverside component and then a driver for LinqPad to query data from a C1 website like it was nomal sql tables
    Egide
    @Egide-C
    Hi, i have some trouble using or configuring page comments, the page scope "current page" filter gives me an error. Any advice?
    Without filter, i get all comments on all blog entries, when i use filter, i don't see any comments, get an string type error and all comments fields are missing.
    Volodymyr Muzyka
    @aeont
    Many years ago we were able to integrate nopcommerce with c1.. curious if anyone have any experience and luck with recent versions.
    davodmusa
    @davodmusa
    Hi, I am a newcomer and I want to write a module and installation package in C# for my site. I am looking for training in this field. Thank you for your help.
    NimeCloud
    @NimeCloud
    I want to send push notification when a record is inserted. Does C1 has trigger event functionality?
    Christoph Keller
    @ckeller81

    Hey,

    You can use the DataEventSystemFacade (https://github.com/Orckestra/C1-CMS-Foundation/blob/dev/Composite/Data/DataEventSystemFacade.cs) to subscribe to events for a given datatype.

    You can use DataEventSystemFacade.SubscribeToDataAfterAdd<IDataTypeName>(EventHandlerMethod, false).

    Hope this helps. Best regards and happy coding,
    Chris

    tejendra6574
    @tejendra6574
    Hi Experts, I am new to C1-CMS, going through the tutorials and videos...will be active soon when i get hang of it...;)
    sandip619007
    @sandip619007
    My newly configured website loads fine with C1 but admin panel initializes and shows shutting down. Anyone has any idea why this happens?
    sandip619007
    @sandip619007
    Ryan
    @rmzeck
    Hello, all! I'm having some issues with the blog package, specifically the rss functionality. When I view the feed link: https://www.idmi.net/BlogRssFeed.ashx?bid=965d64f1-f716-4028-b632-7a29330be82e&IsGlobal=False&cultureName=en-us it registers the content as html instead of a proper xml rss feed. I assumed that we had done something wrong, so I setup a local instance of c1, installed the blog, and found it worked correctly. Surprisingly, after loading up the feed link on my local instance for a second time, I found that I'm now experiencing the same exact thing as in the link I posted above. the xml feed no longer shows, but rather I get a block of xml in HTML. Anyone exprienece this before, or have any clue with what's going on? Might this be a bug within the blog package itself? Thanks in advance for your help.
    Pauli Østerø
    @burningice2866

    @rmzeck Yeah, its a Bug in the Blog package/plugin. The first time you visit a the feed for a given page, it hits this line (https://github.com/Orckestra/CMS-Packages/blob/master/Composite.Community.Blog/Composite.Community.Blog/BlogRssFeed.ashx.cs#L33) which sets the content type correctly to text/xml, but after that the response is in the cache which skips that line.

    That line shouldn't be within that if-statement, could be moved to line 66 so contenttype is always set, cache miss or not

    Ryan
    @rmzeck
    Pauli, thank you so much for the quick response. That was incredibly helpful. Best regards, friend!
    Ryan
    @rmzeck
    Hi, everyone. I've setup my own package server, and I'm finding that some of the packages I upload cannot be seen from the target site. The packages I've uploaded were all created via Package Creator, and can successfully be installed via the install local packages method. Any clue why some of my packages are showing and others will not? Thanks in advance!
    Sebastian König
    @sepplK
    Hi Devs, is there a best practice anywhere how to use git with c1 website projects and dev/production environments? How to share all the meta data with multiple users? Thanks for help.
    Evil Apple
    @EvilApple8_twitter
    Hi! Once upon a time I saw in your documentation a url that is inserted into the browser to display the speed of razor functions. Please remind me of this url, because I can't remember it and can't find it in the documentation.
    Evil Apple
    @EvilApple8_twitter
    @sepplK I'm not sure, but this help might help you
    https://docs.c1.orckestra.com/Configuration/CMS-and-Version-Control
    Sebastian König
    @sepplK
    @EvilApple8_twitter thanks!!!
    Allan Hougaard Kleist
    @djalfe
    How do i connect UrlComboBox to an property in razor function ??
    [FunctionParameter(Label = "Page or external link"  WidgetFactoryMethod or WidgetMarkup or ???)]
        public string Link { get; set; }
    Allan Hougaard Kleist
    @djalfe

    okey figured it out

    [FunctionParameter(Label = "Side eller extern link", WidgetMarkup = "<f:widgetfunction name=\"Composite.Widgets.String.UrlComboBox\" xmlns:f=\"http://www.composite.net/ns/function/1.0\" />")]
        public string Link { get; set; }

    Next question: How can i force my comboUrlBox to, only show pages and not media arrchive ??

    Allan Hougaard Kleist
    @djalfe

    ok it seams not possible, because 'handle' parameter is hardcoded to UrlComboBox

    <ui:urlinputdialog id="<%= this.UniqueID  %>" type="url" handle="Composite.Management.LinkableSelectorDialog" .... />

    or is there a way i do not know ???

    Taras Nakonechnyi
    @neexite
    Hi, there are two ways:
    1) you can copy UrlComboBox and add as new widget and customize as you want.
    2) use widget Composite.Widgets.String.TreeSelector . But this widget don't allow to set custom value like UrlComboBox
    2 replies
    NimeCloud
    @NimeCloud

    Hi! How can I fix the things like:

    Composite.Data.DataSerilizationException: The data type 'izsmmmo.Seriler.Haberler' does not contain a property named 'Anons', type might have changed sinse this serialized data was created at Composite.Core.Serialization.SystemCollectionValueXmlSerializer.TryDeserialize(XElement serializedObject, IXmlSerializer xmlSerializer, Object& deserializedObject)

    Anons is a boolean property and I can edit it on console or in code.

    NimeCloud
    @NimeCloud
    I've modified related xml data file and inserted Anons="false" for every single records. There are fresh new log records in the log panel.
    Allan Hougaard Kleist
    @djalfe
    Isn't it about time for a new and improved content editor. "Block editor" could be a way
    https://drupalgutenberg.org/demo
    Ebrahem
    @EbrahemLuhar
    Hi, I'm trying to add pages that I would like to be hidden from navigation but I'm not sure what the best way to do this is.
    I am currently using a foreach loop in a Razor function to get the subpages to show in my navbar, but do not know how to stop certain pages being shown.
    If anyone has any experience with something like this any help would be much appreciated, thanks.
    2 replies
    Christoph Keller
    @ckeller81

    Hey Ebrahem,

    I usually work with a marker IPageMetaData datatype (in my case IHiddenInNavigation) added to the given pages.

    Then in the razor-page looping through the pages, you can check the page metadata by using:
    PageManager.GetPageById(pageNode.Id).GetMetaData().OfType<IHiddenInNavigation>().Any()

    Hope this helps :)

    Best regards,
    Chris

    Ebrahem
    @EbrahemLuhar

    Hi, I'm am trying to create a function which has multiple data field types that use the VISUALXHTMLEDITOR. I want to hide the output of a field and a paragraph tag before it if the VISUALXHTMLEDITOR has no value.

    I have been unable to do this with if statements using !string.IsNullOrEmpty or checking if the length of the string is 0 as the paragraph still shows up.

    I am guessing this has something to do with the VISUALXHTMLEDITOR as !string.IsNullOrEmpty works fine with data field types where I have used the TEXTBOX.

    If anyone has experience with hiding elements based on the VISUALXHTMLEDITOR value, help would be much appreciated.

    4 replies
    misterflippy
    @misterflippy
    At work, I inherited a repository with C1 CMS code that does not include Composite.Generated.dll. In Visual Studio, I now seem to be stuck in a build failure loop -- I can't generate the DLL because the build is failing because of build failures due to the missing DLL. What's the best way to proceed? I feel like I'm missing something obvious.
    misterflippy
    @misterflippy
    Actually, just found this that indicates the only way is to remove the files causing the build failure in order to build and then put them back in: https://github.com/Orckestra/C1-CMS-Foundation/issues/507#issuecomment-355542619
    Pauli Østerø
    @burningice2866
    Yes, if you have a app_code folder remove that first and out it back after C1 had a chance to start.
    jeverdrengen
    @jeverdrengen

    Hey
    After having updated to 6.8 my ancient Composite.Forms.Renderer is throeing this error:

    Server Error in '/' Application.
    The configuration could not be found for name 'Composite.Plugins.FormsRenderer' in factory Composite.Core.ResourceSystem.Plugins.ResourceProvider.Runtime.ResourceProviderCustomFactory.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    
    Exception Details: System.Configuration.ConfigurationErrorsException: The configuration could not be found for name 'Composite.Plugins.FormsRenderer' in factory Composite.Core.ResourceSystem.Plugins.ResourceProvider.Runtime.ResourceProviderCustomFactory.
    
    Source Error:
    
    
    Line 37:         IntroText.Text = parameters.GetParameter<string>("IntroText");
    Line 38:         useCaptcha = parameters.GetParameter<bool>("UseCaptcha");
    Line 39:         ValidationSummary.HeaderText = FormsRenderer.GetFrontendString("Composite.Plugins.FormsRenderer", "Composite.Forms.ValidationSummary.HeaderText");

    Anyway to fix this or so I have to install one of the new form packages (jot form etc) and try to migrate all the data?

    Ebrahem
    @EbrahemLuhar

    Hi, I'm having an issue with adding the & symbol on a page template.

    The following part of my inline script is what is throwing the error, but the & is causing the error (I need it to show as & and not &)
    dl = l != 'dataLayer' ? '&l=' + l : '';

    Does anyone know how to get around this? Any help would be much appreciated, thanks

    toliphant
    @toliphant
    Having some issues with Form Builder and the export function. Seems that when you export to Excel, if you are using a newer version, .xsl will not open and each file needs to be repaired. I tried to change the extension in the Download.ashx file to .xslx but this also did not work. The issue states that the document type and the extension don't match up. Any advice to get around this? The issue popped up when we updated to Office 16 to be more specific.
    toliphant
    @toliphant

    Having some issues with Form Builder and the export function. Seems that when you export to Excel, if you are using a newer version, .xsl will not open and each file needs to be repaired. I tried to change the extension in the Download.ashx file to .xslx but this also did not work. The issue states that the document type and the extension don't match up. Any advice to get around this? The issue popped up when we updated to Office 16 to be more specific.

    I messed up on some typing and it should be .xls and .xlsx for the extensions that it is saving and extensions I have tried. I have also tried to change the content type to match up with the xlsx which is application/vnd.openxmlformats-officedocument.spreadsheetml.sheet but seems that possibly how the data is being created is causing the issues, which is in a .dll. I am checking into dotPeek to see what I can find as a potential fix.

    John Simon Brady
    @JohnSBrady_twitter
    Is there anyone in Ireland or specifically Dublin who is developing on this platform?
    Allan Hougaard Kleist
    @djalfe

    I'm playing around with TreeDefinitions as an Application, i'm trying to view a group of images using BrowserImage attribute
    https://github.com/Orckestra/C1-CMS-Foundation/blob/8ca9f26bf26c686b2a6282d4b3a6a1ffceced4da/Composite/C1Console/Trees/DataElementsTreeNode.cs#L54

    <DataElements Label="${C1:Data:Temp.Data.Types.ICarouselItemImage:ImagePath}" Type="Temp.Data.Types.ICarouselItemImage" Icon="image" Display="Auto" BrowserImage="~/media(${C1:Data:Temp.Data.Types.ICarouselItemImage:ImagePath})">

    The Property ImagePath in datastore is MediaArchive:c3f688f5-11fa-4fa2-937b-3afc8ed0db42 , but when the BrowserImage url is renderet it's look like this
    "/media(MediaArchive:/temp/Carousel/pic1.png)" and this is not working.

    Do anybody have an idea whats going on ??

    2 replies
    Allan Hougaard Kleist
    @djalfe
    image.png
    mwhita
    @mwhita

    I'm having issues adding Google Tag Manager but when I place the code given to me by Google, I get the error: '=' is an unexpected token. The expected token is ';'.
    I am trying to place the code into the Head tag of all pages and I tried this by placing into the "MasterLayout.cshtml" file as well as the "CommonHtmlHead.cshtml" files in the /App-Data/PageTemplates/ folder. My installation is vanilla. Here's the code I got from Google:
    <!-- Google Tag Manager -->

    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-XXXXX');</script>
    <!-- End Google Tag Manager -->