Adding columns in Article?

When viewing an article, it's just one big article page.

Well, I want my article page to have two columns, on the right side will show banners (or boxes). How do I modify my Article page?

Quote · 25 Oct 2008

Good question!

Kids first
Quote · 25 Oct 2008

This is an easy mod, but you guys can probably improve the CSS for this.

1) Open tmpl_uni/css/articles, and add these at the bottom:

#container {
width: 800px;
}

#content {
width: 75%;
float: left;
}

#sidebar {
width: 20%;
margin-top: 30px;
margin-left: 75%;
}

2) In inc/classes/BxDolArticles.php, find the getArticle function and replace everything between <<<EOF with:

<div id="container">

<div class="navigationLinks">
<span><a href="articles.php">{$sArticlesC}</a></span>
<span>&gt;</span>
<span><a href="articles.php?catID={$aArticle['CategoryID']}&amp;action=viewcategory">{$sCategoryName}</a></span>
<span>&gt;</span>
<span>{$sTitle}</span>
</div>

<br /><br />
<div id="content">
<div class="articleBlock">
<div class="mainTitle">{$sTitle}</div>
<div class="date">{$aArticle['Date']}</div>
<div>{$sText}</div>
</div>
</div>


<div id="sidebar">

<h2>SIDE BAR CONTENT</h2>
ugue euismod orci elementum gravida. Nulla turpis urna, porta lacinia, dignissim at, sollicitudin eget, sapien. Vivamus molestie augue quis turpis. Phasellus accumsan arcu ut leo. Sed leo lacus, bibendum quis, tempus feugiat, imperdiet at, dui. Aliquam sapien mauris, rhoncus consequat, fringilla sit amet, facilisis a, turpis. Aliquam tempor est. Praesent posuere, urna ultricies ultrices fringilla, tortor pede porttitor est, nec pharetra justo quam eu mauris. In leo lectus, sagittis id, imperdiet in, dictum at, augue. Cum s

</div>


</div>

Quote · 27 Oct 2008

When I try to do this, I just get th side bar content appearing above the Article categories and not on any other page.

Any idea what I am doing wrong? I really want this functionality.

Thanks.

Cory

Quote · 24 Jul 2009

I figured it out, I was putting the code in the wrong place.

At first, I put it after the first getArticle <<<EOF

Then realized it was the wrong place, so finally found the right one at line 248, so replaced:

<div class="navigationLinks">
<span><a href="articles.php">{$sArticlesC}</a></span>
<span>&gt;</span>
<span><a href="articles.php?catID={$aArticle['CategoryID']}&amp;action=viewcategory">{$sCategoryName}</a></span>
<span>&gt;</span>
<span>{$sTitle}</span>
</div>
<div class="articleBlock">
<div class="mainTitle">{$sTitle}</div>
<div class="date">{$aArticle['Date']}</div>
<div>{$sText}</div>
</div>

With the new code.

I did revise it a little to give me a vertical line between the side bar and content.

I am now trying to see if I can use php Includes to add blocks to the page?

Cory

Quote · 24 Jul 2009

Ok, so now, does anyone know how I could add a block, like those on homepage, to the sidebar content?

I tried taking code for, say, Recent Articles from templates/base/scripts/BxBaseIndex.php and placing it in the area and keep getting errors. Any ides?

Cory

Quote · 24 Jul 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.