jimu

dont worry guise! got it! didn’t flush 😛

🚽 (1)
jimu

Anyone else run into an issue where the “From” header is not being set in outgoing password reset emails? I have set the following config to no avail: SilverStripe\Control\Email\Email: admin_email: mailto:[email protected]|[email protected]

jimu

I’m a little confused by translations in SS4 & silvershop. I’m using fluent, and have created two languages - English and Traditional Chinese. The translations of dataobjects is all fine, but areas like shopping cart, checkout etc are not translated (despite silvershop having a zh_TW.yml in its legacy translation files) - do I need to add a new yml translation file somewhere? I’ve ready a bunch about transifex but it seems like this could be a drawn out process - is it possible to just add translation files manually? Sincerely, confused.

jimu

Well a) changing to GraphQL now would probably take too long versus the project timeline b) the issue is the response code. 200 = OK - and I check for this return code in the script that is sending the data as a sign its finished successfully. I guess it’s not a big deal, I can work around it, but I’d really like to figure out why if a post had 5 relations rather than say 2, it’s returning a 100 response code.

jimu

Got a bit of a weird issue. I’m using colymba/silverstripe-restfulapi - I posted an issue on the github and thought I’d share here incase anyone else has come across it - I wanted users sending a POST to be able to include new relations within the POST so I extended using onAfterDeserialize which then creates the relations and replaces these items in $payload with their IDs. It works fine and returns 200, except when there are more than 3 relations in which case it still creates all the objects successfully but returns response code 100, and I am a little bit stumped as to why.

jimu

I have a dataobject with a Currency col - is it possible to make it nullable?

jimu

Is there a config option for what page to redirect a user to after login?

jimu

Think I may have just found the answer in the docs - Middleware?

jimu

hi friends. say I have a function I need to use across multiple controllers/pages? whats the best approach? extending PageController?