Questions tagged [com-content]

For questions regarding Joomla's built-in article manager component

Filter by
Sorted by
Tagged with
1 vote
2 answers
181 views

Edit category list to show items from a category and its subcategories

I'm trying to modify the Category List of the com_content component via override, so that it shows both the articles of the selected category and its subcategories. I tried to edit the ...
Nintendomi's user avatar
3 votes
1 answer
52 views

Unsure if all content items need a row in the ucm_base table

I'm writing a console plug-in in Joomla 4.2.3 to add tags to content items based on field values that'll run on a cron task. I've generally got it working ok, my code adds a row to the ...
AndyGaskell's user avatar
1 vote
1 answer
32 views

Show configuration forms of different plugins into a single tab

I wrote several plugins and for each one exists a relative configuration form loaded by the onContentPrepareForm event using the $form->loadFile() method Now each time I use this technique, Joomla ...
Gino's user avatar
  • 11
1 vote
1 answer
59 views

What is the best way to have pages displaying articles from our custom content table in Joomla 4.1?

Related: Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them? The answer to that question is "In Joomla 4 it is, but authors ...
Vincenzo Oliva's user avatar
1 vote
3 answers
332 views

Execute Joomla CLI script to bulk import JSON data to articles

I have the following PHP code working to bulk add array items from JSON to com_content. The code is executed by directly accessing the file in the web browser. For example, http://examples.com/json-...
Mike Hermary's user avatar
1 vote
0 answers
17 views

J4: General Config > Article Layout > Article Options switch: Switched to OFF also hides custom fields tabs

When I switch off the Arcticle options in General Config > Article Layout > Article Options switch all tabs for my custom field group tabs are hidden as well. I don't want that. Is there a way ...
loovanloon's user avatar
1 vote
1 answer
128 views

Query database and show latest 3 articles from __content

I need to show the latest 3 content items from the database. I want to show the: Intro Image Article title (with a link to the article) Published Date Intro Copy (limited to 100 characters) I have ...
RustyJoomla's user avatar
  • 2,076
1 vote
0 answers
243 views

Managing authors of Joomla articles

We have a Joomla site with a few people managing it, adding articles written by numerous other authors. I would like to set the author name for each article and show it in the front end in the article ...
Matej's user avatar
  • 123
0 votes
2 answers
235 views

How to get category ID when creating new article in administration area

When creating a new article, how can I get the current selected category ID as shown in the category select field? I need to pass the value to a PHP variable. There is the javascript function ...
Nadal's user avatar
  • 188
0 votes
1 answer
273 views

How to set article options and associations programmatically?

I work on a custom Joomla 3 module that creates articles programmatically based on user input. I can create the articles, but I could not find a way to set the article options and associations when ...
wanderlusted's user avatar
1 vote
2 answers
385 views

Use custom fields in index.php template file

For some reason i need tu use articles custom fields in index.php file template, i try this code without success : This after defined('_JEXEC') or die('Restricted access'); JLoader::register('...
Laurent's user avatar
  • 33
1 vote
2 answers
501 views

Get values of other custom fields in field layout override

I am using a repeatable custom field for articles in Joomla! 3.9.16 with an alternative layout (override) of com_fields/layouts/field/render.php and an override of plugins/fields/repeatable/tmpl/...
Mano Meter's user avatar
2 votes
1 answer
356 views

Define a default intro image on article submissions

I'm searching a way to define a default intro image in the Joomla article creator from the core (when a user create an article if he don't add an intro image there is one by default generated from a ...
Paul Aptel's user avatar
2 votes
1 answer
2k views

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

In a form I have a date/time-field. It works correctly, but the format of the date isn't right -- I require Dutch date notation (d-m-Y). Instead of day-month-year it displays and saves it as year-...
YolkNet's user avatar
  • 81
0 votes
2 answers
144 views

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

When managing an Article in the administrator/backend, it is possible to insert a non-url into the "Intro Image" field (located in the "Images and Links" tab). Upon clicking "Select" a modal window ...
mohan's user avatar
  • 71
3 votes
1 answer
443 views

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

I've been using K2 since Joomla 1.5. I noticed that in recent versions Joomla has done a lot of improvements to its content system, so I decide to switch back to use vanilla Joomla com_component for ...
shenkwen's user avatar
  • 1,379
1 vote
1 answer
77 views

Limit articles frontend creation by user group

I´m a bit puzzled where to start. This should happen: admins should be able to edit a Usergroup and define the amount of articles members of this group can create. Before a group member creates/...
Anatol's user avatar
  • 113
0 votes
1 answer
64 views

Undefined index in legacyrouter 3.8.2

I get lots of notices for components/com_content/helpers/legacyrouter.php, like: "/home/xxx/domains/xxxxxx/public_html/cc_j34/components/com_content/helpers/legacyrouter.php on line 95\nPHP message: ...
Pzzz's user avatar
  • 1
2 votes
2 answers
1k views

Menu item - Articles List - Filter by user

I'm very new to Joomla (version3). I have two registered users. When any registered user is logged in they can see a new menu which contains an item to show the Articles list. This works as expected....
MaxVK's user avatar
  • 161
0 votes
2 answers
254 views

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

I've created a template override for the article view where the intro and the full text are invoked separately. So, instead of <div itemprop="articleBody"> <?php echo $this->item-...
manchine's user avatar
2 votes
1 answer
101 views

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

Within mytemplate, I created an alternative menu and an alternative layout for the com_content articles view, and neither reflects on the front end. For com_content, in my template, I created the ...
IberoMedia's user avatar
5 votes
1 answer
49 views

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

I want to get the HTML source of an old version of an article from the version history without restoring it. I can only seem to get a rendered preview or a change list in HTML from the compare option. ...
James's user avatar
  • 151
3 votes
1 answer
1k views

How can I increase the maximum length of article titles?

I need to create a few articles with very long titles, but it seems like Joomla has a maximum article title length of around 256. How can I increase this limit?
Dan's user avatar
  • 341
1 vote
1 answer
216 views

How can I remove Structure Data from my content

i like to remove the structure data from my content. How can I do that? for example: itemprop="headline" itemprop="articleBody"
Benjamin Lutje's user avatar
0 votes
1 answer
25 views

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

I'm new to joomla and this isn't my field. I'm developing a module which should be shown on a page. The URL which prints the content is info-compagnie-aeree.html?iata=af and I want it to be compagnie-...
Cliff Burton's user avatar
2 votes
1 answer
4k views

How to show previous/next buttons in my articles?

I'm using helix3. my website is 1PSD.net. how to put a button "next" in bottom my pages?like this picture? I mean, not button "READ MORE". I want multiple pages similar the left ...
yaHosseinDS's user avatar
1 vote
1 answer
1k views

Getting latest article from category including subcategories

I am attempting to get the latest article in a category that has a number of subcategories through the Articles ContentModel. If I use $model->setState('filter.category_id', $this->category->...
Mark's user avatar
  • 199
0 votes
1 answer
96 views

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

I want to create a custom module that shows the content of an article, I need to know two things: 1) What form field should I use in order to select the article that I want to use from the backend?. ...
Giovanni El Zelah's user avatar
2 votes
1 answer
49 views

Ask for confirmation before article publish

How we can add confirm dialog before publishing or unpublish article in Joomla ? I want to add confirmation box before publish or unpublish, I want same for custom component also, how i can achive ...
Info Truth's user avatar
2 votes
2 answers
3k views

Copy partial site content from old site to new site

I am trying to copy content from an old joomla instance to a new joomla instance. We archived the old site and created a completely new site with the same version of joomla both sites are at 3.6.4. ...
DeveloperChris's user avatar
3 votes
1 answer
207 views

Create a Custom field for content for adminside as Video

I am in need of custom plugin that allow me to add custom fields like Video from admin side for Articles of all category. Can anyone guide me please. Video File type (I will select file and that ...
Info Truth's user avatar
2 votes
1 answer
108 views

Category blog from a single user

I'm triing to find a way to have a single blog from various users, but that all users can have ther own menuitems with their articles Is there any way to do it only with com_content? to filter ...
Johnnydement's user avatar
2 votes
2 answers
207 views

Menu Item - Show only a few articles

I have a general question. I want to show for instance four articles ( or ten, the number doesn't matter just so much as I want ) that are in a category "articles". So the problem is that in the ...
suben's user avatar
  • 99
3 votes
2 answers
2k views

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

I've got a category with two sub-categories, the articles appear to be grouped in the back end by sub-category and it doesn't allow me to set the article order to mix them. Is this normal? It's ...
Peter Wooster's user avatar
6 votes
1 answer
2k views

Custom Read More text

Is it possible to set a custom Read more text for each article in Joomla? I would like to be able to somehow set a unique text for some of the readmore links (added using <hr id="system-readmore" /&...
johanpw's user avatar
  • 13.3k
4 votes
1 answer
577 views

Article custom fields for one category

With the help of this and this I made a plugin to add a custom fields to the article component. It works fine but I would like to make these custom fields mandatory and only for a specific article ...
web-tiki's user avatar
  • 1,373
2 votes
1 answer
488 views

How to show a module inside com_content/article/default.php

I'm attempting to show a module inside the com_content/article/default.php file but it fails. Here is the php code <div class="mySearch"> <?php jimport( 'joomla.application.module....
Riccardo990's user avatar
2 votes
1 answer
2k views

Calling category title params from a com_content

I have tried to search on every Joomla site to find a solution but haven't found a proper result yet. I have created this custom module for my page and I need to display the "corrent" category title. ...
Peter's user avatar
  • 325
3 votes
2 answers
801 views

Joomla assets table ucm rows

Does anyone know what these rows are for? Is it safe to remove them? Since they seem to be mostly empty? Note: this is assets table!
user avatar
1 vote
1 answer
2k views

Jmodel get articles of an attribute

I'd like to get articles of a certain attribute, how do I achieve it. Below is a code I get to get an article of an id: jimport('joomla.application.component.model'); JModel::addIncludePath(...
Jimmy Obonyo Abor's user avatar
2 votes
1 answer
133 views

Joomla create content plugin to add fields to article (com_content)

Am a beginner to joomla development ,id like to add extra fields to the article (com_content)component. I have read this article https://docs.joomla.org/Adding_custom_fields_to_the_article_component ...
Jimmy Obonyo Abor's user avatar
3 votes
2 answers
503 views

Article Manager: "No Matching Results" when navigating in pagination after page 1 - Joomla 3.4.5

I am getting a weird issue on site I 'm setting up on Joomla 3.4.5. When in article manager trying to go the next page (so to show the next bunch of 20 articles), it shows no articles and a message &...
FFrewin's user avatar
  • 19.6k
1 vote
2 answers
1k views

I need to change "Continue Reading " to "Read more" How to do?

HI. I need to change "Continue Reading " to "Read more" How to do? *Joomla 3.4.5 Thk.
Hasan Lebaesa's user avatar
5 votes
1 answer
3k views

Query database for articles, filtering by tag

I can use this to get published articles from the database: function queryDatabase_Posts($select, $limit) { // Database connection and query object. $db = JFactory::getDbo(); $query = $db-...
kunterbunt's user avatar
2 votes
1 answer
196 views

Language tags in article content

I have a Joomla site with lots of articles and two languages. All content is the same, except for the weekdays. Is it possible, in any way, to use the Joomla override language to create tags and add ...
miguelmpn's user avatar
  • 303
0 votes
1 answer
213 views

How to add gravatar support to Joomla article

I'd like to add gravatar support to my Joomla article. How can I do that?
webchun's user avatar
  • 2,418
4 votes
1 answer
2k views

Check if Content exists

I have this piece of code in my template: <article id="content"> <section id="mid"> <jdoc:include type="component" /> </section> </article> which ...
JoomlaUser's user avatar
3 votes
1 answer
1k views

Users can't save new article in backend (buttons does not show)

I've got an annoying problem and can't solve it. I need to create a lower-level admin access in my website backend, which can only create and edit articles. I started creating a new group (Admin ...
user2132234's user avatar
3 votes
2 answers
615 views

Adding Custom Fields to Article Component [Not in attribs field]

I am trying to save some additional fields into the Article Content and there has been a few questions like this relating to this issue but all of the solutions seem to point to saving the extra field ...
sifu's user avatar
  • 1,105
1 vote
1 answer
242 views

Running content plugins for a custom editor type field in com_content

For our latest Joomla-Projects, I extended the com_content component with custom fields using the following documentation: https://docs.joomla.org/...
pixx's user avatar
  • 130