Developing (v7+)

8.4.2 How to get content of page programmatically

I have the blog set up. The Blog Entry page type form has a Content block. When a Blog Entry page is added with the Contents, I need the Page List block to show the page's contents too. The page description is obtained with [code] $description = $pa…

PWAs with Concrete5

Hi there I already reached out with this topic some years ago. In my view C5 has fantastic requirements on board for being a good basis for a progressive web app. Although it surely could be a bit less heavy. But anyway, I wanted to ask if there is…

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…

Filter Posts