Developing (v7+)

on/off switches for element classes

Is there a away to add an enable/disable a class switch on an element? I would like to be able to add a switch in Page/Settings => Design => Customise to add or not add a 'sticky' class to the header and would like the client to decide whether they want a…

full page caching and Varnish

I have been working on speed ups for a large site running 5.6 and found the article discussing defining PAGE_CACHE_LIBRARY to use varnish as a full page cache. I would be very interested in testing this is a new site I am working on using 8.1. Is this st…

Survey Attribute to trigger survey after file download

Hi Just wondering if there is a way to trigger a survey from a file having a yes/no attribute? i.e User clicks on a file they wish to download, a survey pops up saying that the download will begin shortly, along with a short survey asking a few questi…

Adding fonts to theme customization

How do I add any number of fonts to the theme customizer? If you set a font name in the less variables then that font shows up in the list, but only for the item you set the font on. How can I add custom fonts to all the font selectors, so there is …

Error Empty Trash + Adding page

Hi, I notice also that i cant create new pages at the root of the sitemap. When i create the page i can enter name and description and then as soon as i click on the Add Page button i'm redirected to the homepage of the website and nothing as been cr…

Using \Config::set vs \Config::save

I can override the system login page using: [code] \Config::save('app.theme_paths./login', ['theme_name']); [/code] The docs at https://documentation.concrete5.org/developers/packages/storing-configuration-values say I should be able to use \Config:…

Global Area stopped working after update to v8

Hi I recently updated c5 from v7 to v8.1. After the update I noticed that the navigation menu (auto nav) of my website was missing. When i try to put a block in the global area nothing happens. I did not change any settings or the theme files. What see…

Version 8.1.0 getAttribute from user

I am trying to get an array of user attributes using the following code: However the attribute I am getting has the option of multiple selects and therefore prints the out like "Attribute 1 Attribute 2" instead of an array which can be accessed. Is…

max_input_vars

Hi all Trying to export a 5.8 database from localhost / my phpadmin Can anyone point me in the direction of where I can set the max_input_vars to more that 1000 (what the default is?). Have gone round and round and have decided that I must be nuts …

How to check if a function returns error or not

Say you pass the wrong data type to a function such as DateTime::createFromFormat, You will get an error that stops the script. Is there a way to instead check if the function returns an error or not then do something based on that? Kind of how bash "i…

Filter Posts