J3 Issue ?
avatar wezetel
wezetel
18 Jan 2018

Steps to reproduce the issue

If searching for an article I get a list of articles matching the search criteria. There are also articles found in the archive (ok: I don't like Joomla links to these archived articles, because you first need to go the way through the archive list and manualy select the according article, but this is an issue I already have placed).
But opening an article from the archive displays the original article and there is no indication, that this article is already archived.
It would be good to have an indication, that the article is archived, e.g. a background image or some text added to the title (" - archived"). This should be handled in the settings (content settings?)
I'm currently trying a dirty stuff, by including code in components/com_content/views/article/tmpl/default.php
This is the code I currently have included after line 26:

<?php if ($this->item->state == 2) : ?>
<div><h3> Archived </h3></div>
<?php endif; ?>

Simple, but it works.
But I would prefer something included in the system and customizable from the admin area. Good would be to define a background image for archived articles.

avatar wezetel wezetel - open - 18 Jan 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Jan 2018
avatar Quy
Quy - comment - 18 Jan 2018

Related #14923

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jan 2018

@wezetel can you please comment your Feature Request on #14923 if it isn't there? Close this Issue for this Reason.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jan 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-01-19 06:32:04
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 19 Jan 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Jan 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jan 2018
Status Closed Discussion
Closed_Date 2018-01-19 06:32:04
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jan 2018
Status Discussion New
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 19 Jan 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 19 Jan 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jan 2018

reopened cause its not good to have different Requests in one Issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19401.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jan 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jan 2018
Category com_content com_content Feature Request
avatar wezetel
wezetel - comment - 19 Jan 2018

Thanks for re-opening, because #14923 has a different scope (basically appearance of archived articles in blogs, lists,..)
My request is just for means to make it visible for end users, that they are reading an archived article.
At the current point in time they can't distinguish, if this is really actual news or not, when they open an article.

avatar wezetel wezetel - change - 21 Jan 2018
The description was changed
avatar wezetel wezetel - edited - 21 Jan 2018
avatar wezetel
wezetel - comment - 21 Jan 2018

As an interim solution until this feature is included in Joomla I have included in components/com_content/views/article/tmpl/default.php after line 26 following code:

<?php if ($this->item->state == 2) : ?>
	<div id="archive">
<?php else: ?>
	<div>
<?php endif; ?>

In addition at the end of the file a </div> needs to be added. This code is resulting in a named div only for archived articles, which can be customized in the templates css, e.g.
#archive {background-image: url("../../../images/archived.png");}
(Remark to myself: keep in mind this is a core hack and needs to be re-applied after any Joomla Update, until this is an official feature)

avatar Quy
Quy - comment - 21 Jan 2018

This can be done with Component Output Types and Layout Overrides without hacking core files.

avatar wezetel
wezetel - comment - 22 Jan 2018

True! Nearly forgotten that I can use overrides..
Nonetheless it would be good to have this kind of feature included in Joomla

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar Quy Quy - change - 4 May 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-05-04 13:04:23
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 4 May 2018
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 4 May 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 4 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19401

avatar Quy
Quy - comment - 4 May 2018

Please test PR #20297


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19401.

Add a Comment

Login with GitHub to post a comment