Questions tagged [com-content]
For questions regarding Joomla's built-in article manager component
79
questions
1
vote
1
answer
42
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 ...
1
vote
3
answers
166
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-...
1
vote
0
answers
9
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 ...
1
vote
1
answer
36
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 ...
1
vote
0
answers
124
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 ...
0
votes
2
answers
95
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 ...
0
votes
1
answer
188
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 ...
1
vote
2
answers
260
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('...
1
vote
2
answers
325
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/...
2
votes
1
answer
214
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 ...
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-...
0
votes
2
answers
104
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 ...
3
votes
1
answer
375
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 ...
1
vote
1
answer
68
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/...
0
votes
1
answer
63
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: ...
2
votes
2
answers
945
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....
0
votes
2
answers
217
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-...
2
votes
0
answers
93
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 ...
5
votes
1
answer
45
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.
...
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?
1
vote
1
answer
183
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"
0
votes
1
answer
24
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-...
2
votes
1
answer
3k
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 ...
1
vote
1
answer
971
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->...
0
votes
1
answer
89
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?. ...
2
votes
1
answer
44
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 ...
2
votes
2
answers
2k
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.
...
3
votes
1
answer
197
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 ...
2
votes
1
answer
107
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 ...
2
votes
2
answers
180
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 ...
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 ...
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" /&...
4
votes
1
answer
569
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 ...
2
votes
1
answer
434
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....
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. ...
3
votes
2
answers
716
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!
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(...
2
votes
1
answer
118
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
...
3
votes
2
answers
484
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 &...
1
vote
2
answers
988
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.
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-...
2
votes
1
answer
174
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 ...
0
votes
1
answer
199
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?
4
votes
1
answer
1k
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 ...
3
votes
1
answer
988
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 ...
3
votes
2
answers
603
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 ...
1
vote
1
answer
239
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/...
3
votes
4
answers
4k
views
How to display user profile fields on an article?
When using the TinyMCE editor, how can I display the username at the top of an article?
2
votes
2
answers
2k
views
Unable to hide subcategories in category blog layout
I have a menu item of the category blog type, which is pointing to a category which has category children. I have configured this menu item and the category manager options to hide all subcategories, ...
1
vote
2
answers
639
views
Add Content Field Data on form submit
I have a plugin that adds a couple extra fields to com_content. I've already sorted out how to add the fields to the frontend editing form, so that they're displayed and saved appropriately, that is ...