-
-
- Submit Updated Articles to Bing and Yandex with IndexNow in Joomla
- Add Published and Modified Date Meta Tags to Joomla
- Add Open Graph and Twitter Card Tags to Joomla
- Auto-Generate Meta Descriptions from Article Text in Joomla
- Add Noindex to Specific Pages in Joomla
- Verify Your Joomla Site with Google Search Console
-
- Add a View as Markdown Link to Joomla Articles
- Display the Last Modified Date in Joomla Articles
- Embed Iframes in Joomla
- Automatically Link Twitter (X) @mentions in Joomla Articles
- Open External Links in a New Tab in Joomla
- Display Estimated Reading Time in Joomla Articles
- Replace Old URLs in Joomla
- Search and Replace in Joomla
-
- Add a Footer Line to the Joomla Administrator
- Show a Staging Banner in the Joomla Administrator
- Remove the "All" Option from Admin List Limits in Joomla
- Add a Cookie Consent Banner to Joomla
- Make the Administrator Navigation Sticky in Joomla
- Add Google Fonts to Joomla
- Add a Facebook Messenger Chat Button to Joomla
- Add a Reading Progress Bar to Joomla
- Add a Custom Scrollbar to Joomla
- Show Confetti on a Thank You Page in Joomla
- Add Smooth Scrolling to Joomla
- Add a Back to Top Button in Joomla
- Add a WhatsApp Chat Button in Joomla
-
- Protect the Administrator with a Secret URL Key in Joomla
- Show a Welcome Message on First Login in Joomla
- Log Out Idle Administrators in Joomla
- Assign New Users to a Different User Group Automatically in Joomla
- Redirect Visitors by Country in Joomla
- Redirect Users After Login by User Group in Joomla
- Block User Registration with Certain Usernames in Joomla
- Block User Registration by Country in Joomla
- Block User Registration by Email Address in Joomla
- Block User Registration by IP Address in Joomla
- Remove the Forgot Password and Username Links in Joomla
- Remove the Generator Meta Tag in Joomla
- Let Users Log In with Their Email Address in Joomla
- Block Traffic by Country in Joomla
- Block Bot Traffic in Joomla
- Block Traffic by IP Address in Joomla
Add a View as Markdown Link to Joomla Articles
Give readers and AI tools a one-click plain-text version of every Joomla article by linking to its Markdown copy, using one HTML snippet.
Readers paste your articles into ChatGPT, save them to note apps or feed them to their own tools, and the HTML page carries menus, scripts and markup they don't want. Google Structured Data can serve a clean Markdown copy of every page. A link at the end of each article tells readers it exists. You can add a "View as Markdown" link to Joomla articles with one HTML snippet in Code Snippets.
Before you start
The link points to the Markdown version that Google Structured Data serves at the article's own address plus .md. The feature is part of Google Structured Data Pro. Install the extension and turn it on as Convert HTML to Markdown describes. Your site also needs Search Engine Friendly URLs, which are on by default in Joomla.
On the Code Snippets side you need version 1.0.2 or later, and the Pro edition for the article location and the PHP condition used below.
How to add this snippet
- Install Code Snippets if it isn't installed already.
- Log into your Joomla backend.
- Go to Components → Tassos Code Snippets.
- Click New.
- Enter a title, for example View as Markdown link.
- Set Code Type to HTML.
- Set Insertion Method to Auto-Insert Locations.
- Set Location to After Article Content.
-
Paste this code into the editor. The
{tcs article.link}smart tag is replaced with the address of the article being shown, and.mdgoes right after it. To change the link text, edit View as Markdown:<p class="tcs-markdown-link"><a href='{tcs article.link}.md'>View as Markdown</a></p> -
Open the Conditional Logic tab. The condition keeps the link off while the Markdown feature is off or Google Structured Data is disabled, so there's never a dead link:
- Set Display on to Selected Pages.
- Click New Condition Set.
- Click Select Condition and choose PHP.
-
Paste this code into the condition's editor:
$helper = '\Joomla\CMS\Component\ComponentHelper'; return $helper::isEnabled('com_gsd') && $helper::getParams('com_gsd')->get('markdown_enabled');
- Click Save & Close.
Check that it works
- Open any article on your site and scroll to the end of the text.
- Click View as Markdown.
The browser shows the article as plain Markdown text, starting with the title as a heading. The address in the bar is the article's address with .md at the end. Blog and featured pages don't get the link, only single article pages.
To show the article's last modified date in the same spot, see Display the Last Modified Date in Joomla Articles. To learn more about HTML snippets, read the HTML snippet docs.