Skip to main content
Share Your Experience: Take the 2024 Developer Survey
11 votes

Custom Read More text

Yes is posible, go to each article, from here you can see a Tab called Optionsat the bottom you can see the field Read More Text, see the screenshot. Regards.
AlejandroVega's user avatar
4 votes
Accepted

Article custom fields for one category

Right, been playing around and got it working. You're firstly going to need to add the parameter to select a category to your acf.xml file, like so: <config> <fields name="params"> ...
Lodder's user avatar
  • 26.9k
3 votes

Define a default intro image on article submissions

You would want to put this as a template override for com_content. Depending on whether you want it to appear on the category page or single article, the file would go /templates/TEMPLATE_NAME/html/...
YellowWebMonkey's user avatar
3 votes

Getting the source code of an older version of an article?

Revisions are stored in the #__ucm_content table. The version number is the core_version field. If you want, for example, to get the body of the 2nd reversion of the article with ID 123, you issue the ...
itoctopus's user avatar
  • 3,226
3 votes

How can I increase the maximum length of article titles?

After reading the comments under your question: You could modify the #__content.title column but bear in mind that this involves a potential risk of data lοss if a future Joomla update contains ...
FFrewin's user avatar
  • 19.7k
3 votes

How to show previous/next buttons in my articles?

To display Next / Previous buttons at the bottom of articles pages, then first of all the content pagination plugin should be enabled. Then for each of the articles, the corresponding value of show ...
FFrewin's user avatar
  • 19.7k
2 votes

How to get the intro image of a joomla article

I had the same problem on twitter. I was trying to add my link picture just as facebook does automatically but had to investigate the CARD Validator here https://cards-dev.twitter.com/validator ......
Luis H Cabrejo's user avatar
2 votes

Ask for confirmation before article publish

You can do this by adding the following code to the very end of your /administrator/components/com_content/views/tmpl/edit.php: <script> jQuery("#jform_state").on('change', function(e){ ...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

Menu Item - Show only a few articles

You can use the featured articles system represented with a star in content manager and use a "Featured Articles" menu item type to show only the specific articles that you have marked. Then use a ...
Kitase88's user avatar
  • 977
2 votes
Accepted

Get values of other custom fields in field layout override

Create an override of com_fields/layouts/fields/render.php. Find this line: $content = FieldsHelper::render($context, 'field.' . $layout, array('field' => $field)); Change it to also pass the ...
Sharky's user avatar
  • 11.4k
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

Execute Joomla CLI script to bulk import JSON data to articles

I found when running CLI scripts that other things that you don't really need to execute, i.e. plugins, will cause failures because they don't check themselves to disable if they are running under a ...
Irata's user avatar
  • 3,947
1 vote

Get values of other custom fields in field layout override

Here's a backstop solution, for using if no-one comes up with a better idea. The basic approach is to use a plugin which is triggered by onContentPrepare. In this plugin it gets and processes the ...
Robbie Jackson's user avatar
1 vote

How to change date format in JHTML::calendar to d-m-Y?

The basic issue is that sql datetime field format is this: 'YYYY-MM-DD HH:MM:SS'. You can only save a date in this format when you save a date/time value (in MySQL at least). If you have a calendar ...
Zollie's user avatar
  • 2,936
1 vote

How to validate the Article - Intro Image field in the backend?

To prevent invalid values from being passed to the parent window, you can create an override of mediafield.js (and minified mediafield.min.js) which is located in /media/media/js/ folder. Add your ...
Sharky's user avatar
  • 11.4k
1 vote

Is there still no convenient way to hide an article's content on the category blog page?

I could be wrong about this, because it's not something I've attempted to set up, but I assume you could do this with a custom blog layout template. You can specify the number of characters of intro ...
LMK Web's user avatar
  • 183
1 vote
Accepted

Limit articles frontend creation by user group

I would suggest developing a content plugin along with template override to do this task. The below example limits max 5 articles per day per user. public function onContentBeforeSave($context, $...
Nagarjun's user avatar
  • 3,001
1 vote

Undefined index in legacyrouter 3.8.2

I have the same problem (I use Joomla 3.8.3) and I just found a solution. The problem is in the exact code that you wrote. You have to change it to: if ($menuItem !== null && ...
Impression eStudio's user avatar
1 vote
Accepted

Menu item - Articles List - Filter by user

As per the suggestion by Nisse Engström (Many thanks) Ill post my solution here: Having hunted around for an answer to this question for quite a while I have found a working solution and post it here ...
MaxVK's user avatar
  • 181
1 vote

Menu item - Articles List - Filter by user

I just posted this answer to another question - which is not exactly the same but the requirements are very similar and fall under the same context, which is "Front-end Authoring". That ...
FFrewin's user avatar
  • 19.7k
1 vote

article view - com_content not triggering content plugins when article is split

If you just need plugins to run on the fulltext there is another way that may work for anyone else with this issue: go to the Article settings in the admin console and turn off the "Show Intro ...
Ella Ryan's user avatar
  • 111
1 vote
Accepted

article view - com_content not triggering content plugins when article is split

You are invoking content.prepare without parameters. One of those parameters is the text you want the plug-ins to process. So your code runs the content plug-ins and then appends an empty string to ...
Ville Niemi's user avatar
  • 1,206
1 vote

Joomla 3.8.1 Neither Alternative Menu Item Nor Layout Reflects on Front End

I know this is a really old post, but I ran across it trying to solve the same issue in Joomla 4. The simple solution was to change the case. The template filename need to be in all lowercase: joomla/...
Scott Talsma's user avatar
1 vote

How can I remove Structure Data from my content

That markup is in your templates layout layout overrides, e.g. /templates/YOUR-TEMPLATE/html/com_content/article/default.php if you have one, if not it's coming from the core com_content view. The ...
Seth Warburton's user avatar
1 vote

Custom redirect points to correct page but prints 404 in <title>

Might be worth expanding your question to cover a bit about what your module is actually doing, as I suspect this may come down to a misunderstanding of the difference between modules and components. ...
RichardB's user avatar
  • 3,082
1 vote
Accepted

Getting latest article from category including subcategories

You need to enable subcategories with the subcategories.filter and also specify the levels of subcategories you want to go deep down. $model->setState('filter.subcategories', true); $model->...
FFrewin's user avatar
  • 19.7k
1 vote

I want to create a module that shows the content of an article

There is not a standard form field for articles, but there is the SQL field which allows querying the database and returns a dropdown list with the results, which could be sufficient for a simple ...
FFrewin's user avatar
  • 19.7k
1 vote

How do I sort articles by article order in Joomla 3?

One possible workaround is to use the Featured Articles feature. You can set your articles as featured from any kind of category and then use a Featured Articles menu item to display with your desired ...
FFrewin's user avatar
  • 19.7k
1 vote

How do I sort articles by article order in Joomla 3?

You need to go to the Administrator panel -> Menus -> Main Menu -> go to the tab Blog Layout and find there Article Order - Oldest first, or setup other settings would you like. Your admin link ...
Aleksander's user avatar
1 vote

Copy partial site content from old site to new site

It would be simpler if you would have asked before building a new website, as me personally I would have suggested you to copy the old database and build over there. Now there more things to consider ...
FFrewin's user avatar
  • 19.7k

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