CGBlog Detail page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

CGBlog Detail page

Post by lchestnut »

I am using the latest of everything.

How do I get the article detail to not put the full article into the div for the main content? If I click on the article from the summary page and open the full article, it shows up inside the main content div which alters the spacing. http://peppersville.net

Thanks

Lisa
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: CGBlog Detail page

Post by applejack »

It should open in your main content div you should check your coding of the detail template and css.
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: CGBlog Detail page

Post by lchestnut »

Yes I know but that is posing a problem. The main div has a left margin that I dont need on this one page but I do need it for other pages.
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: CGBlog Detail page

Post by applejack »

In that case in the detail template assign a variable a value and then in your html template test to see it that value exists or not if not show the side div.
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: CGBlog Detail page

Post by lchestnut »

That is a great idea. Can you give me an example?

Thanks

Lisa
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: CGBlog Detail page

Post by applejack »

In detail template

{assign var=detailed value=Y}

In html template

{If !$detailed}
<div id="sidediv">
Blah blah blah
</div>
{else}
News detail
{/if}
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

[Resolved] Re: CGBlog Detail page

Post by lchestnut »

Thank you so much.

{If !$detailed} (this didnt work for me) I changed it to {if !isset($detailed)} and it worked perfectly.

I appreciate your help.

Lisa
applejack
Power Poster
Power Poster
Posts: 1014
Joined: Fri Mar 30, 2007 2:28 am

Re: CGBlog Detail page

Post by applejack »

No problem glad you got it sorted.
Post Reply

Return to “Modules/Add-Ons”