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

custom urls in Model Admin


Reply

2 Posts   671 Views

Avatar
Graphicator

12 April 2011 at 9:52am Community Member, 62 Posts

Quick question?

I have a text field 'FavoriteURL' in my dataobject to remember some bookmarks. I was wondering if ModelAdmin has a function to link to the url, instead of jumping to a record on just the FavoriteURL column.

Avatar
swaiba

14 April 2011 at 7:17pm Forum Moderator, 1796 Posts

hmmm, not sure I follow...

maybe you can use a LiteralField to create a straight HTML link to the location and push that on to the fields ModelAdmin scaffolds with the getCMSFields. Or maybe in create a "casted" field to provide it in the summary results?