Kong Jin Jie

I want to send out email to users with a link to the CMS ModelAdmin to edit the object.

Is there a better way to build the edit link of the object?

Kong Jin Jie

For example, in my $Content, I have something like {$MyVariable}. I want to populate this with something. I have tried putting getMyVariable() in the page model.

jkersu

Maybe have a look at shortcodes to see if it does what you need https://docs.silverstripe.org/en/4/developer_guides/extending/shortcodes/

Show 1 attachment(s)
docs.silverstripe.org  
Shortcodes

Developer and user documentation for the Silverstripe CMS and framework.

Hide attachment content
Kong Jin Jie

Thank you. I will try that out. I remember seeing something like that used by UserForms. I think shortcodes makes more sense here.

Kong Jin Jie

Is there a way I can populate a variable in $Content with another template?

Kong Jin Jie

I got a couple build system for flushing and dev/build. Just wondering if any useful work flows I can benefit from.

Kong Jin Jie

I like to find out your setup of Sublime Text 3 to improve your workflow with working with SilverStripe.

Kong Jin Jie

Currently, it is displaying oldest first. I need latest first.

Kong Jin Jie

How do I make HistoryViewerField to sort by version number? I am very new to graphql

Kong Jin Jie

Fixed. Need to update to the latest silverstripe/webpack-config

Kong Jin Jie

I am trying to follow https://docs.silverstripe.org/en/4/developer_guides/model/versioning/#adding-the-historyviewerfield

But yarn build shows this error:

  1. 2:22 error Unable to resolve path to module 'lib/Injector' import/no-unresolved
  2. 2:22 error Missing file extension for "lib/Injector" import/extensions
Show 1 attachment(s)
docs.silverstripe.org  
Versioning

Developer and user documentation for the Silverstripe CMS and framework.

Hide attachment content