Dolphin Blocks List

Hello All,

Dolphin pages are a set of blocks.
May someone who is familar to Dolphin tells me what is the class for these blocks?

In advance thanks.
-Charles

Quote · 29 Mar 2012

I have not looked into this, but if you use firefox and download and use firebug plugin you will be able to see the locations and classes of most things on your site.

Quote · 29 Mar 2012

 

Hello All,

Dolphin pages are a set of blocks.
May someone who is familar to Dolphin tells me what is the class for these blocks?

In advance thanks.
-Charles

 Hi Charles, try reading this thread.

http://www.boonex.com/forums/topic/Custom-Design-Boxes-Each-block-on-page-can-be-different-.htm

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 29 Mar 2012

@DRautenbach,
Thank you.
Sorry, I have not been accurate.
I was thinking about php class.

@newton27,
Yes, I read this thread carefully. This is very interesting. It is a good way to customize blocks. For myself just fine.
But doing things for myself, my intention is rather to make it a module to manage the visual customization of blocks without touching dolphin codes.

For example, I found a way importing a few extra css classes (without modifying any existing css files), and adding 5 lines of codes in BxDolPageView.php, to get the "Caption" of blocks customized like in the picture_1. That was just a test. What I would like is to let the user customize Captions like in picture_2.
With a few additional lines of codes, it is possible to control the content of the block also. It  would even be possible to let the user decide to display or not captions. But I prefer avoid modifying existing codes.

That's why I wonder:
- what is the class containing the code blocks in general,
- how to get a full list of existing blocks regardless of pages or they are used,
- how Dolphin developers override existing function without making changes in original codes...

Searching, I found a lot of information but nothing related to block development or code overriding. :D

Thank you.

picture_1.jpg · 56.6K · 161 views
picture_2.jpg · 5.7K · 161 views
Quote · 29 Mar 2012

re:"- what is the class containing the code blocks in general,"
BxDolPageView.php


re:"- how to get a full list of existing blocks regardless of pages or they are used,"
Look in the database in the sys_page_compose table. The ones used in Dolphin are listed there with a few exceptions.

re:"- how Dolphin developers override existing function without making changes in original codes..."
Like any other PHP class. For example:

<?php

bx_import('BxDolPageView.php');

class YourPage extends BxDolPageView {
//your code

var $_sVar1;
var $_sVar2;

function YourPage() {
//your constructor code
}

function getBlockCode_Common($iBlockID) {
//code...
}


}

So in short, just make sure you import the class you want to use and it will inherit from it.

You may want to take a look at the bloggie module tutorial. It shows you how to create a simple Dolphin module.

Here's the Dolphin Class Hierarchy:
http://www.boonex.com/doc/hierarchy.html

Here's the module tutorial:
http://www.boonex.com/trac/dolphin/wiki/DolphinTutorialMyFirstModule

Much and all of what I just wrote can be found here:
http://www.boonex.com/help

For specific tutorials, I will be doing a developer's chat dedicated to Dolphin in the summer. If there is any iota of interest in this please let me know.

Updating my BoonexNerd.net site.
Quote · 30 Mar 2012

Thank you jtadeo,

That's exactly what I needed.
-Charles

Quote · 2 Apr 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.