Page 1 of 1
CGBlog questions
Posted: Fri Sep 24, 2010 1:18 am
by tonholis
How can I alternate the vizualization of blog between SummaryView and DetailsView in same page?
I think in to get the id of article and makes an IF to call CGBlog changing the action property, but I don't know how to do this

Re: CGBlog questions
Posted: Fri Sep 24, 2010 10:48 am
by Peciura
You can display content depending on optional url parameters. Let say you have parameter with CGBlog article id 124 "cntnt01articleid=124".
Code: Select all
{if !empty($smarty.get.cntnt01articleid)}
{CGBlog action='detail' articleid=$smarty.get.cntnt01articleid}
{else}
{CGBlog}
{/if}
It is not exactly clear what are you trying to achieve. Why default module behavior is not suitable for you ?
Re: CGBlog questions
Posted: Sat Sep 25, 2010 1:41 pm
by tonholis
Thanks for reply!
I call the {CGBlog} in two moments in my Layout template: one for show the summary (left/main content) and another to show the archives (in the right side)
When I click to view the details:
- The default behavior shows the SummaryView on top and DetailView at the bottom ...
It is any issue on the blog templates?
Re: CGBlog questions
Posted: Sat Sep 25, 2010 2:02 pm
by Dr.CSS
Most likely if you go to CGBlog and look at the detail template it will have both summary call and detail call...
Re: CGBlog questions
Posted: Sun Sep 26, 2010 8:01 am
by Peciura
It is any issue on the blog templates?
In most cases default templates have to be altered the way one needs.