Developing (v7+)

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…

First block - new guy question

I need to make or find a block that will allow me to set say 3 pieces of pre-defined text as a site admin. Green, Amber, Red. Then I want to be able to allow a privileged user to set only one to be actively displayed at a time. I can create the input part…

302 Redirect issue with multilingual sites

Hi everyone I have a few multilingual hotel sites (running on 5.7.5.6 and 5.7.5.9) that produce issues revolving around google indexing: Some sub-sites just don't get indexed, apparently due to a 302 redirect ... I am using the Page Selector Attribu…

Filter Posts