Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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 ??

    3 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 -->

    Giovanni Palmiotto
    @mkultradev:matrix.org
    [m]
    Hi. Does anyone know if a website built C1 CMS can be published or copied to GitHub Pages?
    Dmitry Dzygin
    @napernik

    @mwhita you can try like this: <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>

    Inna Boitsun
    @InnaBoitsun
    @djalfe Hi Allan,
    You can try next solution
    BrowserImage="~/Renderers/ShowMedia.ashx?src=${C1:Data:Temp.Data.Types.ICarouselItemImage:ImageSource}&mw=500"
    Allan Hougaard Kleist
    @djalfe

    Horraaaaiiiiii :-D
    @InnaBoitsun you sav'd my day there, thanks.

    The next questen would be, if there is a attribute link BrowserImage for preview in list and for previewing image in list. Right now both using the same. Where image in list is 300x170 scaled down and crop'd, where previewing is okey

    image.png
    Inna Boitsun
    @InnaBoitsun
    @djalfe sorry, I did not crear understand the question
    Allan Hougaard Kleist
    @djalfe
    @InnaBoitsun sorry about that :-)
    Is there another attribute like BrowserImage, so i can have different imagesources for list browserimage and for item browserimage
    image.png
    Inna Boitsun
    @InnaBoitsun
    @djalfe I don't think so, I know just one
    1 reply
    Allan Hougaard Kleist
    @djalfe
    @InnaBoitsun thats a shame, can se the mediaarchive i doing it right
    image.png
    image.png
    Ryan
    @rmzeck
    Hey all, I'm noticing issues with right click in the c1 console not working on Google Chrome v90 and up. Is anyone else seeing this?
    Allan Hougaard Kleist
    @djalfe
    Jep, just updated from 89 to 90, i also have troubles rightclick. popup on insert in editor do nether working
    Ryan
    @rmzeck
    hopefully there's a workaround, or this is something that can be easily patched with a hotfix. in the meantime firefox seems to be working just fine still.
    Allan Hougaard Kleist
    @djalfe
    Ryan
    @rmzeck
    thank you, friend
    Ryan
    @rmzeck
    Hi All, I'm noticing an issue with Safari v14.1.1 on macOS Big Sur. When viewing pages, the content within the XHTML editors loads inconsistently, often just leaving the editor blank. The editor consistently fails to load when opening the .master pages under Layout. Is anyone else seeing this issue? I'm not seeing any obvious console or C1 log errors.
    Screen Shot 2021-06-07 at 2.45.08 PM.png
    Ebrahem
    @EbrahemLuhar
    Hi, I'm having some issues trying to get blog posts to show in the sitemap.xml. I am using the Blog package and the pages from the website are in the sitemap.xml but no blog posts. Does anyone know how I can get the blog posts to show in the sitemap.xml file? Thanks.
    Pauli Østerø
    @burningice2866

    @EbrahemLuhar sitemap.xml is based on whats in the SiteMapProvider. While C1 out of the box only adds pages to the SiteMapProvider, it is fortunately pluggable and you would only need create a class implementing ISiteMapPlugin to get the blogposts - which are data items, not pages, to show up in the sitemap.xml

    https://github.com/Orckestra/C1-CMS-Foundation/blob/dev/Composite/AspNet/ISiteMapPlugin.cs

    1 reply
    I'm at bit puzzled to why the Blog package doesn't already to this - the ISiteMapPlugin has been around for 3 years now. @napernik ??
    NimeCloud
    @NimeCloud
    Hi, it's been long a while and a quick question: Can I combine two fields as one data item and sort it at C1 control panel? I save Name and Surname fields separately and I could only list&sort by Name or Surname field.