Linking carousel images

More
10 years 9 months ago #49653 by ggppdk
Replied by ggppdk on topic Linking carousel images
Hello

do not forget the size of FLEXIcontent, it is not a single plugin that we will be asked to support, or just the component

AND THIS IS NOT SUPPORT, support is bug support and maybe partially configuration (and this is free !) instead this is asking for custom work, MAYBE -SMALL- or maybe not ,
-- but imagine everyone demaning this, it will be simply impossible

and furthermore about size
... it is also the modules


can you imagine supporting custom coding everywhere ? imagine the universal module with a lot less options, we already do more than we can

e.g. in your case you want to make a custom coding in the module

-- the software is built for general usage
-- is free and is GPL (please read license)
-- please use what is available, anything not available "is not supported"


what you ask about linking is general web-programming and Joomla programming plus it is not implemented,

what can we do ? for such requests ?

did we state anywhere about free custom templates ?

or custom work to much specific needs ?

anyway i will find time out of the time that i do not have to answer your question during Sunday please post reminder on Saturday

but i still don't think you have fully understand me in my previous post,

please appreciate what is given for free instead of compaining for what "extra" was not given that will fit your exact needs, we never claimed to provide free custom coding

about commercial plugins and priority support it is coming, but even then custom work is different thing, and such support can be expensive or no little or little, our time is not less valueable than yours.

and i repeat we never claimed to custom work


Regards


-- 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
10 years 9 months ago #49654 by ggppdk
Replied by ggppdk on topic Linking carousel images
Hello

and in you first post

you did not say "hello", ok i am not demanding you to say hello, but please think of it !!,

please think of how it sounds, when you post a question to a free forum, without a greeting

yoau did not greet us or thanks us for our works, or do anything to motivate us to spend our free time for answering you


and if for any reason, we fail to find time or motivation to answer a custom coding question on a free forum, there is no need to be angry with us, we never claimed to do this, we just try, please be polite, it is difficult for us to answer many different people here, e.g. see my answer count

and please remember to post reminder on Saturday, i will answer you on Saturday/Sunday

Regards


-- 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
10 years 9 months ago #49655 by chenz2
Replied by chenz2 on topic Linking carousel images
Hello,
I think there is a language barrier because I don't understand many of the things you said unfortunately :cry: I think there is a big cultural misunderstanding too. If someone does not write hello, it is not a sign of disrespect, at least here in the united states. Now, if someone helped me with my question, and I didn't say "thank you", that would be a sign of disrespect. But this thread never got to that point.

I think there is a big misunderstanding in what I asked. I am not asking for custom coding. I just want to know how to insert custom fields into modules. I just need an example. There is no help on your site that shows how to do this correctly. That is all I need guidance on and would appreciate a simple example that would take just 1 minute of your time, if you will so kindly help.

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

More
10 years 9 months ago #49656 by ggppdk
Replied by ggppdk on topic Linking carousel images


-- 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
10 years 9 months ago #49657 by chenz2
Replied by chenz2 on topic Linking carousel images
Thanks for the reply. Yes I have been through those. They do not do anything when I follow them. When I put
Code:
$html = FlexicontentFields::getFieldDisplay($item, 'slides'); echo $html;

in the mycarousel file, I just get this:

getFieldDisplay(): empty item data given

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

More
10 years 8 months ago #49658 by ggppdk
Replied by ggppdk on topic Linking carousel images
Hello

-- you need to pass to the function the already retrieved item data


-- in your case i think you passed an non-existent variable, probably because you are outside the loop that display the items


there are 2 loops inside the templates
tmpl/news.php
tmpl/carousel.php

since you duplicated carousel.php
make sure that you are either inside loop outputing "standard" items or "featured" items:
Code:
<?php foreach ($ordering as $ord) : ... <?php if (isset($list[$ord]['featured'])) : ?> ... <?php foreach ($list[$ord]['featured'] as $item) : ?> ... // *************** HERE ... <?php endforeach; ?> ... <?php endif; ?> ... <?php if (isset($list[$ord]['standard'])) : ?> ... <?php foreach ($list[$ord]['standard'] as $item) : ?> ... // *************** HERE ... <?php endforeach; ?> ... <?php endif; ?> ... <?php endforeach; ?>



Also you can do it -just- outside the loop for all the items at once:
Code:
<?php FlexicontentFields::getFieldDisplay($list[$ord]['featured'], 'fieldname'); ?> <?php foreach ($list[$ord]['featured'] as $item) : ?> ... <?php FlexicontentFields::getFieldDisplay($list[$ord]['standard'], 'fieldname'); ?> <?php foreach ($list[$ord]['standard'] as $item) : ?> ...




-- after doing the above you can do:
Code:
print_r( $item->fields['slides']->thumb_src['small'] ); print_r( $item->fields['slides']->thumb_src['medium'] ); print_r( $item->fields['slides']->thumb_src['large'] );





But if you field was configured in module parameters to be used as image for the carousel, then it is probably already rendered and you do not need to call getFieldDisplay()




And to get the field values of different field for linking, you do not need to call getFieldDisplay:
instead use:
$item->fieldvalues

(i think that is your original question)

[url=http://www.flexicontent.org/documentation/faq/70-developer-api-field-plugins/312-using-the-raw-value-of-a-field-inside-a-template-file-or-inside-a-new-custom-field-type.html
]Using the raw value of a field inside a template file or inside a new custom field type[/url]


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