Page 1 of 1

CGBlog Detail page

Posted: Thu Jul 12, 2012 11:05 am
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

Re: CGBlog Detail page

Posted: Fri Jul 13, 2012 2:07 am
by applejack
It should open in your main content div you should check your coding of the detail template and css.

Re: CGBlog Detail page

Posted: Fri Jul 13, 2012 2:13 am
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.

Re: CGBlog Detail page

Posted: Fri Jul 13, 2012 2:43 am
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.

Re: CGBlog Detail page

Posted: Fri Jul 13, 2012 8:32 pm
by lchestnut
That is a great idea. Can you give me an example?

Thanks

Lisa

Re: CGBlog Detail page

Posted: Sat Jul 14, 2012 12:46 am
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}

[Resolved] Re: CGBlog Detail page

Posted: Sat Jul 14, 2012 3:20 am
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

Re: CGBlog Detail page

Posted: Sat Jul 14, 2012 12:57 pm
by applejack
No problem glad you got it sorted.