πŸ‡¬πŸ‡§United Kingdom @Juc1

Account created on 19 July 2010, almost 14 years ago
#

Recent comments

πŸ‡¬πŸ‡§United Kingdom Juc1

Ok but looking at the core Views template I posted above there is no node variable in "Available Variables" , so does that mean that Twig Tweak does not apply?

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

I think the problem occurs because for me on a desktop the content type description on /node/add only allows about 24 characters per line so if your content type description contains a word or link over 24 characters then it seems that the type tray icon gets squeezed out and rendered as zero pixels.

πŸ‡¬πŸ‡§United Kingdom Juc1

The field is a link field and the field content is a url such as https://mcdn.podbean.com/mf/web/vyt55wvvvnj6eaya/10th_april_edit_aj13v.mp3 and yes the links are output correctly / as expected in the description tag or the title tag. For example:

<description>https://ia903405.us.archive.org/20/items/mjq-1983-montreal-jazz-festival-cbc/01-Introduction.mp3</description>

But if I assign the same link field to the enclosure tag, the tag is not rendered. Also as a test if I assign other fields such as title / authored by to the enclosure tag it is again not rendered. The only Views field I have seen so far that will be rendered as the enclosure tag is "link to field" which renders as <enclosure>/node/4726</enclosure>

Also I tried different remote file urls such as https://ia903405.us.archive.org/20/items/mjq-1983-montreal-jazz-festival-cbc/01-Introduction.mp3 and a url to my own website = same behaviour.

Does a link field such as https://ia903405.us.archive.org/20/items/mjq-1983-montreal-jazz-festival-cbc/01-Introduction.mp3 render for you in the enclosure tag?

πŸ‡¬πŸ‡§United Kingdom Juc1

@Damien, ok I found the enclosure tag thanks but so far it does not seem to work for me.

Here is an enclosure tag in a random podcast rss feed https://feed.podbean.com/thegoradiofootballshow/feed.xml - so this is what I am aiming for:

<item>
<title>The Go Radio Football Show 10th April</title>
<pubDate>Wed, 10 Apr 2024 19:30:20 +0100</pubDate>
<enclosure url="https://mcdn.podbean.com/mf/web/vyt55wvvvnj6eaya/10th_april_edit_aj13v.mp3" length="232641256" type="audio/mpeg"/>
</item>

So the url such as https://mcdn.podbean.com/mf/web/vyt55wvvvnj6eaya/10th_april_edit_aj13v.mp3 (no HTML) is my Drupal node field ie link field or plain text field giving the remote location for my mp3 file.

So far tags such as title etc are rendered correctly but when I map the enclosure tag to my url field I don't get any error message but the enclosure tag is just not rendered in the feed ie is just ignored. Are there any restrictions about what field types / formats etc are accepted for the enclosure tag?

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

@larowlan ok thanks, no reply from @lauriii yet but this recent blog post https://www.thedroptimes.com/38267/drupal-page-builders-part-1-paragraph... says it could be another year before page builder improvements get into core. it is depressing to me that Drupal core can move so slowly, like a snail, and I have lost some Drupal clients to Wordpress because they have seen modern page builders with features such as live CSS on other platforms, and I can't explain why Drupal can't do this in 2024.

πŸ‡¬πŸ‡§United Kingdom Juc1

@larowlan yeah I was just wondering if there was any progress yet, with Drupal 11 approaching.

πŸ‡¬πŸ‡§United Kingdom Juc1

@larowlan did the core team reply to you about your Pitchburgh work, such as they will / will not adopt it?

πŸ‡¬πŸ‡§United Kingdom Juc1

@lauriii is there any progress to report since your first post 7 months ago?

Two things I am hoping for =

live CSS on the edit page:

browsable component libraries in the page builder UI:

πŸ‡¬πŸ‡§United Kingdom Juc1

I can't see any releases on https://www.drupal.org/project/easy_install β†’ - is this project abandoned?

πŸ‡¬πŸ‡§United Kingdom Juc1

@dbielke1986 did you get any reply? - https://www.drupal.org/project/ckeditor5_font/issues/3368736 πŸ› 'no config schema' Error after update to Drupal 10.1.0 RTBC has the same fatal error after 7 months :(

πŸ‡¬πŸ‡§United Kingdom Juc1

I had this issue in 10.2.1 - seems to be fixed by patch in #11

My zombie permissions were:

RuntimeException: Adding non-existent permissions to a role is not allowed. 
The incorrect permissions are "configure all page node layout overrides", "configure editable page node layout overrides". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of /web/core/modules/user/src/Entity/Role.php).
πŸ‡¬πŸ‡§United Kingdom Juc1

@ravi kant ah ok so it is just core field display, not https://www.drupal.org/project/twig_field_value/ β†’ - thank you.

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

I have the same problem in Drupal 10.1.6 / gutenberg 3.0.0-beta1 - youtube / soundcloud iframes render ok in /node/65 but in /node/65/edit they have height 0 and are therefore invisible in the gutenberg editor =

πŸ‡¬πŸ‡§United Kingdom Juc1

@larowlan thanks for the detailed Pitchburgh updates on your blog. So is it possible that your Pitchburgh work could be adopted by the core team? Or if not could it become a contrib module?

πŸ‡¬πŸ‡§United Kingdom Juc1

I agree that the current Layout Builder UX is horrible, for example the URL separation between field content = /node/50/edit and layout = /node/50/layout, and that Drupal needs a modern page builder.

Here is this problem mentioned in an old blog post from 2020:

Our take is that Drupal, as of late 2020, is not there yet, not even half the way there, compared with WordPress-based page builders when it comes to the ability to create truly flexible, custom landing pages for marketing campaigns and one-off uses by non-technical people...

We believe this will hurt the Drupal community... in the long-run if more effort isn't put into creating a flexible, open source landing page builder. It will further the perception and PR problem Drupal has of being a difficult-to-use platform...

https://www.o8.agency/blog/state-drupal-layout-building-compared-wordpress

I wish that the wheels at Drupal HQ turned more quickly but it is great to see some progress.

πŸ‡¬πŸ‡§United Kingdom Juc1

@SirClickalot have you tried enabling the core field_layout module as mentioned here https://www.drupal.org/project/manage_display/issues/3306918 πŸ› Title field only seems to render when Field Layout (core) module is enabled Closed: duplicate

πŸ‡¬πŸ‡§United Kingdom Juc1

Remove Gutenberg Cloud module. It had potential but patterns made the library of blocks kind of obsolete

I am just starting to use Gutenberg so @marcofernandes or anyone does this mean I should not use the Gutenberg Cloud module?

πŸ‡¬πŸ‡§United Kingdom Juc1

Sorry this is a duplicate of https://www.drupal.org/project/swiper_formatter/issues/3318311 πŸ’¬ Responsive breakpoints Needs work

πŸ‡¬πŸ‡§United Kingdom Juc1

> Maybe it depends on the theme, on the block settings, on the templates, etc.

@AdamPS I have the same problem on multiple sites but for my test mentioned in #15 above it is a new / empty 10.1 site, default content types, no other modules enabled by me, Olivero theme, I have not touched block settings or template files.

πŸ‡¬πŸ‡§United Kingdom Juc1

I have the same problem
new / clean D10.1, Olivero theme,
enable manage_display
New title field shows in /admin/structure/types/manage/page/display
but new title field does not show on /node/1 after reload page, clear cache
enable field_layout
reload /node/1 - now new title field displays

I dont really want to enable field_layout if not necessary because it causes problems for me elsewhere

πŸ‡¬πŸ‡§United Kingdom Juc1

> In case you consider the module is useful for the other UI features it provides...

Yeah I like the icons. grid layout, view existing content links - looks so much nicer than the bland Drupal 10 core.

But actually I can just add CSS in my Gin admin theme to say display:none for the h2 that I don't like - so problem solved, thanks...

πŸ‡¬πŸ‡§United Kingdom Juc1

@deviantintegral I get that categories could be helpful in some cases particularly where there are a lot of different content types. In your example you have three content types related to books but for example suppose you have four unrelated content types such as Page, Policy, Report, Product then categories are not helpful, so it would be good if it was optional ie up to the admin to enable or not.

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

Are there any plans for a D10 release please?

πŸ‡¬πŸ‡§United Kingdom Juc1

last paragraph - added detail about  https://www.drupal.org/project/sdc_display β†’

πŸ‡¬πŸ‡§United Kingdom Juc1

I have just realised that I can do this with CSS =

.language-switcher-language-url ul.links li a.is-active {
 display: none;
}
πŸ‡¬πŸ‡§United Kingdom Juc1

@szeidler thanks but I think this is different question - I think your comment concerns if there is no translation for the current node then don't show the switcher because there is nothing to switch to.

My question is - my node has two languages English and Spanish - so for the English page I want the switcher to show the link to the Spanish page but not show the link to the English page (because I am already on the English page). And vice versa - if I am on the Spanish page I want the switcher to show the link to the English page but not show the link to the Spanish page (because I am already on the Spanish page).

πŸ‡¬πŸ‡§United Kingdom Juc1

but where can i find the option "Hide the current language" ?

I can't see this feature on /admin/config/regional/language/language-switcher-extended

πŸ‡¬πŸ‡§United Kingdom Juc1

added link to docs page for props / slots

πŸ‡¬πŸ‡§United Kingdom Juc1

include

πŸ‡¬πŸ‡§United Kingdom Juc1

key or value

πŸ‡¬πŸ‡§United Kingdom Juc1

punctuation

πŸ‡¬πŸ‡§United Kingdom Juc1

punctuation

πŸ‡¬πŸ‡§United Kingdom Juc1

added image

πŸ‡¬πŸ‡§United Kingdom Juc1

added image

πŸ‡¬πŸ‡§United Kingdom Juc1

added image

πŸ‡¬πŸ‡§United Kingdom Juc1

2nd edit

πŸ‡¬πŸ‡§United Kingdom Juc1

first edit

πŸ‡¬πŸ‡§United Kingdom Juc1

added a question about slots

πŸ‡¬πŸ‡§United Kingdom Juc1

added a question = What are props and slots in Drupal SDC? 

πŸ‡¬πŸ‡§United Kingdom Juc1

Also it seems that the file /modules/contrib/ckeditor_accordion/js/accordion.frontend.js is loaded on every node as soon as the module is enabled ie whether or not the page has an accordion or is using ckeditor - shouldn't it only be loaded on pages that are using the ckeditor_accordion module?

πŸ‡¬πŸ‡§United Kingdom Juc1

I think this works {{ comment.subject.value }}

πŸ‡¬πŸ‡§United Kingdom Juc1

@cilefen I meant to say there are no errors in the console

And I have now seen the same issue on a third 10.1 site.

πŸ‡¬πŸ‡§United Kingdom Juc1

Thanks for replies. Yes I am using nginx so it looks like the related issue mentioned by larowlan

My hack for now is that if I add new css to an existing file eg nav.css then the new css is ignored but if I rename the file such as newnav.css (and add this new file to mytheme.libraries.yml ) then the new css loads correctly.

πŸ‡¬πŸ‡§United Kingdom Juc1

might be connected to https://www.drupal.org/project/ckeditor5_font/issues/3368736 πŸ› 'no config schema' Error after update to Drupal 10.1.0 RTBC

πŸ‡¬πŸ‡§United Kingdom Juc1

@makfruit ok I have reconnected and that has fixed it, thank you...

πŸ‡¬πŸ‡§United Kingdom Juc1

Sorry forget this - I was concerned because I could not see the metatags in the page source but on looking some more the product descriptions are also not in the page source - so I now think that metatags are present although not seen in the page source because they are rendered by a script.

πŸ‡¬πŸ‡§United Kingdom Juc1

@Ilnur is there any update on this?

Thanks...

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

@Ecwid

Yes console error =

Failed to load resource: the server responded with a status of 403 (Forbidden)
https://app.ecwid.com/api/v3/382XXXXXX/sso?token=secret_jPS5XV1MFReSSp4X...

XXXXXX added by me for security

Thanks...

πŸ‡¬πŸ‡§United Kingdom Juc1

@ e0ipso β†’  ok it would be good if I could define libraries inside the SDC instead of needing to go outside the SDC to mytheme/mytheme.libraries.yml - but anyway yes that works thank you. 

πŸ‡¬πŸ‡§United Kingdom Juc1

How do I include an external js file? I tried this but it does not work because it gets loaded as a local / internal file path instead of an external domain:

libraryOverrides:
js:
https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js: {type: external, minified: true}

πŸ‡¬πŸ‡§United Kingdom Juc1

Hi sahil I tried again with a new / clean D10.1 site and default Olivero theme - same issue.

my patched PagerBlock.php = https://pastebin.com/ewuB4jHK

generated a few nodes with devel
enabled pager module
go to /admin/structure/block

Place Block / Pager Block

/admin/reports/dblog/ =

Type 	php
Date 	Friday, May 5, 2023 - 12:34
User 	admin
Location 	example.com/admin/structure/block/add/pager/olivero?_wrapper_format=drupal_modal&region=content_above
Referrer 	example.com/admin/structure/block
Message 	ArgumentCountError: Too few arguments to function Drupal\pager\Plugin\Block\PagerBlock::__construct(), 7 passed in /home/819629.cloudwaysapps.com/vdrkgajfpf/public_html/web/modules/patched/pager/src/Plugin/Block/PagerBlock.php on line 87 and exactly 8 expected in Drupal\pager\Plugin\Block\PagerBlock->__construct() (line 58 of /home/819629.cloudwaysapps.com/vdrkgajfpf/public_html/web/modules/patched/pager/src/Plugin/Block/PagerBlock.php).
Severity 	Error

If you need more info please tell me what you need.

Thanks...

πŸ‡¬πŸ‡§United Kingdom Juc1

@sahil thanks for your patch

at /admin/structure/block I get php error =

ArgumentCountError: Too few arguments to function Drupal\pager\Plugin\Block\PagerBlock::__construct(), 7 passed in /public_html/web/modules/non-comp/pager/src/Plugin/Block/PagerBlock.php on line 87 and exactly 8 expected in Drupal\pager\Plugin\Block\PagerBlock->__construct() (line 58 of /public_html/web/modules/non-comp/pager/src/Plugin/Block/PagerBlock.php).
πŸ‡¬πŸ‡§United Kingdom Juc1

Here is the result of https://github.com/mglaman/drupal-check

$ /vendor/bin/drupal-check pager                                                                          r
 3/3 [β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“β–“] 100%

 ------ -------------------------------------------------------------------------------------
  Line   src/Plugin/Block/PagerBlock.php
 ------ -------------------------------------------------------------------------------------
  69     PHPDoc tag @param for parameter $container with type
         Drupal\pager\Plugin\Block\Symfony\Component\DependencyInjection\ContainerInterface
         is not subtype of native type
         Symfony\Component\DependencyInjection\ContainerInterface.
  69     Parameter $container of method
         Drupal\pager\Plugin\Block\PagerBlock::create() has invalid type
         Drupal\pager\Plugin\Block\Symfony\Component\DependencyInjection\ContainerInterface.
  210    Cannot access property $class on object|true.
  211    Cannot access property $class on object|true.
  214    Cannot access property $class on object|true.
  214    Cannot access property $class on object|true.
 ------ -------------------------------------------------------------------------------------


 [ERROR] Found 6 errors

Thanks for using drupal-check!
πŸ‡¬πŸ‡§United Kingdom Juc1

I have applied the automated patch.
When using the Olivero theme everything seems fine.
When using another D10 theme such as Bartik or my subtheme with Olivero as base theme the UI configurator in /admin/structure/block seems fine but the block (even block title) / pager--block.html.twig is not rendered at all ie looking at the browser inspector the corresponding html is empty.

πŸ’¬ | Pager | D10 ?
πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

@klausi ok yes that works, thanks for your help...

πŸ‡¬πŸ‡§United Kingdom Juc1

@TR Ok thanks for your help...

πŸ‡¬πŸ‡§United Kingdom Juc1

By the way in your example above there isn't a name for the query string you are adding. I think you want ?email=[your token]

@cilefen I have added the missing name for the query string and now the URL works so thanks a lot.

The need for the name for the query string might not be obvious to everyone (such as me) so it might be good if the tooltip gave an example URL like you have given such as:

example.com/?foo=[webform_submission:values:text:urlencode]

Thanks for your help...

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

csv_serialization can be updated at the same time that you update Drupal core to D10.

OK but I just meant for people using https://www.drupal.org/project/upgrade_status β†’ - the advice given for any module on /admin/reports/upgrade-status boils down to yes there is a D9 / D10 version available so Update, or there is no D9 / D10 version available so uninstall / Remove the module. So I guess csv_serialization 3.0.0 (D10 only) is a middle category which https://www.drupal.org/project/upgrade_status β†’ does not cover.

/admin/reports/upgrade-status currently advises D9 sites to Update csv_serialization to 3.0.0, I am not sure where https://www.drupal.org/project/upgrade_status β†’ reads its information from

πŸ‡¬πŸ‡§United Kingdom Juc1

By the way https://www.drupal.org/project/upgrade_status β†’ seems to think that 3.0.0 is D9 / 10 compatible so advises my D9 site to upgrade to 3.0.0 - which causes my D9 site to go down. Correct advice should be to uninstall csv_serialization

πŸ‡¬πŸ‡§United Kingdom Juc1

@geoanders yes that works, thank you

πŸ‡¬πŸ‡§United Kingdom Juc1

Juc1 β†’ created an issue.

πŸ‡¬πŸ‡§United Kingdom Juc1

@chucksimply - I can see in the browser's "view source" that the the duplicate canonical url is still there as mentioned above in the lawnmower example.

πŸ‡¬πŸ‡§United Kingdom Juc1

I am getting this error in Drupal 10.

What happens if the PHP APCu caching memory becomes exhausted - is it just the page loads slowly = not too bad, or somethine like white screen of death = very bad?
.

πŸ‡¬πŸ‡§United Kingdom Juc1

@ bbu23 I thought the data stream at https://analytics.google.com/analytics/web/ would distinguish the different languages by the language prefix (such as es for Spanish) in the Drupal url, so one Measurement ID G-xxxxxxx per language.

πŸ‡¬πŸ‡§United Kingdom Juc1

@bbu23 I have not tried this but I guess at https://tagmanager.google.com you create the container ID GTM-xxxxx which goes in your Drupal site /admin/config/system/google-tag - and then in your container at https://tagmanager.google.com you can place multiple tags of the type "Google Analytics: GA4 Configuration" with one Measurement ID G-xxxxxxx per tag.

πŸ‡¬πŸ‡§United Kingdom Juc1

@danielmoberly is there any news on a D10 release please?

πŸ‡¬πŸ‡§United Kingdom Juc1

> You can try using row replacement patterns in the next/previous link configuration.

I can confirm that this works using tokens in Format Settings, for example:

Next ><p><img src="[node:field_podcast_image:thumbnail]"><p>[node:title]

πŸ‡¬πŸ‡§United Kingdom Juc1

Yes working fine now, thank you @GΓ‘bor

Production build 0.69.0 2024