Account created on 2 July 2022, almost 2 years ago
#

Recent comments

Neat approach, I have tried it with one node bundle (content type) and it worked.

After adding the block that contains the view, to my "Content Above" region, on top of the Page Title (heading) block, then the name of the node bundle appeared on top of the heading in a node of this node bundle.

Thanks

Hello VM and others.

In this thread I am trying to ask how would you personally prefer to create such a View.

Which particular approach you yourself have taken already to do that and why it, in a few words.

Hello Klonos. Please try make more passages but shorter from short to long as much as possible for me. It's easier for me to read.

In my opinion, these Drupal 7 (not Backdrop) website owners should prepare backups and finally pay for some Drupal programmers (which I am not) to get the migration paths they need and upgrade to Drupal 10, or just move to Backdrop.

In my opinion, given basic Bash knowledge, the learning curve you describe for a Drupal 10 core install on Linux (no Docker, no Docksal/DDEV/Lando), is not a problem given a good book with the right practical introductios to Composer and YAML.
A good GitHub markdown document for setp by step installation instructions can also help, and most questions and answers in forums/Drupal Answers Stack Exchange/other places already exist.

I don't know if you ever worked with WordPress Elementor, but it's the best frontend-development-automation tool I have ever worked with for designing special webpages. It's the "Views" module of special webpage design.
Whomever get it first, Drupal community or Backdrop community --- it will be marvelous.

By Initial I mean to the natural rendering of the table as the particular web browser would render it (Firefox, Chrome, Edge etc.) without any CSS added to the table by Olivero.

I am not a PHP programmer, I program mostly in JavaScript and a tiny bit in Bash, so in all that has to do with Drupal I am just a site builder but I think it's important to understand that Drupal is no longer practically aimed for site builders, rather, mostly for big tech company teams that need a very broad, flexible and powerful web application development framework.

I actually like the direction Drupal is going in, but I just think WordPress-Elementor is needed in Drupal and even crucial to fit Drupal with the frontend-development-automation standards of todays website development market.

I am a freelancer with a small website of one man (myself) built with Drupal 10 and I recommend people to take the time to cinsider how they upgrade to Drupal 10.
I did start my website as a Drupal 9 website and then did a major upgrade to Drupal 10 but much of the content was taken from backups of a Drupal 7 website and a MediaWiki website.

If a tool like WordPress Elementor will come to the Drupal world it will most probably come to Drupal 10/11 and not to Backdrop so to anyone who must have such a tool for frontend-development-automation I recommend, stay with Drupal,

I have found a solution without a module:

I had to to remove all inline-CSS from the table, with the search and replace tool of my source code editor (Visual Studio Code).
After doing that, the table appeared regularly (similar to how all tables appear in Olivero).

It took a minute but saved me installing a module.
I agree that a module if needed if someone does this repeatedly, like every day.

I would greatly prefer to do it without a module if a can.

If it's simpler and leads to the same result we save time and energy, especially if we do this a lot.

Admin theme is Claro.

Even if I put English on top and switch the website's default language to English, the problem persists.

I don't have any steps to reproduce becuase someday after some Bash-Composer-Drush minor upgrade it just started.

Uninstalling Internal Page Cache module while keeping Internal Dynamic Page Cache installed didn't make any change for me.

Eventually I have found a solution that doesn't require removing any module:

In the view's advanced options I chose time based > 1min/1min

I am not sure I manage to understand you here because you know that I have compared these rendered HTML segments:

<div class="region region--content grid-full layout--pass--content-medium" id="content">
<div class="region region--phone-message">

Even if I edit the HTML in the DOM to add the same classes:

<div class="region region--content grid-full layout--pass--content-medium" id="content">
<div class="region region--phone-message grid-full layout--pass--content-medium">

then Phone-message still don't get a 100% width like the Content or Content Above regions so I miss what else I should do to make this new field cover all space up until the sidebar just like Content or Content Above regions do.

Hi John !

Two modules are currently enabled in my website:

  1. Internal Page Cache
  2. Internal Dynamic Page Cache

Do you mean that I should turn off the first and keep on the second?

I think that I have misdiagnosed the problem.

All I want is the new region to behave pretty much like how the Content or Content Above regions behave.

What is the correct way to do it?

I think that I have misdiagnosed the problem.

All I want is the new region to behave pretty much like how the Content or Content Above regions behave.

What is the correct way to do it?

grid-full CSS has these directives:

display: grid;
grid-template-rows: 1fr;
grid-template-columns: repeat(var(--grid-col-count), minmax(0, 1fr));
grid-column-gap: var(--grid-gap);

Anyway even if I add grid-full layout--pass--content-medium classes in DOM (in the dev tool) I still don't get the block to widen until the sidebar (i.e the block is still narrow).

Thanks a lot.

It seems to me to have solved the problem for Microsoft Edge but not for Mozilla Firefox or Google Chrome.
If I want a change in Mozilla Firefox or Google Chrome after page reload (CTRL+Shift+R) then I need to flush all caches with Drush.

The HTML source and/or the DOM tree of the page is huge but here is some rendered HTML I believe to be relevant:

<div class="region region--content grid-full layout--pass--content-medium" id="content">
<div class="region region--phone-message">

CSS aggregation was off all along but anyway I have flushed all caches with Drush and the problem persists.

From my personal experience, this is just not true. For example, I host my own personal Drupal 10.2.4 website on shared hosting on Namecheap (namecheap.com).

In my opinion, big international hosting companies like Namecheap, Godaddy, Bluehost, Siteground and Hostgator can't afford losing customers with Drupal websites and they will indeed adjust the shared hosting environment partition you hire for Drupal 10 and should always have SSH access for you.

Hello there ! 

I didn't quite manage to understand you.

It is true that Drupal 8 or greater require elementary knowledge in Composer, Drush, and YAML (and for themers also Twig) to work with, but I don't think it's a problem.

Drupal has became much more powerful and stable since that change in year 2015 and requires much less modules to work with and is much easier to upgrade.

The only thing I lack in Drupal today is WordPress-Elementor.

Any changes in this context are planned for Drupal 11? If so, it will save me the need of installing any module or removing breadcrumbs altogether.

I think that the cause of my problem is the fact that Drupal creates breadcrumbs based on alias directories such as these:

example.com/bushes/vitex
example.com/trees/oak
example.com/flowers/rose
example.com/mushrooms/cordyceps
example.com/algae/spirulina

But I don't have any such "URL directories" and all of my URL aliases lack directories:

example.com/webpage-alias-name-comes-here

Therefore, I have three options:

  • Remove breadcrumbs altogether.
  • Use the aforementioned module.
  • Installing the Redirect module and start organizing my aliases in alias directories.

Any suggestions?

Yes I have already came across some of these discussions and found some that are very old (some comments from about 15 years ago) hence I asked here about Drupal 10 about which I didn't find any recent discussion.

In your opinion, isn't that a bit odd that for years people need a module to solve this problem with a core module? My conclusion from this is that perhaps many Drupal core maintainers think that breadcrumbs aren't that important SEOwise, and it may be the case in general with search engine developers, I am not sure myself.

Hello Jaypan

Did you find these in core\themes\olivero\templates\content\node.html.twig line 88 or somewhere else?

I have already created a sub-theme, what file should I put in the sub theme to break these links for good?

Eventually I have moved the place of the taxonomy tags block with JavaScript by creating a new JavaScript file with this code:

window.addEventListener('load', ()=>{
    return setTimeout( ()=>{
        // put tags block under SOME_BLOCK

        const element_1 = document.querySelector('#SOME_BLOCK');
        const element_2 = document.querySelector('.field--name-field-categories');
        element_1.insertAdjacentElement('afterend', element_2);
    })
});

What's a global flag? 

Google search mostly bring results about flags of different states like UK and China :)

Is it something in Bash?

Thanks

I went through all linked pages but didn't find anything about -d or debug mode and how to cancel it after it was started.

I didn't find these there. 

Also, the words flag/option/argument don't appear there.

Thanks a lot for all your guidance and help dear Adriancid.

May this be an inspiration to others !

:)

I got that output but didn't find anything about these two flags there.

The words flag/option/argument don't appear in this output.

Adriancid I misunderstood the explanation.

Do you mean that after I click the button and put the number 1 💬 How to bulk delete all revisions besides current revision for all nodes from all content types? Fixed , then I should run commands as follows?

drush node-revision-delete:queue CONTENT_TYPE_1
drush node-revision-delete:queue CONTENT_TYPE_2
drush node-revision-delete:queue CONTENT_TYPE_3
drush node-revision-delete:queue CONTENT_TYPE_4
drush node-revision-delete:queue CONTENT_TYPE_5

Thanks a lot adriancid.

I think that I will keep old revisions existing for now and just wait until there is a CLUI command or a GUI button to just delete all revisions which are not the current revision, anywhere and everywhere.

Thanks Adriancid.

Do you have any suggestion for me what to do if all I want is just no revisions besides current revision for all nodes from all content types?

Hello Adriancid !

Please help me out here a bit more as I am not a PHP programmer and probably don't fully get what do you suggest me to try.

I have more than 600 nodes so I need some automation.
For example, I have a content type named dp_ltr, so I have tried this:

vendor/bin/drush node-revision-delete dp_ltr

But I got:

Command "node-revision-delete" is not defined.

Is it a good practice to do drush cache:rebuild before making a backup?

On my shared hosting environment of Namecheap and Cpanel I can either export a plain sql file of a particular database from PHPMyadmin or download a particular database sql.gz with a Cpanel tool named "Backup".

What do you mean what is the use case?

I want to have a node bundle that nodes of which can't be bigger than A4 in size.
Pretty much like editing an XML document in a rich text editor, but just in Drupal.

The use case is to just have a content piece edited and maintained in one place parsed and rendered inside the content body of various nodes.

It's like a MediaWiki template page TEMPLATE:NAME_OF_TEMPLATE that you can call to in any wikipedia article by {{NAME_OF_TEMPLATE}}.

I have edited to clarify that I didn't mean to a view in a region but inside the CKEditor 5 area itself, in between markup added with CKEditor 5, that's where I want to duplicate the original node.

I was not on the layout builder screen -- I was viewing a node which contains the layout builder block in one of its regions.

I think that a pencil menu link to layout should be there so we won't have to click "Edit" and only then, when we are inside the edit page, be able to click "Layout".
I think that we should be able to access the layout page from outside the block edit page.

It's just saving one step, instead of clicking "Edit" to go to to the block edit page and there click "Layout", we could prevent that step and click "Layout" directly from the block's pencil menu.

---

Translating from Hebrew to English, that's what I get now, from the block's pencil menu.

  • Configure block
  • Remove block
  • Edit
  • Translate block

The block pencil menu I desire to have is this:

  • Configure block
  • Remove block
  • Edit
  • Translate block
  • Configure block layout

I personally use Context to hide certain regions (such as the sidebar region) in certain content types (such as the homepage content type).

Another possible reasonable use, if I am not mistaken, is setting another theme for a specific user-role, so for example if you are the admin, you could use another theme, different than the default theme for generally all users, but I once had a case where I had set a theme which had an error and I had to sovle the error to come back to use the site regularly myself (all that time, the site kept working regularly for all other users) so one should be careful with setting a theme for a user-role with Context.

Steps to reproduce:

  1. Install Drupal 10.2.2 or later (in my case the language is Hebrew).
  2. Create a layout builder block.
  3. Add some content (heading, passage) to that layout builder block.
  4. Place the layout builder block in any region you choose.
  5. Mouse hover on that layout builder block in the respective region.
  6. Click the pencil icon for the shortcut admin actions on the top-left part of that layout builder block.
  7. You would find a link to "Edit" but you will not find a link to "Layout" .

First I think that Drupal 10 requires much less modules then Drupal 7 for example.

For my personal one-person Drupal 10 projects, just two modules are normally enough, Context and Webform .

Some people may need some XML sitemap module but I prefer manual scanning requests in Google Search Console over relying on a sitemap but if you have more than 100 webpages yeah in many cases a sitemap is nice and can help.

Some people may need some meta tags module but in many cases I think a good <H1> tag and a good opener passage and a good URL alias are enough. I think metatags are to some extent a thing of the past with all the artificial intelligence anlysis of webpages from search engines nowadays.

I personally don't think it should be difficult as long as you use a sub-theme.
The CSS of the subtheme should override any CSS, of core or of a theme.

Oh, what confused me is that I ran this command not from my website's directory and then I got this output:

Composer could not find a composer.json file in /home/USERNAME
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage

But when I ran it from my website's directory I got this output:

latest   : 10.2.2

Funny, I will add a cd "${HOME}" before it !

Oh I didn't mean what is the latest one installed on my system but what is the latest one out there meaning on the packagist repository or alternatively here on DO.

Hi Ressa

I didn't miss it, I just didn't check it because I am not at all a graphic designer or a web designer and even if I try to lean towards that direction then I don't imagine myself working with any tool to do frontend automation besides Elementor, unless it will be a core Drupal tool.

I am a website builder and SEOer and not a PHP programmer or a Twig themer.

I do write JavaScript and CSS and it helps me a lot with Drupal but indeed there is a problem that Drupal is doesn't have node frontend automation tools like Elementor and I believe that at some point it will backfire at the community big time.

From a bit of research I understand that these were the native core themes:

  • Drupal 1 and 2: Example (Aliased as "Stone Age").
  • Drupal 3 and 4: Goofy
  • Drupal 5 and 6: Garland
  • Drupal 7 and 8: Bartik
  • Drupal 9 and 10: Olivero

I so hope that Drupal 11 and 12 will have a new theme.

I have closed the original issue and created a new issue which I will try to distribute to community members better this time.

https://www.drupal.org/project/drupal/issues/3416951 Disconnect headers and footers from themes Active

A better suggestion:

https://www.drupal.org/project/drupal/issues/3416951 Disconnect headers and footers from themes Active

But I don't think I ask for support here, I want to pass on an idea, I wish people who make descisions (such as those who decided using Composer, Twig, YAML and Layout builder for Drupal 8) could read it. I write it from my personal experience of 13 years plus with Drupal. I believe that this voice is important to be heard for the future of Drupal.

I have no idea what Slack is and I will check about it soon enough but I don't think this fits in any way to Drupal Answers because again, this is just an idea. I would have made a 30 minute lecture about it in a podcast or conference or a Drupalcon or any event coming soon where the coummunity will let me speak. Can someone let me speak?

Well I didn't imagine that it would fall down to page 4 so fast... It is so fast that not many people saw it. I feel a bit of a sour feeling that probably not many people saw it and only one person followed it. Maybe there is a better place to publish this idea?

That's surprising to me because I don't find it at all in the list.

Please check attached image.

My problem is that when I go to the core issues queue ,

I can't find my post from two days ago 💬 Make headers totally modular, theme-agnostic Closed: outdated there.

---

It's as if someone has made my post hidden, although it appears to me open and active, so why can't I find this post in the issue queue (either in open issues or closed issues)?

You remind me something which went deep into my subconsciousness, the Gardland theme.

I think it's not responsive like Bartik or Olivero, or was it made responsive in its late releases or someone published some CSS overriding to make it responsive?

Thank you for this welcoming ! I didn't understand the slang, only the redundant name calling (I didn't use name calling towards you this entire talk).

I don't need your attention man, I better understand the current dynamics in the community and ensuring where to keep myself away from so thanks a bunch.

Hopefully you'll give me the credit of speaking American English quite good for someone who have never been to the U.S.A (your country thus I understand).

Rock on spiderman, again, I can too. You are doing good to yourself perhaps, not to others, in this thread.

No such keyboard in my place. I don't suggest you anything now.

Again I wish you to do much good in the world; I believe any person can do good and don't have any reason you are an exception, so all best.

Production build 0.69.0 2024