Feature No Code Attached Yet
avatar peterhulst
peterhulst
4 Aug 2025

Is your feature request related to a problem? Please describe.

When a featured article (on top of the list when 'Ordering ascending') is opened and 'Save as Copy', , the created (copy) article will appear at the bottom (or near the bottom) of the same list.
This is very clumsy: you have to drag it to above to position it on the right place specially if this list is e.g. 50 articles.

Describe the solution you'd like

It would be better if the standard position of the new (copy) article created with 'Save as Copy' is directly above the position of the original article in 'Ordering ascending'.

Additional context

avatar peterhulst peterhulst - open - 4 Aug 2025
avatar joomla-cms-bot joomla-cms-bot - change - 4 Aug 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Aug 2025
avatar chmst chmst - change - 5 Aug 2025
Labels Added: Feature
avatar chmst chmst - labeled - 5 Aug 2025
avatar chmst
chmst - comment - 25 Aug 2025

Wouldn't it be better to use position "none" for the copy?

avatar peterhulst
peterhulst - comment - 28 Aug 2025

An article does not have a field 'position'.
It can be done in table _content_frontpage, if the article is on the frontpage.
Make the field 'ordering' in table _content_frontpage equal to the value of the copy.
That is easiest solution I guess.

Best regards,
Peter

avatar brianteeman
brianteeman - comment - 28 Aug 2025

Wouldn't it be better to use position "none" for the copy?

I think you meant "ordering" = 0

The current code sets the newly created featured article (the copy) with ordering =1 and increments the value of ordering of all the other featured articles. This way the newly created featured article is always inserted at the top of the ordering list in 1st position

In other words I cannot confirm your reported behaviour with Joomla 5. See video below

chrome_yAqb4MmYMG.mp4
avatar peterhulst
peterhulst - comment - 28 Aug 2025

Hello Brian,
It depends on the numbering of ordening-field in _content_frontpage.
In my case it is -998, -997, - 996 ..... 1,2 with -998 displayed as first and 2 as last in my featured display.
With the copy-article the copy is inserted with ordening = 1 and the previous 1,2 are changed to --> 2,3.
That is the reason why the copy is inserted at the end instead the top.

Possible solution:
When the copy-article gets the same ordening-number as the original article, this can be solved.

Regards,
Peter

avatar brianteeman
brianteeman - comment - 28 Aug 2025

how did you get negative numbers in the ordering

avatar peterhulst
peterhulst - comment - 28 Aug 2025

My website is converted Joomla 1.5--> 3--> 4--> 5.
I think that is the reason.

avatar brianteeman
brianteeman - comment - 28 Aug 2025

Your problem is because of the negative ordering. Everything works as intended with regular positive ordering values. This is a problem specific to your own web site. Fix the ordering and your problem is resolved.

avatar peterhulst
peterhulst - comment - 28 Aug 2025

Thank you Brian.
This fix is not that complicated and I will do.

avatar peterhulst peterhulst - change - 28 Aug 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-08-28 13:42:31
Closed_By peterhulst
avatar peterhulst peterhulst - close - 28 Aug 2025

Add a Comment

Login with GitHub to post a comment