Skip to main content
4 votes
Accepted

How to get rendered full page before returning to the browser?

To edit entire HTML output directly, create a system plugin with onAfterRender event. Use application's getBody() method to get the content and setBody() to save the modified content. defined('_JEXEC'...
Sharky's user avatar
  • 11.5k
4 votes

Extension to edit multiple articles in a same pattern?

Actually you said it - you need to change the content in the database. For doing such thing from within Joomla, Regular Labs DB Replacer Pro is the tool to use. Supporting regex searches, will allow ...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

How to remove Content older than a specific date with 410 status code

I have never had to do something like this before. However, I just had a somewhat awkward but certainly simple idea which could work for you. Create a template override for the article view in: /...
FFrewin's user avatar
  • 19.7k
3 votes
Accepted

How to add any text/script before </body>

Plugin code <?php // no direct access defined('JPATH_BASE') or die; class plgSystemMyplugin extends JPlugin { function onAfterRender() { $app = JFactory::getApplication(); ...
jdog's user avatar
  • 953
2 votes

How to categorize an Article under many categories?

I know the question is more than 1year old. But for those who would get here, I would like to provide some informations. CW Multicategories extension has been unpublished on JED at the moment. Reason ...
cwjoomla's user avatar
2 votes

How to display module in component area

Try this jimport('joomla.application.module.helper'); // this is where you want to load your module position $modules = JModuleHelper::getModules('header'); foreach($modules as $module) ...
Sh4msi's user avatar
  • 151
2 votes

How to add any text/script before </body>

Why use a Joomla plugin? You can just do the following: Add a position in the template (e.g. in your templates/template-name/index.php) just before the closing </body> tag. Let's call this ...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

How to make it easier for a client to update Joomla website?

Welcome to Joomla!! There are two main ways of creating complex layouts in Joomla!: Create templates with multiple/varying module positions and assign content blocks to those positions as needed. ...
Michael Yaeger's user avatar
2 votes
Accepted

Module to show selected articles in frontend with links to article page

Firstly, I'll start off with a side note. I'm assuming you're doing this in Joomla 3.6, which is fine, but I tested it in Joomla 3.7 and it returns a PHP error, unless you specific value_field="title",...
Lodder's user avatar
  • 26.9k
2 votes

Article Table of Content as a sticky navigation

I have developed a similar plugin for a customer, but it was somewhat tailored to a specific site- At some point I would like to rework it to make it more universal so it can work for any website. You ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

Query database and show latest 3 articles from __content

Resolved this as follows: In foreach, for the intro image, I replaced $introimage = $r->images; with $introimage = json_decode($r->images)->image_intro; For the date formatting, I added: ...
RustyJoomla's user avatar
  • 2,078
2 votes

Article appears even outside given path

This is a problem with the Joomla content router. Specifically, in the following code: if (!$advanced) { $cat_id = (int) $segments[0]; $article_id = (int) $segments[$count - 1]; if ($...
itoctopus's user avatar
  • 3,226
1 vote
Accepted

Where does Joomla store user files and folders?

It's not clear to me what you mean by user. Also you do not specify which version or 3rd party extensions you use. The following is true for Joomla 2 and 3: A user registered to your friends website ...
aProgger's user avatar
  • 126
1 vote

How to bypass deny direct access to edit link

I would suggest you find a solution with a plugin. otherwise you run into lots of problems updating your joomla. look at this https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla
MacJoom's user avatar
  • 11
1 vote

Canonical tag problem in Joomla articles

in Joomla there is no where to assign canonical tag for articles to solve duplicate content issue. is there any solution to solve this? Add your main URL (site domain) into the System SEF plugin ...
Radek Suski's user avatar
1 vote
Accepted

Canonical tag problem in Joomla articles

After a lot of searching i found a good solution to solve Joomla article's canonical tag problem. I solve this issue using Joomla custom fields. see this article to learn how to do it: https://www....
kiasaty's user avatar
  • 661
1 vote
Accepted

Can I insert custom attribute information into the MySQL content table?

This sounds exactly what the new custom fields (com_fields) are for. (Content > fields) If these don't work for you, can you expand your question to explain what you are trying to do differently.
RichardB's user avatar
  • 3,082
1 vote

Joomla plugin - replace placeholders with dynamic content in article text

I don't quite have complete clarity about what is optional and what is required in your article placeholders, but this whole task can be contained within a single preg_replace_callback() call. The ...
mickmackusa's user avatar
  • 4,826
1 vote

Create a Custom field for content for adminside as Video

Fieldsattach is one CCK that can add YouTube or Vimeo video fields to your content. The YouTube and Vimeo fields are free add-ons. DPFields which is scheduled to become the core CCK in Joomla 3.7 ...
Neil Robertson's user avatar
1 vote

Module positioning layout

You can add new module positions directly from the Template administrator panel: Our main aim was to move possibly a large number of parameters to administrative panel which normally were changed ...
Bogowoe's user avatar
  • 1,178
1 vote

Content type with own fields and form

I reviewed this question as it was "bumped to the homepage by Community" ... and felt that we certainly have to mention now the new Joomla core feature of custom fields (com_fields) that allows to ...
FFrewin's user avatar
  • 19.7k
1 vote

Show image from the article in blog layout

You can do the following in the overridden article layout file (e.g. templates/[your-template]/html/com_content/article/default.php): Search for images using a regular expression Use the first image ...
itoctopus's user avatar
  • 3,226
1 vote
Accepted

How to update a page that is not built from articles?

So, this was apparently an honest to goodness contact page.
nizz0k's user avatar
  • 537
1 vote

Batch processing Menu Item options

Just did this with joomla 3.7, only needed to change one param. here is the code i used successfully: update xxx_menu set params = replace(params,'"show_page_heading":"1"','"show_page_heading":"0"') ...
Cheryl Microutsicos's user avatar
1 vote

How to setup a new multi-language website?

Joomla 3 has it's own inbuilt system for handling multi-language websites. No plugins or extensions are needed. Here is a step-by-step guide with screen shots showing exactly how you can set up a ...
Mike Fitzpatrick's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible