[solved]Tag view +image field

More
12 years 1 month ago - 12 years 1 month ago #30716 by mdma
1.)in tag view i got a php.thumb generated error image instead of item-image
generally!!

2.)also the custom implementation of an image field(field15) like i did in blog template (category_items.php)
doesnt work in tag view...
Code:
<?php // Link to item $item_link = JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); // The image tag with custom thumbnail $img_tag = '<img src="'.$item->fields['field15']->display_small_src.'" title="'.$this->escape($item->title).'" />'; ?> <a class="fc_item_image" href="<?php echo $item_link ?>"><?php echo $img_tag; ?>


i get Error:
Undefined property: stdClass::$fields in ...
Notice: Trying to get property of non-object in



cheers





Joomla 2.5
FC 2.0.0 RC9a (r1547)
Last edit: 12 years 1 month ago by mdma.

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

More
12 years 1 month ago #30721 by ggppdk
1. a PHPthumb error will be displayed in item list of tag view, when image is set to be extracted from description but it is not found ...

... i have added "no image" instead



2. about using a custom field you can add it in
-- (a) tags cloud module configuration if you link to tag view via module or
-- in (b) tags menu item configuration if you link to tag view via menu item

-- if want to create a joomla template override and to override template file of the tags view "default.php"

THEN you need to call this (before trying to use the field):
Code:
FlexicontentFields::getFieldDisplay($item,'field15');


-- 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 1 month ago #30753 by mdma
Replied by mdma on topic [solved]Tag view +image field
Hello!
Thank you alot! i got it working with your very helpfull advice:
I did:

1.)implemented the custom code for image small image +call for field:
(\components\com_flexicontent\views\tags\tmpl\default.php)
Code:
<?php FlexicontentFields::getFieldDisplay($item,'field15'); // Link to item $item_link = JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); // The image tag with custom thumbnail $img_tag = '<img src="'.$item->fields['field15']->display_small_src.'" title="'.$this->escape($item->title).'" />'; ?> <a class="fc_item_image" href="<?php echo $item_link ?>"><?php echo $img_tag; ?>

2.)removed image field code standard

But for generall function of FC i describe the error more detailed to you:
This is the standard behavior of images:

1.)if you make menuitem (tagview) navigate whith this menu: image ok.
2.)tagcloud-module navigate :image ok

3.)category-template default(table)+add tag field+navigate with tag field link.
phpthumb.image error: always present.

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

More
12 years 1 month ago #30754 by ggppdk
Image can come from field description or from image field, if you install latest you will get an "no image" small text, instead of phpThumb error when image is not found.

So about the phpThumb error this settled if you install latest FLEXIcontent revision

what is missing is global configuration setting to define default setting for tags view WHEN not coming from
(a) Tags menu item link
(b) Tags cloud link

so it is missing
(c) ... default tags view settings for tag links from item or category view


-- 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 1 month ago #30762 by mdma
Replied by mdma on topic [solved]Tag view +image field
i checked it out in new FC version.

so it is missing
(c) ... default tags view settings for tag links from item or category view
would be a solution i guess.

also some additional config like
-show description y/n
-link image y/n + S,M,L or override w*h px
-show fields ...

or even better would be the konfig which fields to show visually
like cat./item-templates position-configuration (renderonly++)

at the moment iam very satisfied with customcode is working!!
Thanks again.

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

More
12 years 1 month ago #30768 by ggppdk
The use in tags view is configured via entering their field-names in a parameter (as you said your, not visual), same way is in search view (fields list in item resul list is configured via a parameter containing, field names)

-- the idea (in future) is to allow the category template to be used by tags/favourites views, and also provide a search-results layout too for search view.

-- anyway existing parameters is mostly enough,

but the problem with using the tags view is:
not easy way to configure the fields shown when coming from tag links that appear in item/category views

In your case, currently,
you can configure the default presentation of the tags view,
by using a Joomla template override of the view,
and about output fields in the template override, i have given you code above.


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.400 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