[added r1335] Additional column in admin - items view

More
13 years 9 months ago #25664 by ggppdk
I have added in r1335 (global and per content type) custom fields as columns in the backend items manager list.

Format for defining custom fields (in Global Configuration and in Content Type) is

fieldname1:dispname1, fieldname2:dispname2, fieldname3:dispname3

e.g.

myimg22:display_small, mytext26:display_backend, myfield44, myfield45



-- 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 review. Thanks!

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

More
13 years 9 months ago #25666 by igcorreia
that is awesome. it is easier to the user see the thumbnails when contents have the same name.

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

More
13 years 9 months ago #25669 by ggppdk
Currently we have 3 sizes of display variables (plus 3 URL variables):

Absolute path URLs paths:
$field->display_small_src
$field->display_medium_src
$field->display_large_src

HTML IMG tags:
$field->display_small
$field->display_medium
$field->display_large

I think to either add
$field->display_mini
or
$field->display_backend

what do you think better? adding $field->display_backend requires less changes


-- 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 review. Thanks!

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

More
13 years 9 months ago #25674 by micker
great !!!

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 9 months ago #25678 by igcorreia
Smaller, because of performance, the idea is for the user to get a VISUAL FEEDBACK of the images.

So I think would be:

SMALLER THUMBNAILS with RESIZE, do not use the crop or we will lose part of the images.

From our perspective this would be more powerful:
Absolute path URLs paths:
$field->display_small_src
$field->display_medium_src
$field->display_large_src


This was we can change easily the sizes, distortions and proportions and we wont depend in each field configuration.

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

More
13 years 9 months ago #25685 by igcorreia
Worked, this is FREKKING SEXY ;D

Finally I can Have custom fields in the backed and thumbs to. This PHP THUMB is fk.ng awesome.

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

More
13 years 9 months ago #25686 by ggppdk
NOTE:
You can have custom fields per CONTENT TYPE,
e.g. if you have 3 content types:
-- article
-- car
-- bike

you can set in the content type configuration of each of them different custom fields for backend items manager list

Then just filter the item list by content type ...

I was thinking that maybe having clickable TABS:
"article", "car", "bike"
that target the items manager list filtering it by content type maybe useful ...


-- 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 review. Thanks!

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

More
13 years 9 months ago #25698 by igcorreia
Ok..


I have add this custom code to add a pop-up module to each image. This way the user can see the original image. Look amazing :D
Code:
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.yoursite.com/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/components/com_flexicontent/uploads/".$imagePathThumb."&aoe=1&q=95&zc=1\" class=\"modal\">Image Zoom";

The result:

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

More
13 years 9 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 review. Thanks!

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

More
13 years 9 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.

Moderators: vistamediajoomlacornerggppdk
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
Save