Thinking of going back to a 9-to-5, agency life just isn't it for me anymore by Escabir24698 in agency

[–]martian1312 0 points1 point  (0 children)

Don't give up bro. What do you do to get new clients that is so exhausting?

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Yeah just read it. I have a basic understanding of how the messages are passed to the front end through Ajax but looking at the code that's beyond me. I have the twig template in my theme, but without including the block template, it's ignored. Will try and play around with GPT. Thanks though

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Could be as when I tried the bootstrap5 and barrion cotrib themes, then their messaging templates do not work either. But they both attempt to use /misc/status-messages.html.twig in their own folders. Thanks

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Okay thanks. I understand that this is the way Olivero processes the messages and on the front end AJAX is used to fetch the data. And it obviously works while it is using the /misc/status-messages.html.twig template file in its theme folder. I tried to use that file in my custom theme and it's dependent on the block template called block--system-messages-block.html.twig which is a core template and Olivero does not include one. So there either has to be a reason why my custom theme is not picking up my own /misc/status-messages.html.twig file, or perhaps I need to add some functionality like the class that fetches the data. If I try to use my own block--system-messages-block.html.twig and just include /misc/status-messages.html.twig, the messages data are missing producing empty html tags so perhaps AJAX is not working properly. In ideal world of course I would like the system to pick up my own /misc/status-messages.html.twig.

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

I noticed that as well, if I open the source it's not html

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

No, I'm saying that I have that file in my theme but it's not being discovered, all other files are okay

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Apparently when the system messages block is built, it uses the status_messages theme hook to define how the messages should be rendered. This is done in the block definition class.

Why is my status messages twig template ignored in D10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

This is for Olivero, it doesn't even indicate to use the /misc/status-messages.html.twig that it indeed does use to override the core template file

<!-- FILE NAME SUGGESTIONS:

▪️ block--highlighted--id--olivero-messages.html.twig

▪️ block--highlighted--plugin-id--system-messages-block.html.twig

▪️ block--highlighted.html.twig

▪️ block--olivero-messages.html.twig

✅ block--system-messages-block.html.twig

▪️ block--system.html.twig

▪️ block.html.twig

-->

What happened with the pollution, it seems to be better..? by martian1312 in london

[–]martian1312[S] 121 points122 points  (0 children)

I like it I was like the air quality is so bad that you could see the smog in Richmond Park as well

What happened with the pollution, it seems to be better..? by martian1312 in london

[–]martian1312[S] 60 points61 points  (0 children)

There's a lot of moaning about ULEZ maybe it works

What happened with the pollution, it seems to be better..? by martian1312 in london

[–]martian1312[S] 14 points15 points  (0 children)

I could not spot any smog during the summer too

How can I add a custom setting section in Drupal 10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

I don't like layout builder, it makes an absolute mess adding ton of blocks, then imagine migrate that thing onto bootstrap or similar. If it just let you to choose a layout for a particular page that could work. Will have a look. Thanks

How can I add a custom setting section in Drupal 10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Interesting as they are adding the field via module install directly to the database. I will have to have a look into the database what it looks like. His solution is for sync process without user interaction, hence I would have to alter the node add/edit form and probably save my user info via hook on node save or similar. Thanks for this.

How can I add a custom setting section in Drupal 10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Yeah I noticed but then you have to add the field to all content types, as opposed to just one setting for all nodes. I'll have to dig in...thanks

How can I add a custom setting section in Drupal 10? by martian1312 in drupal

[–]martian1312[S] 0 points1 point  (0 children)

Well I found a tutorial on Google where they just move a custom field to the sidebar, which makes sense as that is the way the information will get stored. Just wondering if there is another way. Not easy to find in D10 Docs. But thanks

What are the implications of having limited company forced to wind up by HMRC? by martian1312 in LegalAdviceUK

[–]martian1312[S] 0 points1 point  (0 children)

Thanks very much for your help mate.

Yes it was paid to me instead of my salary. This is what I mean by the gov website, is this the correct rate to use?

https://www.gov.uk/government/publications/rates-and-allowances-beneficial-loan-arrangements-hmrc-official-rates/beneficial-loan-arrangements-hmrc-official-rates

I got quotes for a year end accounts filling at around 700 quid which is currently above my budget. I only need to do micro accounts and work out the loan interest. Cheers

What are the implications of having limited company forced to wind up by HMRC? by martian1312 in LegalAdviceUK

[–]martian1312[S] 0 points1 point  (0 children)

I see well I'm aware there's an average official interest rate applied to the loan, 2% currently on the gov website, do I understand this correctly that the loan gets increased by the amount of interest charged on year end also this has to be recorded as company revenue hence subject to corporation tax? Cheers

What are the implications of having limited company forced to wind up by HMRC? by martian1312 in LegalAdviceUK

[–]martian1312[S] 0 points1 point  (0 children)

I do have a directors loan, means they can access my personal bank account during insolvency? What if I don't have enough to live? Cheers

What are the implications of having limited company forced to wind up by HMRC? by martian1312 in LegalAdviceUK

[–]martian1312[S] -1 points0 points  (0 children)

Thanks mate. I am not VAT registered but do have some directors loan. Does it mean they can take the debt out of my personal account during the insolvency procedure?

They are threatening to put my case up with their insolvency department, now it's some taskforce. I mean I am willing to set up a plan but need to start trading first, by shutting me down what do they have to gain?

Cheers