Developing (v7+)

edit() Method of BlockController - Help

The documentation says with regard to the edit() method of a block controller... "This function is automatically run when the block is edited." That's a bit vague and unclear. Does that means it runs before the block's edit dialog appears? > That…

Image File Url

I'm working with the "pronews" add-on and I'm trying to figure out how to use the thumbnails to generate a larger image preferably in a pop-up fancy box solution. Right now i'm trying to find the right path to link to. I'm using this at the moment... …

echo t

Hi, What's the significance of the "t" in [code] [/code]

Find the last block

I need to set a class of "last" to the div containing the last Block in my Area. Is there something built into C5 that tells me the current count of the blocks being setup? Or how can I figure out when the last block is being added and add this class …

Date Field in Custom Block

Is it possible to create a "Date Field" in a custom block? I am creating a site for a musician with a page showing tour dates. I'm hoping to just have a date-picker that they can use to select a date for their tours.

Multiple links pointing to One page

Hi guys, I am building a products based website. A lot of the time, products crossover to different areas. My question is how can i use autonav and page list to show a product in one area without duplicating the product? Here is an example: -Cat…

Easy link creator help.

Okay can anyone tell me how to add a button for the user so that they can easily link to a page on the website he is at? I was thinking of using java to create it, any advice or pointers are appreciated. I'm still new to php and javascript so please…

multiple tables in block

Hi, I am developing a block, and would need to insert and update data into 3 different tables. I have looked at some core blocks, and it looks like SQL statements are being used in functions within controller.php, but those functions do not seem to be use…

Echo Out an SQL Query

I am attempting to edit a Custom Search Block, to filter by page custom attributes. I have altered the pages, but am unable to pull any results back when, attempting to use anything other then filterByCollectionTypeHandle I would like to be able to …

Import users... MySQL?

Hi All, I've been trying to use Kino's import users which I can't get to work plus he's not responding to emails. The add-on doesn't seem to work with the current version of C5. I urgently need a way of importing users, emails and passwords (grou…

Filter Posts