Add full width HTML block above all columns on Blog Home page

How can I add a full-width HTML block above all columns on any page (but specifically on the Blog Home page)?

Quote · 20 Jan 2012

I will look into the blog page when i have time.

But ANYPAGE is not possible. As i mentioned in another post. Each page is different, so code that will work on any page is impossible.

https://www.deanbassett.com
Quote · 20 Jan 2012

Oh. And specifically which page?

blogs/home/ or one of the other pages?

https://www.deanbassett.com
Quote · 20 Jan 2012

Awesome, thanks!

 

These pages:

 

modules/boonex/blogs/blogs.php

blogs/home

 

Also, I would need to be able to style that box separately from other boxes if at all possible.

Quote · 20 Jan 2012

That page will be more difficult that the ads page. It will require the block be created by hand.

Open modules\boonex\blogs\classes\BxBlogsModule.php

Look for this function at about line 500.

    function GenBlogHome() {
        $oHomePageView = new BxDolBlogsHomePageView($this);
        return $oHomePageView->getCode();
    }

Replace it with this function.

    function GenBlogHome() {
        $oHomePageView = new BxDolBlogsHomePageView($this);
        $sCode = '
<div class="disignBoxFirst">
    <div class="boxFirstHeader">
        <div class="dbTitle">The Box Title</div>
    </div>
    <div class="boxContent">
        <div class="dbContent">
        The Box Content
        </div>
    </div>
</div>
        ';
        return $sCode . $oHomePageView->getCode();
    }


To style it differently, change the name of the classes in the divs and put them in common.css

To use a language key for the blocks title if it needs to be transulated to more than one language. Replace The Box Title with ' . _t('_my languauage key') . ' and add the language key to the languages.

https://www.deanbassett.com
Quote · 20 Jan 2012

Awesome, this worked great! thanks!

Quote · 21 Jan 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.