Developing (v7+)

8.4.2 What's the site root (Home) page id?

Could anyone please tell me what the site root (Home) page id is? Or how do I find that out? That page doesn't have a name or url slug, so I can't use the getByName or getByPath

autonav issue after update to V. 8.2.1.

Hi, I've updated my site to V.5.8.2.1 and now the following is not working on autonav: view.php [code] if ($ni->hasSubmenu) { //class for items that have dropdown sub-menus $classes[] = 'nav-dropdown'; } [/code] thus is also not working: …

Contact form validation and debugging

I'm running C5 v8.3.2 and trying to add extra anti-spam validation to a contact form. I'm experienced in 'traditional' PHP but less so in the way that C5 hangs together. What I'm wanting to achieve is to reject any forms which contain http:// or https…

Custom Attributes from Calendar Event in Custom Template

I have successfully associated a custom "event_image" attribute to events to the built in Calendar in Concrete5.8.3. From my research, I should be able to access the image using code like: [code]$img = $event->getAttribute('event_image');[/code] Ho…

Add tripadvisor to social icons

Hi all How can I add an extra icon to the social icons? I tried to follow these instructions: https://documentation.concrete5.org/tutorials/add-new-links-to-the-social-links-dashboard-page ... and added the array alternatively to application/confi…

8.4.2 TypeError: $(...).selectmenu is not a function

I don't seem to have luck with select widgets. I have another error in a block: TypeError: $(...).selectmenu is not a function. view (example strait from jquery-ui site): [code] Select a speed: Slower Slow Medium Fast Faster …

8.4.2 How to filter with Doctrine and 2 independent fields

I have a table of groups, a table of categories and a table of items with selected groups and categories. To get a list of items with certain categories: [code] $list = $em->getRepository('RealEstate\Property\Property')->findBy(array('category' => $c…

Filter Posts