Display an article on my home page
3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 8, 2008 (RSS)
[font "Calibri"]I have a section called articles which contains, you guessed it, articles.
[font "Calibri"]I would like to be able to display one of the articles on my home page, with the ability to change the article from time to time.
[font "Calibri"]how do i go about this?
[font "Calibri"]I would like to be able to display one of the articles on my home page, with the ability to change the article from time to time.
[font "Calibri"]how do i go about this?
Re: [brownleather] Display an article on my home page
By Dave - February 8, 2008
The simplest way would be as follows:
- Create a checkbox called homepageFeature
- Edit the article you want featured and check homepageFeature
- Create a list viewer
- Set the 'perPage' option to "1";
- Set the 'pageNum' option to "1";
- Set the 'where' option to "homepageFeature = 1"
- And remove the code with the prev/next links
Then your list viewer will only list articles with the homepageFeature field checked, and only list the very first one (probably sorted by date depending on how you have it setup).
Hope that makes sense. Any other questions just let us know! :)
- Create a checkbox called homepageFeature
- Edit the article you want featured and check homepageFeature
- Create a list viewer
- Set the 'perPage' option to "1";
- Set the 'pageNum' option to "1";
- Set the 'where' option to "homepageFeature = 1"
- And remove the code with the prev/next links
Then your list viewer will only list articles with the homepageFeature field checked, and only list the very first one (probably sorted by date depending on how you have it setup).
Hope that makes sense. Any other questions just let us know! :)
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com
Re: [Dave] Display an article on my home page
thanks, that worked