New design boxes for D7?

Dose anyone know how add a new design boxes  to the Dolphin 7 template? I would like to have about five different ones to work with in the new template i'm working on.

Give me something to believe in...
Quote · 26 Nov 2009

Hello!

Not clear question. Because for adding new designbox it just enough to place file like designbxo_*.html to ur tempalte directory and change 3rd argument in calling of DesignBoxContent function. May be u have another troubles with it?

Regard

Quote · 26 Nov 2009

I'll try to explain it better. I want to have different styles for various boxes on the index and other pages as well. I knew how to do it in Doplhin6 but I havent figured out how to do this in Dolphin7. You said just ad another designbox_*.html.

So if I ad another designbox_*.html lets say I call it designbox_4.html should my code look like this?

<div class="disignBoxFirst_4">
<div class="boxFirstHeader"><div class="dbTitle">__title__</div>__caption_item__</div>
<div class="boxContent">__designbox_content__</div>
__bottom_item__
</div>

And then Just add my CSS code to the CSS file?

Give me something to believe in...
Quote · 26 Nov 2009

No, in this case no need to have class="disignBoxFirst_4", just enough to have file designbox_4.html with own content. But need to change calling of function DesignBoxContent. See example:

U added new design box and want that it will affect on all blocks in profile page. Then u'll redeclare in ur template code of showBlockEcho method (frmo BxBaseProfileView class) in ur BxTemplProfileView class.

So in base it looks like:

function showBlockEcho( $sCaption, $sContent ) {
echo DesignBoxContent( _t($sCaption), $sContent, 1 ); // last argument this is number of design box
}

in new templ it will be as:

function showBlockEcho( $sCaption, $sContent ) {
echo DesignBoxContent( _t($sCaption), $sContent, 4 );
}

Regards

Quote · 26 Nov 2009

That did the trick.

Thank you LeonidS Wink

That was much easier than I thought it would be.

Give me something to believe in...
Quote · 27 Nov 2009

Oh, One more thing... What should the code look like if I want to add more than one new style like "designBox_5.html" and "designBox_6.html" ?

Give me something to believe in...
Quote · 27 Nov 2009

Bump

Give me something to believe in...
Quote · 28 Nov 2009

Then in mentioned code need to apply 5 or 6 digit instead 4. But if u want to have at once several design boxes then it will require more serious changes for designbox functions.

Quote · 29 Nov 2009

I think this should be considered for an added feature before the final release. Not everyone wants the same style in every box. I think there shoud be at least 4-6 styles to pick from and should be able to choose them from the admin page builder.

I think many people would like this option.

Give me something to believe in...
Quote · 30 Nov 2009
 
 
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.