21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 457 Views |
-
HomePage

4 September 2011 at 7:14am
Hello! I am a beginner. I hope very much for your help!
I have TourPage and TourHolder. I want to show on the home page of last 6 pages TourPage. I copied the output function of Tutorial2.function LatestNews($num=6) {
$news = DataObject::get_one("TourHolder");
return ($news) ? DataObject::get("TourPage", "ParentID = $news->ID", "Date DESC", "", $num) : false;
}I understand there appears dated. How do I change this to select the necessary things to do not by date added, and the ID page in the database?
-
Re: HomePage

5 September 2011 at 7:18am
Hello, I'm not sure of what you actually need :
- Do you want another way of sorting the "TourPage" pages appearing on your home page ?
- Or do you want to be able to manually select the 6 pages appearing on your home page from the CMS ?Stan
-
Re: HomePage

5 September 2011 at 10:25am
OK, you just have to replace "Date" by any other field of your page : "ID DESC", "Created DESC", "Title DESC", etc.
| 457 Views | ||
|
Page:
1
|
Go to Top |


