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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

does SilverStripe is my choice for my website development ?


Go to End


9 Posts   4153 Views

Avatar
adrianmak

Community Member, 6 Posts

19 December 2007 at 8:26pm

Edited: 19/12/2007 8:31pm

I'm planning to create a CMS for a client (a logistics company). Besides of typically pages like About Us, contact us, company information, Services, there is a special feature request from the client.

The client want to create a parcel tracking page which will keep track of client's customers parcel where are they arrived at.
For example
client's customers can login from front-end , then a list of parcels with current deistination is shown say
parcel# source midpoint destination status
002332 locationA locationB location F on delivery
002312 locationA locationC location D on delivery
002452 locationA locationD location D closed
002305 locationA locationB location E on delivery

when a parcel arrived on another destination, site admin will update the destination thru back-end.

ps Sorry for my bad English.

Avatar
Tim

Community Member, 201 Posts

19 December 2007 at 9:04pm

It is possible to do this, though nothing exists "out of the box" - what is your question?

Avatar
adrianmak

Community Member, 6 Posts

20 December 2007 at 12:10am

Edited: 20/12/2007 11:23am

Tim,

Could you give me some ideas and directions ? I'm really new on silverstripe. I have read the 5 tutorials and I'm still can't figure out how to have a start.

Let say,

1. how to I create customer records ? extend dataobject ? or Page ??
2. how do I let customer to login and view their own pracels
3. should I create two say PracelHolder and Pracel which extend the default , Page ??
4. how do I assoicate a pracel record to a customer ?

I'm used to use joomla for site development. SilverStripe is totally different as compare with joomla.

Besides, there is no front-end user database of silverstrip out-of-box ? In other words, I need to create a dataobject on my own ?

Avatar
adrianmak

Community Member, 6 Posts

20 December 2007 at 9:03pm

Nobody could give me a helping hand further ??

Avatar
Fuzz10

Community Member, 791 Posts

21 December 2007 at 1:29am


1. how to I create customer records ? extend dataobject ? or Page ??
2. how do I let customer to login and view their own pracels
3. should I create two say PracelHolder and Pracel which extend the default , Page ??
4. how do I assoicate a pracel record to a customer ?

Besides, there is no front-end user database of silverstrip out-of-box ? In other words, I need to create a dataobject on my own ?

It's pretty much impossible to answer all your questions in a forum post.

1 and 2 > Basically, you can use the already existing "security" model in SS for your customers. After they've logged in , use their current user-id to obtain the list of their parcels.
See : http://doc.silverstripe.com/doku.php?id=security&s=security

3 and 4> There are more ways than one to implement this. In the simplest scenario you'd want to create a parcel dataobject with all necessary members (destinationA,destinationB,destinationC,status). A customer would need a 1-to-many relation with parcels , a parcel would have a 1-1 relation to a customer ... By using the already existing complex-fields you can make the back-end screens.

See :
http://doc.silverstripe.com/doku.php?id=complextablefield

and

http://doc.silverstripe.com/doku.php?id=complextablefieldexamples

Good luck !

Avatar
adrianmak

Community Member, 6 Posts

21 December 2007 at 2:33pm

Edited: 21/12/2007 7:19pm

Thanks Fuzz.

I took a full day reading the "Level 2: SilverStripe fundamentals" of documentation. A section mentioned SS core has a Memeber class.
In my case, customers record (name, adrress, tel, password, etc) should extend this class or just extend a databobject and manipulate cusomters record thru CustomerHolder and Customers as extending from Page object

Beisdes, how to deal with the location dropdown list while creating a new parcel of a customer ? The location is just a lookup table storing location name e.g. "locationA","locationB","locationC","locationD", etc, actually there is no relation with other object in object oriented contest.

If I hard-coded each location in a form dropdown input of Parcel page, it is not feasible enough as I want user allowed to add new location when necessary.

Avatar
Fuzz10

Community Member, 791 Posts

22 December 2007 at 2:18am


I took a full day reading the "Level 2: SilverStripe fundamentals" of documentation. A section mentioned SS core has a Memeber class.
In my case, customers record (name, adrress, tel, password, etc) should extend this class or just extend a databobject and manipulate cusomters record thru CustomerHolder and Customers as extending from Page object

Haven't needed this for myself , but I guess you can subclass the Members class, yeah... I'm sure there's some docs on this subject ... For example :

http://doc.silverstripe.com/doku.php?id=member&s=member

Beisdes, how to deal with the location dropdown list while creating a new parcel of a customer ?

If you'd like to give the user the ability to add locations , then you could create a location-class as well. If that is not really that important , just 'hard' code the values in your class , see http://doc.silverstripe.com/doku.php?id=dropdownfield .

Good luck !

Avatar
adrianmak

Community Member, 6 Posts

24 December 2007 at 7:15pm

I took time to read the doc on member class. The doc. mentioned
"Extending Member or DataObject?
Basic rule: Class “Member” should just be extended for entities who have some kind of login. If you have different types of Members in the system, you have to make sure that those with login-capabilities have unique email-addresses (as this is used for login-credentials)....."

Does it mean email address is the id for user to login ?
Should I use another piece of unique field information like account number as the login user id ?

Go to Top