Category: News
LostCarPark Drupal Blog: Drupal Advent Calendar day 6 – Smart Trim
james
Wed, 12/06/2023 – 07:00

Welcome back to day 6 of the Drupal Advent calendar. Behind today’s door is the Smart Trim module, and here’s Mark Casias (markie) to tell us all about it.
Smart Trim allows you to control the length of your content by trimming it intelligently. It is designed to be a focused, lightweight improvement over Drupal core’s current formatter trimming capabilities. The maintainers’ focus is stability and ease-of-use. Customizations to the module are encouraged with template overrides and Smart Trim hook implementations.
After installing and enabling Smart Trim, you will see a “Smart trimmed” option in…
How to add a man page to your Ruby project
git clone --help
it displays it’s own man page instead of the usual --help
output? Ever wanted to add that same functionality to your Ruby CLI to make it more user friendly? In this blog post I will walk you through how to write a man page and add it to your Ruby command.Andy Wingo: colophonwards
A brief meta-note this morning: for the first time in 20 years, I
finally got around to updating the web design of
wingolog.org recently and wanted to share a bit
about that.
Back when I made the initial wingolog
design,
I was using the then-brand-new Wordpress, Internet Explorer
6 was the most common web browser, CSS wasn’t very good, the Safari browser had
just made its first release, smartphones were yet to be invented, and
everyone used low-resolution CRT screens. The original design did use CSS instead
of tables, thankfully, but it was very narrow and left a lot up to the
user agent (notably font choice and size).
These days you can do much better. Even HTML has moved on, with
<article>
and
<aside>
and
<section>
elements. CSS is powerful and interoperable, with grid layout and
media queries and :has() and :is() and all kinds of fun selectors.
And, we have web fonts.
I probably would have stuck with the old design if it were readable, but
with pixel counts growing, the saturated red bands on the sides flooded
the screen, leaving the reader feeling like they were driving into
headlights in the rain.
Anyway, the new design is a bit more peaceful, I hope. Feedback
welcome.
I’m using grid layout, but not in the way that I thought I would. From
reading the documentation, I had the impression that the element with
display: grid would be a kind of flexible corkboard which could be
filled up by any child element. However, that’s not quite true: it only
works for direct children, which means your HTML does have to match the
needs of the grid. Grandchildren can take their rows and columns from
grandparents via subgrid, but only really display inside themselves:
you can’t pop a grandkid out to a grandparent grid area. (Or maybe you
can! It’s a powerful facility and I don’t claim to fully understand
it.)
Also, as far as I can tell there is no provision to fill up one grid
area with multiple children. Whereas I thought that on the root page,
each blog entry would end up in its own grid area, that’s just not the
case: you put the <main> (another new element!) in a grid area and let
it lay out itself. Fine enough.
I would love to have proper
side-notes,
and I thought the grid would do something for me there, but it seems
that I have to wait for CSS anchor positioning. Until then you
can use position: absolute tricks, but side-notes may overlap unless
the source article is careful.
For fonts, I dearly wanted proper fonts, but I was always scared of the
flash of invisible
text. It turns out
that with font-display: swap you can guarantee that the user can read
text if for some reason your fonts fail to load, at the cost of a later
layout shift when the fonts come in. At first I tried Bitstream
Charter for the body
typeface, but I was unable to nicely mix it with Fira
Mono without
line-heights getting all wonky: a <code> tag on a line would make that
line too high. I tried all kinds of adjustments in the @font-face but
finally decided to follow my heart and buy a font. Or two. And then
sheepishly admit it to my spouse the next morning. You are reading this
in Valkyrie, and the headings are
Hermes Maia. I’m pretty happy
with the result and I hope you are too. They are loaded from my server,
to which the browser already has a TCP and TLS connection, so it would
seem that the performance impact is minimal.
Part of getting performance was to inline my CSS file into the web pages
produced by the blog software,
allowing the browser to go ahead and lay things out as they should be
without waiting on a chained secondary request to get the layout.
Finally, I did finally break down and teach my blog software’s marxdown
parser
about “smart quotes” and em dashes and en dashes. I couldn’t make this
post in good faith without it; “the guy yammers on about web design and
not only is he not a designer, he uses ugly quotes”, &c, &c…
Finally finally, some recommendations: I really enjoyed reading Erik
Spiekermann’s Stop Stealing Sheep, 4th
ed.
on typography and type, which led to a raft of book purchases. Eric
Meyers and Estelle Weyl’s CSS: The Definitive Guide was very useful
for figuring out what is possible with CSS and how to make it happen.
It’s a guide, though, and is not very opinionated; you might find
Matthew Butterick’s Practical
Typography to be useful if you are
looking for pretty-good opinions about what to make.
Onwards and upwards!
Windows 10 gets three more years of security updates, if you can afford them
Try Free Diamond Search Page now for jewelry website.
Get a free Advanced Diamond Search Page and Ring Builder for your WordPress/WooCommerce now.
Creating a Jewelry Website has never been this easier, install the FREE Diamond Search Page now.
For more details, visit the links given below:-
https://sphereplugins.com/
Recently, we have also had a lot of requests from owners of jewelry websites who would like to switch from their current Magento website to Woocommerce in order to simplify operation and lower their cost of ownership.
No ready-to-use migration tool is available. It may be accomplished by carefully rebuilding the Woocommerce website and transferring the image-rich data to the Woocommerce database.
Stay Updated on Moodle’s Development with this edition of our Showcase Shorts – New releases for Workplace, Apps & MoodleCloud and we start our journey towards Moodle LMS 4.4!
Hello Moodlers,
Welcome to this edition of ‘Showcase Shorts’. Since our last update, we have completed both our planning sprint and the first sprint of the last increment of the year… where does the time go?!
This sprint saw the team complete the release of Moodle Workplace 4.3. In case you missed the release announcement, I am relinking it here, it really is worth a read!
Our team also released the 4.3 versions of our Mobile Applications for both Moodle LMS and Moodle Workplace and upgraded our MoodleCloud plans for all new customers to the latest version of Moodle LMS.
If your organisation hasn’t recently upgraded your Moodle implementation, please consider doing so. The new functionality and improved user experience in the most recent version of our products are truly game-changing!
All our teams are now focused on the next steps of delivering our Moodle Product Vision which sees us empowering our users and delivering improvements designed to help them unlock their creativity, help facilitate collaboration and optimise their business & learning outcomes.
We are empowering course creators to unlock their creativity by improving the experience and functionality offered in:
- Assignment Management: We kicked off work that will see us enhance the experience offered via our Assignment activity. To make sure we get this right, we are spending time focused on understanding users’ current pain points, market trends and the technical modernisation opportunities.
- Course Design: We progressed with the delivery of our new course hierarchy functionality which will enhance the flexibility of course formatting.
- Activity Management: We ideated on new options to engage with our activity chooser when creating courses to enhance the functionality it offers and make it easier to use.
We are empowering better collaboration between community members and with Moodle HQ through:
- Moodle.org & our Plugin Directory Ongoing Enhancements: The home of our community improves every sprint!
- New Moodle Development Funding Options: If you are keen to contribute to the development of the Moodle ecosystem in a different way, we’ve got one coming soon with the launch of our new Community Funding Platform! Find out more by watching the video.
We are empowering administrators and developers to optimise their business outcomes by modernising our solution and simplifying platform management in:
- Themes: We have implemented some changes that will provide administrators with better visibility of theme usage on their site and a more user-friendly and efficient way to manage their site’s themes.
- Integration & Support: Our work integrating community contributions continues at pace. We are also working on evolving our support framework. If your Moodle implementation relies on Oracle, make sure to watch this video; we are proposing changes to our support for these databases that you will want to know about.
- Coding Practices: We are getting ready to upgrade to Bootstrap 5, modernising our front-end development capabilities. This is a big change and we have big plans in place to support it.
Until next sprint,
The Moodle Product Team