Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

CBGallery - thumbs in backend listitems

  • bazik666
  • bazik666
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 0
8 years 1 week ago - 8 years 1 week ago #290274 by bazik666
CBGallery - thumbs in backend listitems was created by bazik666
Hello,

i'm trying to display images in itemlist (index.php?option=com_comprofiler&view=editPlugin&action=showitems). In third column there is EYE icon, when i clicked it i get image . I would like to replace this Eye-icon with image (not to have click every single item).

I found that is generated in xml (components\com_comprofiler\plugin\user\plug_cbgallery\xml\views\view.com_comprofiler.showitemrows.xml).

Is there a chance to replace it with IMG?

Regards,
Luke

EDIT:
I'm trying something like this:
Code:
<field name="file" type="group" link="cbo:rowedit" parameters="mediaid" paramvalues="id" align="left" label="Img" > <param name="file" type="string" directory="comprofiler/plug_cbgallery/" /> </field>

So i have new column, but there is only a name of image. When i'm changing type="string" to type"media", there is an error, that media is not supported. I've tried to add directory="", but here i have another problem, becaoue users has own directories for images.
Last edit: 8 years 1 week ago by bazik666.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 1 week ago #290302 by krileon
Replied by krileon on topic CBGallery - thumbs in backend listitems
There's no XML usecase for that. The filelist and imagelist XML types are for selecting an image from a dropdown list from the specified directory. It does not display images. Even if there was there really isn't enough room for an image there at least not in a way that's very visible. At any rate I've added a feature ticket to extend the XML types available with an image type which should make this possible otherwise the only way is with a custom PHP function that returns the image.

forge.joomlapolis.com/issues/6442


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.

  • bazik666
  • bazik666
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 0
8 years 1 week ago #290309 by bazik666
Replied by bazik666 on topic CBGallery - thumbs in backend listitems
Thank You Krileon!

can you give me some tip about how to add f.e. simple custom text to each title (ofcourse in listitems). Let say, that i would like to add 'EXAMPLE TEST' at the end of every title item.
If i knew that, i will be able to write php function to show image next to title. Yes there is no space for that, but i will satisfied evan when each row will have image 50x50px.

All day long i was searching and try to understand how is generated that list. I found, that xml defines which fields are shown in the list, but i still have no idea where is php script, that get a values from database. I think it's somewhere in libraries/CBLib/CBLib/AhaWow/ - but still don't know where to catch it.

Regards
Luke

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 1 week ago #290314 by krileon
Replied by krileon on topic CBGallery - thumbs in backend listitems
You're not going to be able to output an image without a PHP function to call that outputs the image and image URLs in CB Gallery are tricky as it does not allow direct access to the folder. The URLs have to path through the gallery image. The click link works because it's just overriding the page and outputting the image headers directly. So this really won't be very doable until the new image XML type is added and supports XML substitutions as it'd just substitute in that click URL as the image src.


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.
The following user(s) said Thank You: bazik666

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

Moderators: beatnantkrileon
Powered by Kunena Forum