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   708 Views

Avatar
Graphicator

Community Member, 62 Posts

12 April 2011 at 9:52am

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

Forum Moderator, 1799 Posts

14 April 2011 at 7:17pm

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?