Questions tagged [content-plugin]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
35 views

What are some options to show different parts of an article to different users?

I have some information/data that is personal (not necessarily secret) and I want a menu entry to show the information relevant for the logged in user. On the page there are also some common ...
thoni56's user avatar
  • 277
0 votes
0 answers
55 views

Plugin That Copies Menu Item With Its Module Assignments Does Not Work on Joomla 4

I am trying to create a Joomla 4 Plugin that copies a menu item with its module assignments. My code works well on J3, but not J4. What am I missing? Here is my plugin's code: <?php /** * @package ...
wisdom's user avatar
  • 21
2 votes
1 answer
109 views

Joomla 4 Plugin to overwrite value of a custom field

I need a Joomla 4 Plugin to overwrite a marker in Custom Fields of type text or textarea with the article's title. I added a onPrepareContent() method where I have access to the articles title as well ...
cappu's user avatar
  • 137
2 votes
1 answer
179 views

Plugin to manipulate form data onContentBeforeSave

For a Joomla 4 project I wrote a Content Plugin to grab video thumbs from Video-URLs (Vimeo) the user adds into Custom form field of a frontend form. The following code successfully gets the video ...
cappu's user avatar
  • 137
0 votes
1 answer
217 views

Custom plugin doesn't even seem to load on Joomla 4

As a sort of newbie developer with php/Joomla, I created a content plugin for Joomla 3 which pretty much did what I wanted and expected... I then decided to migrate it to Joomla 4 following the very ...
Phil91's user avatar
  • 31
1 vote
1 answer
86 views

Simple Joomla plugin not working on frontend

I have a simple Joomla 3 plugin that works fine on backend for resizing images when uploading from multimedia manager: <?php defined('_JEXEC') or die('Restricted access'); class ...
Diego Moreno's user avatar
1 vote
0 answers
46 views

Is SweetAlert2 html parameter length limited in size?

I recently created a plugin for Joomla which uses the nice SweetAlert2 popup script and it generally works fine. However, surprisingly, when the size of the html message I use is too long, the box ...
Philippe Levi's user avatar
1 vote
1 answer
199 views

How to use Openlayers transpiled Javascript code in my own extension (a "bundle")

I am developing a Joomla 3.x content plugin to display Openlayer maps in articles based on @Robbie Jacksons excellent tutorial at https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map ...
SoaringBird's user avatar
1 vote
1 answer
80 views

How can a Joomla 3x "content" plugin determine which page it is on?

I am building an advanced image handler for Joomla 3x where images are built dynamically at run-time based on a number of parameters defined in tags inserted into articles. An example look like this: {...
SoaringBird's user avatar
0 votes
1 answer
41 views

How can I place a module position in the midpoint of my content no matter what size

I want to put a call to action in the middle of my content no matter what size the content it. I know I will need some JavaScript in order to calculate the word count and the mid point. And I know I ...
Eoin's user avatar
  • 1,889