Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Seminar page. What module to use.


Reply


5 Posts   700 Views

Avatar
NtM

Community Member, 39 Posts

11 November 2009 at 1:05pm

I need to have a page, called "Seminars", that contains only list of seminars and their short descriptions.
Under this page I need to have pages with full description for every seminar.
Should I use a "blog module" to create section like this?
Please suggest!

If the blog module is fine, please explain how to define a separate "BlogEntry.ss" and "BlogHolder.ss" because I also have specific blogs on my website and I changed templates "BlogEntry.ss" and "BlogHolder.ss".

thank you!

Avatar
AdamJ

Community Member, 145 Posts

11 November 2009 at 5:48pm

I think your best approach, and probably easiest, would be to create the seminar pagetype yourself. Then you can define exactly the information it needs.

Avatar
NtM

Community Member, 39 Posts

12 November 2009 at 6:07am

But how to create a page, that is going to collect only titles and short descriptions of all the seminar pages?

Avatar
banal

Community Member, 901 Posts

12 November 2009 at 7:09am

Create two different Page types: SeminarHolder and SeminarPage.
The SeminarPage is your detail page. Create all the needed fields there.
The SeminarHolder contains several seminar pages and displays its children summarized. Here's how your site-structure would look like:

SeminarHolder
+-- SeminarPage 1
+-- SeminarPage 2
+-- SeminarPage 3
+-- etc.

To summarize the SeminarPages, you would create a special template for your SeminarHolder (SeminarHolder.ss), with something along these lines:

<% control Children %>
$Title
$Content.Summary
<a href="$Link">Read more</a>
<hr />
<% end_control %>

That would output the Title, summarized Content and a Link to the detail-Page for every SeminarPage in the SeminarHolder. Feel free to extend this with your own fields and markup.

Avatar
NtM

Community Member, 39 Posts

12 November 2009 at 8:30am

Thanks!