avatar drjjw
drjjw
20 Mar 2020

Steps to reproduce the issue

Create menu item for Category Blog
Login frontend with Super Admin
Access menu item above.

Expected result

Button for new article should appear

Actual result

Button for New Article does not appear
If changing to Category List layout, button appears

System information (as much as possible)

Joomla! 3.9.16
Protostar template

Additional comments

avatar drjjw drjjw - open - 20 Mar 2020
avatar joomla-cms-bot joomla-cms-bot - change - 20 Mar 2020
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Mar 2020
avatar drjjw drjjw - change - 20 Mar 2020
The description was changed
avatar drjjw drjjw - edited - 20 Mar 2020
avatar jwaisner jwaisner - change - 20 Mar 2020
Priority Urgent Medium
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 20 Mar 2020
avatar brianteeman
brianteeman - comment - 21 Mar 2020

Has this ever been there or is this a feature request?

avatar infograf768
infograf768 - comment - 21 Mar 2020

As far as I remember, this has always been the case.

I could easily add this feature here, and it can also be done via an override.

diff --git a/components/com_content/views/category/tmpl/blog.php b/components/com_content/views/category/tmpl/blog.php
index 320fbec..0232a81 100644
--- a/components/com_content/views/category/tmpl/blog.php
+++ b/components/com_content/views/category/tmpl/blog.php
@@ -135,3 +135,8 @@
 			<?php echo $this->pagination->getPagesLinks(); ?> </div>
 	<?php endif; ?>
+
+	<?php // Code to add a link to submit an article. ?>
+	<?php if ($this->category->getParams()->get('access-create')) : ?>
+		<?php echo JHtml::_('icon.create', $this->category, $this->category->params); ?>
+	<?php endif; ?>
 </div>

Which gives
Screen Shot 2020-03-21 at 09 43 37

avatar ReLater
ReLater - comment - 21 Mar 2020

I made some hasty investigations yesterday down to version 3.7.4. As far as I saw it was never a feature in blog views and I ended with the question: "Is it a bug that it was forgotten in blog views?". ;-)

avatar drjjw
drjjw - comment - 21 Mar 2020

OK thanks very much, but before you get too smug about whether this a bug or feature, perhaps acknowledge that it seems rather random that this "feature" would appear only for Category List and not Category Blog. To a user new to Joomla (which I am not), this would certainly seem more bug than feature.

avatar alikon
alikon - comment - 21 Mar 2020

i cannot see a reason why it is there for Category List and not for Category Blog
so more a bug than a feature imho
@infograf768 can you do a pr please ?

avatar ReLater
ReLater - comment - 21 Mar 2020

but before you get too smug about whether this a bug or feature

Please understand that it's a frustrating waste of time for guys like me to provide a pr and for others to test it if the pr will be refused in the end. Therefore it's better to discuss it and collect input before a production lead decides.

avatar drjjw
drjjw - comment - 21 Mar 2020

but before you get too smug about whether this a bug or feature

Please understand that it's a frustrating waste of time for guys like me to provide a pr and for others to test it if the pr will be refused in the end. Therefore it's better to discuss it and collect input before a production lead decides.

Understood. But also bear in mind, I go about troubleshooting, creating test sites to reproduce and report. We are encouraged to help...

avatar ReLater
ReLater - comment - 21 Mar 2020

Just to clarify (doesn't need no more discussion here):

I think you simply misunderstood my comment above ("and I ended with the question: "Is it a bug that it was forgotten in blog views?". ;-) ")

  1. For me the answer is "yes".
  2. I don't have to decide that. I'm sometimes a contributer here but 90% of the time a user like you or a "developer" (custom extensions) that has to live with missing or overloaded "features" in J3 .

Perhaps my translator translated "smug" in your comment wrongly. For me it felt disrespectful.

avatar infograf768
infograf768 - comment - 21 Mar 2020

Can make PR. We can, and have lived without it since 1.5, but it does cost much to add it.
Remains to decide if we add it as an override to our core templates or by default.

@HLeithner please advise.

avatar HLeithner
HLeithner - comment - 21 Mar 2020

Is a bug in my opinion. Please create a PR.

avatar infograf768
infograf768 - comment - 22 Mar 2020

Please test #28429
Closing as we have a patch.

avatar infograf768 infograf768 - change - 22 Mar 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-03-22 08:21:36
Closed_By infograf768
avatar infograf768 infograf768 - close - 22 Mar 2020
avatar Milglius
Milglius - comment - 30 Mar 2020

infograf768 this created issue #28514 aand will be very unpleasant surprise for joomla 3.9.17 users!

At least make this 2 issues as an option? Couse This will break lyout of many joomla sites if these are not optional So this issue is BC issue.

My personal opinios this New article button in the botom should be removed in joomla 3.9.17

avatar HLeithner
HLeithner - comment - 30 Mar 2020

Lock down see #28514 (comment)

Add a Comment

Login with GitHub to post a comment