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

Making custom Blogentry


Reply


5 Posts   815 Views

Avatar
raamklaza

Community Member, 182 Posts

14 May 2009 at 8:02am

Hello,

i want to make a second custom Blogentry page.

I will still be a blog entry but with some extra / other fields.

On the admin:
Same as is now but with the possibility to add some custom fields with a title like School and then a inputfield, etc etc

On the frontend:
On the blogentry page a small square on the top right of each blogenty with some additional information.

My question, how can i do this?

Avatar
raamklaza

Community Member, 182 Posts

15 May 2009 at 1:34am

Does anyone have an idea about this?

How can i easily make this in the admin and show up on the front-end?

It would look similar like this:

A list
xxx: 11 - 22 - 33
xxx: ab - cb - ee
xxx: bb - -- - xx
xxx: yes
xxx: no

The list should always be of the same structure.

Avatar
raamklaza

Community Member, 182 Posts

10 June 2009 at 9:44pm

Anyone?

Avatar
banal

Community Member, 901 Posts

10 June 2009 at 10:05pm

Create a new Page Class that inherits from the Blog-Page?
There you would add the required fields to the DB array and create the required form-elements in the getCMSFields method.
The look can be customized by creating a custom template for your new page...

All pretty basic stuff. Did you do the tutorials once? That should actually give you enough information to accomplish what you need.

Avatar
raamklaza

Community Member, 182 Posts

10 June 2009 at 10:08pm

I did the tutorial but that was a while ago :)

I will look into that, just needed that "startingpoint", THNX.