Skip to Content Skip to Menu

Show articles plugin include article intro image

  • jabba84
  • jabba84
  • OFFLINE
  • Posts: 91
  • Thanks: 5
  • Karma: 0
2 years 4 months ago #329957 by jabba84
Hello, i'm using the article plugin to list the articles a user have created. Is there a way to retrieve also atricle intro image? I'm trying to edit the "tab.php" file inside the template (/components/com_comprofiler/plugin/user/plug_cbarticles/templates/mytemplate) but can't retrieve it somehow.

2nd question: i'm adding a button that can be viewed by owner only (i can do it with joomla's acl) to directly edit the selected item. I can do it in joomla linking to the category and the adding at the end this string "?view=form&layout=edit&a_id=40&catid=10" where "id" is the article id. But i get an error:

403 You are not permitted to use that link to directly access that page

Is there a way to prevent this?

Thanks!

WebMaster & JoomlaLover @ www.pixed.it

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 4 months ago #329963 by krileon

Hello, i'm using the article plugin to list the articles a user have created. Is there a way to retrieve also atricle intro image? I'm trying to edit the "tab.php" file inside the template (/components/com_comprofiler/plugin/user/plug_cbarticles/templates/mytemplate) but can't retrieve it somehow.

You'll need to use Joomla API for that. The article object CB Articles provides is very limited just to support the implementation in CB Articles itself.

2nd question: i'm adding a button that can be viewed by owner only (i can do it with joomla's acl) to directly edit the selected item. I can do it in joomla linking to the category and the adding at the end this string "?view=form&layout=edit&a_id=40&catid=10" where "id" is the article id. But i get an error:

My guess is your URL isn't valid. You're adding ? to it which probably should be & as the URL likely already has parameters.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • jabba84
  • jabba84
  • OFFLINE
  • Posts: 91
  • Thanks: 5
  • Karma: 0
2 years 4 months ago #329984 by jabba84
Ok thanks! I'll use joomla APIs to retrieve info directly from the database.
Thanks again

WebMaster & JoomlaLover @ www.pixed.it

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum