How to select a default “text format” ?

I created a "Text (formatted, long, with summary)" field. If I select a "Text Format" in "Default Value" and save it, it does not save and always returns to "Plain Text".

The only way to keep the "text format" in memory and put a text by default. But I do not want to put text by default.

How to force the selection of a default "text format" ?

menu Links not working on Drupal 8 site

 I have a menu based on Article categories as is shown below. The problem with the menu is that the categories links are not working at all.I played with the URL rewrites some time ago. Since then, I have been having this problem.

https://www.halaltimes.com/

For example, this category link is not showing anything.

https://www.halaltimes.com/cosmetics/cosmetics

Timer on a form

Hi, I need to make a timer in a webform form, to know the total time it takes to fill it out. I thought that the best way to implement it could be by javascript. I have not seen any contrib module.

thanks!

How to use GET request in twig file?

Hi,

I want to retrieve a parameter using GET request in a twig file. My url looks like the following:

text/10405/page?source=field_gita_10589_text&audio=1,

If audio parameter is set, I want to add a button named "Play Audio" next to the content displayed, how can I do this in my twig file?

Currently my twig file looks like this, it displays some content:

access taxonomy term fields from nodes using computed field

Hello,

I have a little problem with calculating age.

I have a taxonomy term "Animal". It has a "name" and "date of birth" field.

I have a content type "Test Results". It has a "date of test" and "animal" fields. The "animal" field is a reference to taxonomy term "Animal. 

I would like to have another field that calculates animal's age at the time of test.

So "date of test" - "date of birth" = "age at time of test".

I've installed computed field, but I don't know how to do the above mentioned calculation.

Can you help me?

Best,

New to Drupal but not to Symfony or Twig

I've got a completely built site under Symfony 4.3 with a working theme split into multiple twig templates (ex., header/body/footer/etc).  How difficult would it be to refactor those twig templates into Druapl?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x