22850 Posts in 9711 Topics by 2803 members
|Go to End|
13 January 2009 at 6:02am
My site requires one page to be on a article model, meaning that that page will show items in a row in one page . can that be achieved here?
13 January 2009 at 6:56am
Are the articles their own pages? Just create an ArcicleHolder page type and an Article page type.
class ArticleHolder extends Page
static $allowed_children = array ('Arcicle');
and on your template:
<% control Children %>
<li><a href="$Link" title="Go to the $Title article">$Title</a></li>
<% end_control %>
13 January 2009 at 12:16pm
Thanks for your replay.
Yes, the articles will be each in another page, but i want them to be shown in head page of the category, and like it is right now that each page is shown on the side bar.
I don't have much aknowledg in programing, so can you be kind and tell me how it's been done? should i paste your code on a notepad and upload it the root folder? and about the template code, on what page exactly should i paste this?
13 January 2009 at 1:16pm
I would reccomend doing the tutorials, they give you a great introduction to Silverstripe and also happen to contain the instructions for what you want to do
13 January 2009 at 4:20pm
I did went through the tutorials and i couldn't find any thing that describes for newbies like me how to do that. maybe i have missed that paragraph, could you point to it maybe?
13 January 2009 at 10:10pm
Tutorial 2 goes through the process of making an article section with ArticleHolder to show all the articles in that section. It also shows how to create a 'latest articles' section on the home page.
|Go to Top|