Developing (v7+)

How to remove all rows from a database table?

I'm stuck on how to actually drop or even remove rows from a database table when a block is uninstalled. Here's my current method that I'm using. [code] function delete(){ $db = Loader::db(); $db->query("DELETE * FROM tableName"); parent…

How do I do this: Link launches lightbox image collection ?

Hi I like how the "screenshots" icon on the Addon's pages launches the first photo in a collection of images. You then click the next arrow to go through them. e.g. http://www.concrete5.org/marketplace/addons/extended-google-map/ Can we do this w…

Adding Dashboard Tabs / Pages When Package is Installed

Hi, How can I add a tab/page to someone's dashboard when they install my addon (package)? I saw this post, but was still confused: http://www.concrete5.org/community/forums/customizing_c5/creating-dashboard-page-tutorial/ Thank you.

swfobject not included in custom 404 page

Hi everybody, Is there any way to add swfobject.js only to page_not_found. I have a flash menu there and right now its showing me "You must install Adobe Flash to view this content.". I know I can add it to my theme header but that would add it t…

Fatal Error when publish page

I get this error when publishing a page.... Please help... Fatal error: Uncaught exception 'ADODB_Exception' with message 'mysql error: [126: Incorrect key file for table './nogepa/PageSearchIndex.MYI'; try to repair it] in EXECUTE("UPDATE PageSearchIn…

Getting Page Attribute Select Value

I have created a custom page attribute called 'background_theme'. This will be used where users can change the properties of the page attribute to select from a drop down one of theme options. What I am trying to do is in the header.php is look at t…

Creating your own installation script with Custom Theme

I would like to pre-install some themes in an installation of concrete, I have managed to install the auto-reset script and can pre-install some of the add-ons but would like to install it with some extras that I create every time I set up a new site. Ma…

API: Adding a page in unapproved mode

Hey All, I'm trying to write some code to add a page in the unapproved state. So, I'm working at it in this way: [code] $parent = Page::getByID($parent_id); $ct =CollectionType::getByID($collection_type); $data = array('cName' => 'Page Nam…

retrieve value upload form

Hy. I'm creating a new custom block upload (see screenshot). I would like to send email notification to users when I upload a file. I have a problem. How can I retrieve value of checkboxes? [code] add.php ************************************…

Filter Posts