Page 1 of 1
Need help with this layout
Posted: Tue May 01, 2007 5:16 am
by taufikp
Hi, I'm a newbie to CMS Made Easy 1.0.6, and I have question in regards to template and layout. I know Smarty very well though as I used to create websites using my own CMS and Smarty in conventional way.
The attached image is the front page of my client's site. This front page mainly composed of the latest stuff (articles/news, midi files, and photos/wallpapers) from other pages: SelaGosip, SeputarSeleb, Selebriti, and SitusBintang. Each of these pages has different layout and style, but same header and footer (using Global Block would solve this, right?).
Is there a standard tag to put the latest stuff (articles/news, midi files, and photos/wallpapers) from different pages into the front page? And if I must do some coding or creating a UDT, could you show me how?
Thank you very much in advance for your help
[gelöscht durch Administrator]
Re: Need help with this layout
Posted: Wed May 02, 2007 10:04 am
by taufikp
After playing around with CMS MS, I come up with this code and put it in layout template called "Home"
Code: Select all
<!-- TOP BLOCK -->
<div style="display:table;width:100%;background-color:black;text-align:center;">
<div style="float:left;width:60%;color:white;text-align:left">
What's On
{news category="seputarseleb*" number="1" detailpage="SeputarSeleb"}
</div>
<div style="float:right;width:40%;">
<div style="background-color:yellow">Situs Bintang Block</div>
<div style="background-color:green">Banner Block</div>
</div>
</div>
I don't use {content} tag, this front page do not need any content for itself, it's just a group of latest news/articles from other pages, so I rely heavily on {news} tag to compose that. But as the result, whenever I clicked on the news title, it doesn't show me anything because {news} tag uses {content} to display the content. I'm thinking of redirecting the link so it will open the related pages instead of looking for {content} tag inside current page. Can somebody tell me how to do this?
Re: Need help with this layout
Posted: Wed May 02, 2007 2:49 pm
by KO
Maybe using detailpage="pagealias" in your News Tag could help you to achieva that.
br,
K
Re: Need help with this layout
Posted: Thu May 03, 2007 1:48 am
by taufikp
Well, I did use detailpage parameter, but it doesn't seem to work?
edit:
It works now. I put the wrong page alias into detailpage. My apology.
Another question, how to get the correct pages from News category? Can we use $entry->(something) as detailpage param?
Re: Need help with this layout
Posted: Thu May 03, 2007 5:06 am
by KO
On your detail page I would make navigation on one side with another News call having the right category. So when you click on news summarry on front page it would go to detailpage and over there you see the Detail of that news as you've done. Then on that detail page i would have News call with right category showing summaries as navigation on one side of the page and detail on the other.
I'm not definately sure if i understand your goal but i hope that it is as I think.
Re: Need help with this layout
Posted: Thu May 03, 2007 7:10 am
by taufikp
Quite close
As you can see in the image attached in my first post, at the top part of the page there's a box called "Whats On Today" that will show recent news from other section called SitusBintang. SitusBintang itself is composed of several sections. Each section has its own layout/design, news, and download-able stuff.
Here's the site map of SitusBintang section:
SitusBintang
* 9.1: Agnes Monica (page alias : agnes-monica)
o 9.1.1: Profil
o 9.1.2: Hasil Karya
o 9.1.3: Terkini (page alias : agnes-monica-terkini)
o 9.1.4: Ringback Tones
o 9.1.5: Wallpaper
* 9.2: Tukul Arwana
o 9.2.1: Profil
If What's On Today box shows the latest news from "Agnes Monica - Terkini" section, then I want user to be directed to this section whenever they click on news title link. This can be done by entering the page alias in {news detailpage=} option, right? If yes, then I just need to know how to construct the page alias or how to put the correct page ID.
Re: Need help with this layout
Posted: Thu May 03, 2007 1:26 pm
by KO
Page alias can be changed in Page content and "Options" tab.
But I think there could be news from different categories on your "What's On Today" box and I do not know what could be solution so visitors could go to right categoriy depending of current "news".
Re: Need help with this layout
Posted: Fri May 04, 2007 3:18 am
by taufikp
Yes, that's exactly what I aim for. I'm also searching for another news-like modules that will let me do this redirection as well as looking at the News module code and its internal database structure.