Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

How to edit an article as logged in user in front-end
(1 viewing) (1) Guest

TOPIC: How to edit an article as logged in user in front-end

Re: How to edit an article as logged in user in front-end 10 years, 10 months ago #16197

Dear tkj,

We fixed in your_site/templates/sj_plus/html/com_content/article/default.php and find:

<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
	|| $params->get('show_hits'));?>

=>

<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
	|| $params->get('show_hits') || ($canEdit ||  $params->get('show_print_icon') || $params->get('show_email_icon')));?>


Please check your site again.

Thanks!
Last Edit: 10 years, 10 months ago by anhqn.
The following user(s) said Thank You: tkj

Re: How to edit an article as logged in user in front-end 10 years, 10 months ago #16198

  • tchintchie
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Hi Anh!

I´m not tkj but I adjusted your code changes to my own default.php without success. nothing changed. there just doesn´t seem to be an edit button

Re: How to edit an article as logged in user in front-end 10 years, 10 months ago #16199

  • tkj
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 27
  • Karma: 3
Hi Marina,

did you edit the css before as well? Maybe this will help!?

Re: How to edit an article as logged in user in front-end 10 years, 10 months ago #16200

  • tkj
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 27
  • Karma: 3
Hi Anh,

thank you very much for this solution. First impression is good.

tkj

Re: How to edit an article as logged in user in front-end 10 years, 10 months ago #16201

  • tchintchie
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
hi tkj!

yes I commented out these lines in template-oranges.css (the colorscheme i use):

.item-page .article-info ul.actions li a img {
display: none;
}

and adjusted the php file accordingly. still only mail and print buttons

Re: How to edit an article as logged in user in front-end 10 years, 10 months ago #16205

  • tkj
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 27
  • Karma: 3
Hi Marina,

and don't forget to disable lesscss in the template options, otherwise the css would not be loaded.
The following user(s) said Thank You: tchintchie
Time to create page: 0.39 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes