Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Bruce Phillips
    @phillips1021
    In the main webconfig in the website root is the statement on line 133
    <system.codedom>
    <compilers>
    <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=0.2.0.0, Culture=neutral" warningLevel="4" />
    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" compilerOptions="/optioninfer+" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <providerOption name="CompilerVersion" value="v4.0" />
    </compiler>
    </compilers>
    </system.codedom>
    What is weird is that the same statement was in the root webconfig before I updated to CMS 6.7:
    <system.codedom>
    <compilers>
    <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=0.2.0.0, Culture=neutral" warningLevel="4"/>
    <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" compilerOptions="/optioninfer+" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <providerOption name="CompilerVersion" value="v4.0"/>
    </compiler>
    </compilers>
    Bruce Phillips
    @phillips1021
    Unable to select a child page in the content tree - when I click on the parent page in the content section tree it shows the child pages but then the cursor changes to a blue circle and I'm unable to select anything
    Ryan
    @rmzeck
    Hello all - I'm looking to add c1 console logging/tracing for users logging in or out of the c1 console, and perhaps what pages they visit or actions they make. Has anyone had any success with implementing this or something similar and can get me pointed in the right direction?
    Ebrahem
    @EbrahemLuhar
    Hi, I'm new to using the CMS and need a little help.
    Does anyone know how to get data from data folders to display as pages that can be linked too, similar to how they do in the Composite Blog?
    Any help would be much appreciated, Thanks.
    Pauli Østerø
    @burningice2866
    @EbrahemLuhar a similar question surfaced almost two years ago, unfortunately not with any outcome really but if you have made ElementProviders for your data you can include them in the Link-dialog selector as shown here https://github.com/Orckestra/C1-CMS-Foundation/issues/605#issuecomment-509324584
    Ebrahem
    @EbrahemLuhar

    @burningice2866 Thanks for getting back to me :)

    I managed to get linking to items of a data folder working (by using page data folders for now) but the links result in a page not found error.

    I am assuming I have to create a page for the data items but I'm not sure how to do this.

    So my question is how do you get data items to display as pages?

    Pauli Østerø
    @burningice2866

    You cant have data items show as pages - there is a clear seperation of Pages - data exposed as urls using its tree-structure as path, and dataitems which don't have a url you can access them by.

    Instead you need a "host" or "container" page to display your data. That is a page with a function on it, or a template containing all the logic, which reads the identifier of the data you want to display from the url, either as querystring parameter or PathInfo, that is what looks like the url continuing after the page.

    http://www.contoso.com/products/123

    • products is your page
    • 123 is what we refer to as pathinfo

    By having a function on your page which reads the pathinfo you can now display a dataitem with the id of 123

    Ebrahem
    @EbrahemLuhar
    @burningice2866 Thanks for the explanation 👍
    Kris Slav
    @slav_kris_twitter
    Hello, I was wondering if anyone knew of a way to export or download all Media files in their original file format? Thanks so much for any help!
    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