Developing (v7+)

Page List highlighted current page

Hi, does anyone know if it is possible to have the current page highlighted in a page list block, the way that an auto-nav block will have a nav-path-selected class added to the current page's link? Thanks, - Sherri

File attribute, add block ?

Hello all :) I create a custom block 'Slider', and i want to add for example : Slider id = 10, i want create a file attribute 'slider10' after add block. I think is in a install() method but i found documentation with package s and i search metho…

the more I read the more confused I become.

Let me explain. I look at others coding and there seems to be a lack of consistency in how things are coded. Especially with the MVC. I have seen lots of Model pages that just include a name and a var $_table = 'dbTable'; then others are just doing …

Photo blog - multiple images in post

Ok, so I added a gallery to the standard blog page, and it crashes the parent page with the edit button disapearning and the gallery falling apart on the blog page itself. So I say 'ok, just post static images in' however there is no add on to allow more …

Getting and Setting Extended User Attributes (from a select menu)

I have configured a number of custom user attributes in the Dashboard interface. Most are just text and work fine. I am able to programmatically set and get attribute values in a single page controller with no problems like this: [code] $ui = UserI…

Editing page type defaults not possible

Hi, when I try to edit a page type's defaults (because I want to assign a specific theme to pages created using the composer) by clicking on "defaults" in dashboard/pages/types, I am redirected to the home page of my site, although the address bar show…

$form->select example with array from db

in the documentation it says $form->select($name, $options, $value, $tagAttributes) sample - print $form->select('favoriteFruit', array('p' => 'Pears', 'a' => 'Apples', 'o' => 'Oranges'), 'a'); In this example, the select menu will be output, w…

Filter Posts