Developing (v7+)

Importing Styles

How do I import styles? I have a css file called 'style.css' however when I add a block nothing appears in the Styles dropdown menu at the top - so I can't apply any specific style.

Custom backgrounds in main div

I have a problem I can't figure out. My site consists of different backgrounds in the main content area for each page. How do I build this into an editable block? Do I create a new page template for each page? The text that the editor inputs wil…

Quick blog question

Hi, I just bought the blog add-on, which I am sure many folks here have. A quick question -- is there a way to add a video to a post, like a youtube video? Thanks very much. Andrey

Form helper :: <input type="button"

[code]Fatal error: Call to undefined method FormHelper::button()[/code] Half a job bob! ;-> @Frz: could I kindly request the following addition to your form helper please?? [code] /** * Creates a basic button * @param string $name * @…

Complex SQL Statement Woes

I've got a SQL statement I need to run for a report that uses a UNION clause and I'm running into some difficulty getting it to execute successfully. I'm running it in a class that extends DatabaseItemList (for example): [code] class myList extends…

Where to put a get data type of function in a package

I'm building a package and I have a function that retrieves specific data from a table and returns an array. I need this for a view in a block and a single page which are part of the same package. Trying to stick to best practices, where should I put it?

Redirect if logged in?

Hi I wonder if it's possible to have a redirect on a link (page) in a autonav, but only if the user is logged in? I have one page in my navigation setup as a login page with the login addon. Now when a user logs in they are automatically redirected…

Block error message

I created and installed a block with a few fields for text and this error was returned: Fatal error: View::render() [view.render]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definitio…

Filter Posts