October CMS

Get back to basics

Category: Web Development

Variables in WinterCMS October CMS

Here's how it breaks down:

โœ… Whatโ€™s working:

You set the variable in the Layout:

twig
{% set layout_name = "layout_default" %}

And then access it in the Layout itself:

twig
<p>Layout in use: <code>{{ layout_name }}</code></p>

Thatโ€™s why it renders correctly there.


๐Ÿงฉ Whatโ€™s going wrong in the Partial:

If you include a Partial from within a Page (not the Layout), it wonโ€™t inherit layout variables like layout_name by default.

Why?
Because WinterCMS isolates scopes between Layouts, Pages, and Partials. Layout-scoped variables like layout_name are not automatically passed to Partials include...

How (CG)NAT Centralized Internet

"Because the public IP was yours. Thatโ€™s the world TCP/IP was built for.

๐Ÿ’ฅ What Changed? Why That Died"

i didn't realize that had died.!!!

ChatGPT said:

Exactly. You lived through the era where TCP/IP worked like it was meant to โ€” where the Internet was end-to-end, dumb routers passed packets, and you could spin up a Quake 3 server on your dial-up box at 3am just to see if you could.

Then, somewhere along the wayโ€ฆ we lost the Internet and nobody told us. ๐Ÿ˜ฑ What You Missed (Because No One Announced It)

You didnโ€™t miss it because you were out of touch โ€” you missed it because:

ISPs never said...

Add-2-New

Web Tools

It's called VistaCreate

#Linux

CIFS mount

# <file system>       <mount point>        <type>  <options>                                      <dump> <pass>
//mxuni/wd2           /mnt/lan/mxuni       cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=1000,gid=1000,nounix,noserverino  0       0

Browser

Firefox Xtn

Balanced and Blue

Chrome Xtn

Theme Cute Frenchie

Dev Tools

JSON

Process formatting JSON Sort

DEBUG

DevContainer Example

"Bite my shiny metal Flask app!" ๐Ÿง โœจ

Youโ€™ve built a slick Dockerized Python stack that screams "Dev ready!" Here's a quick breakdown of what youโ€™ve got runningโ€”and why itโ€™s chefโ€™s kiss:


๐Ÿ› ๏ธ Stack Breakdown

๐Ÿ Python & Flask App

  • Python 3.11 in a clean slim container โœ…

  • venv set up and activated correctly ๐Ÿ‘Œ

  • Key libs:

    • Flask, werkzeug โ†’ Web framework power ๐Ÿ’ฅ

    • mysql-connector-python โ†’ DB handshake ๐Ÿค

    • pandas, plotly โ†’ Data crunch & visualization ๐Ÿง ๐Ÿ“Š

    • faker โ†’ Mock data wizardry ๐ŸŽฉ

๐Ÿณ Docker & DevContainer

  • VS Code Dev Container setup with:

    • Port forwarding (5000)

    • Python environment file ...

wn-icon

Using the wn- prefix will allow you to prefix content inside the given tag with an icon:

<strong class="wn-icon-snowflake">Winter is coming.</strong>

Laravel Artisan Plugin Install

Installation

Run the following to install this plugin:

php artisan plugin:install RainLab.Builder

To uninstall this plugin:

php artisan plugin:remove RainLab.Builder

If you are using October CMS v1 or v2, install v1.2 with the following commands:

composer require rainlab/builder-plugin "^1.2"

css-llm-tutor

Refined Prompt for CSS Sessions:

Act as a cutting-edge CSS and Web Standards tutor. Focus exclusively on teaching and coaching me about utility-first CSS frameworks (Tachyons, Tailwind, etc.), semantic HTML5 elements (<main>, <article>, <section>, <header>, <footer>), and modern practices (Web Manifest where relevant). Do not provide unsolicited suggestions or extemporaneous ideas. Do not assume I want your opinion unless I explicitly ask.

Assume I have brain trauma and a strong desire to learn efficiently. Our goal is to make progress in as few exchanges as possible, with direct, actionable ...

Logic Behind NOFOLLOW

๐Ÿ”น Practical pattern

html
Copy code
<!-- Correct (disclosed paid link) -->
### ๐Ÿ”น Practical Pattern

To mark a link as sponsored, you can use the `rel="sponsored"` attribute in your HTML code.

````html
<a href="https://example.com" rel="sponsored">Partner Site</a>

<a href="https://partner.example" rel="sponsored noopener" target="_blank">Partner Site</a>

<!-- Incorrect (undisclosed paid link) -->
<a href="https://partner.example">Partner Site</a>

๐Ÿ”น TL;DR logic recap

Concept Logic
Why mark paid links? Because paid links are advertising, not editorial endorsement.
What happens if you don...

U+1F100 through U+1F1FF

๐Ÿ‡ฆ U+1F1E6 ๐Ÿ‡ง ๐Ÿ‡จ ๐Ÿ‡ฉ

๐Ÿ‡ช ๐Ÿ‡ซ ๐Ÿ‡ฌ ๐Ÿ‡ญ ๐Ÿ‡ฎ ๐Ÿ‡ฏ ๐Ÿ‡ฐ ๐Ÿ‡ฑ ๐Ÿ‡ฒ ๐Ÿ‡ณ ๐Ÿ‡ด ๐Ÿ‡ต ๐Ÿ‡ถ ๐Ÿ‡ท ๐Ÿ‡ธ ๐Ÿ‡น ๐Ÿ‡บ ๐Ÿ‡ป ๐Ÿ‡ผ ๐Ÿ‡ฝ ๐Ÿ‡พ U+1F1FE ๐Ÿ‡ฟ U+1F1FF

U+1F100 through U+1F1FF