[added r1335] Additional column in admin - items view

More
12 years 6 months ago #25699 by ggppdk
mmm, the image field already has popup code, but when displayed in backend ($field->display) it does not add any popup, maybe we could add similar on hover for backend display of image field

You did this
-- by changing the code of the image plugin?
-- or by altering the tmpl/default.php file and using the URL $field->display_small_src ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 6 months ago #25713 by igcorreia
1 - Open this file:
admin./compnts/com_fliexicontent/views/items/templates/default.php

2 - at the line 584 that is where the title is printed inside the tag <a> I have added this code, thing to have in consideration:

1 - CHANGE THE FILED ID ind the query to the IMAGE FIELD
2 - CHANGE YOU WEBSITE LINK IN THE IMAGES PATHS
3 - the IF will only validate if there is something in that field
Code:
<div style="float:right;margin: 0 0 0 10px;"> <?php $querymine = ' SELECT value' .' FROM #__flexicontent_fields_item_relations' .' WHERE item_id = '.(int)$row->id .' AND valueorder = 1' .' AND field_id = 16'; $db->setQuery($querymine); $fieldvalmine = $db->loadResult(); $v_arr = unserialize($fieldvalmine); $imagePathThumb = $v_arr[originalname]; //echo "<pre>"; //print_r($v_arr); //echo "</pre>"; if( $imagePathThumb != ""){ echo "<img src=\"http://www.yoursitehere.com/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/components/com_flexicontent/uploads/".$imagePathThumb."&w=100&h=80&aoe=1&q=25&zc=1\">"; echo "<a style=\" background: none repeat scroll 0 0 rgba(0, 0, 0, 0.72); color: #FFFFFF;margin: 54px 0 0 -99px;padding: 6px;position: absolute;text-align: center;width: 87px;\" rel=\"{handler: 'iframe', size: {x: 850, y: 550}}\" href=\"http://www.yoursitehere.com/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/components/com_flexicontent/uploads/".$imagePathThumb."&aoe=1&q=95&zc=1\" class=\"modal\"><span title=\"Configuration\" class=\"icon-32-config\"></span>Image Zoom"; } ?> </div>


Did I make any sense here? I have send you in PM the actual code.

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

More
12 years 5 months ago #26250 by horsey
This is awesome! :o

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

More
12 years 5 months ago #26258 by ggppdk
Actually image popup feature of the image field is disabled, maybe i could just enable (not everywhere just in items manager) to avoid need to alter the template file


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
12 years 5 months ago #26259 by igcorreia
Yes I think you could, since we only need in the item list view. I can't find a reason not to do it.

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

More
12 years 5 months ago #26260 by igcorreia

horsey wrote: This is awesome! :o


ahahahaha :D nice that you like it.

It is way easier to find the items right?

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.789 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline