Developing (v7+)

Using outside classes

Can I submit a package to the marketplace that utilizes an outside class? I have some php code that does some pretty cool stuff and I would like to submit it to the marketplace, but it uses an outside pdf class (specifically fpdf). Is this ok? Alternative…

Adding open graph meta tags to the head of a page

How do you add meta tags to the head tag of a page from a block's controller ? These are open graph meta tags that come back from a third party and change all the time, they do not stay static. Even better, is there a way to get a hold of the page's ht…

Trouble with Permissions on programmatically created user

Hey there folks! I've made a custom login which checks if the user exists, if not it creates a new user and logs the user in right after that. The user gets added to a group which has only reading permissions on the entire site. Problem: All sys…

user post

i support a website for a high school booster club and i have been asked if it is possible to allow assigned users (for instance a coach) to connect to our website, login and post a score and / or stats of a recent game. anyone have an idea of the add-on…

Sort FileList by Custom Attribute

I have added a custom date attribute to files in a File Set. I need to sort the file list by this date, but I can't figure out how to sort by this date. Are custom attributes accessible to the File Set object?

Strange AJAX interruption error on Composer

I got strange AJAX error. It could be a PC anti-virus program. It could be concrete5 bug that it's not sending the proper character encoding on AJAX. I'm hoping if anybody can help me on this issue. Worst of all, this doesn't happen all the time. …

overrideCoreByPackage view.php

Hello, I'm using Concrete5 v.5.6. I need to create a package that add some methods to the "libraries/view.php" class. Inside the controller package I've written the following code: [code] public function on_start() { $objEnv = Environment::g…

Need something simple

Hello- What I'm asking for I'm sure is pretty simple to do, I just can't find anything about this on the forms. I want this done dynamically, not hard coded. Thank you, Tony

Utility class structure, include, use and namespaces

I want to write a utility class with a bunch of static methods and make that class available to my block controllers of a package. Where do I store the utility class file in a package ? How do I namespace the utility class ? How do I include and …

Filter Posts