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.

General Questions /

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

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

custom urls in Model Admin


Go to End


2 Posts   988 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, 1899 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?