Looking for Customer Service & Support

IMPORTANT: This is a Community Forum. Answers are given by the community. If you are a Customer, please, Open New Issue to get access to the support service.

Customer Support is only provided through our ticketing system https://support.extly.com/. If you do not have a paid membership, please create a new topic in the community forum.

Using Extra Fields with XT-K2 Link Item

More
1 year 8 months ago #9981 by Joe Campbell
Joe Campbell created the topic: Using Extra Fields with XT-K2 Link Item
I have created an override, but I need to render the category name, category link, and an extra field for each respective XT-K2 Link Item. How can I accomplish this?

Below is the code that I tried.

The Issue: Each XT-K2 Link selected related item is displaying the category name, category link, and an extra field are from the current item being viewed and not of the respective XT-K2 Link selected related item.
<?php foreach ($XTlinkedItems as $XTlinkedItem): ?>

<div><?php echo $item->extraFields->image_list->value; ?></div>
<div><a href="/<?php echo $XTlinkedItem->link; ?>"> <?php echo $XTlinkedItem->title; ?></a></div>
<div><a href="/<?php echo $item->category->link ?>"><?php echo $item->category->name; ?></a></div>

<?php endforeach; ?>

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

More
1 year 8 months ago #9982 by Support Team
Support Team replied the topic: Using Extra Fields with XT-K2 Link Item
Hi, Thanks for reaching out!

We have recently documented a similar case. Please, check this chapter about extending the plugin output:

How to extend Item View and Category View templates for K2 Linked Articles
www.extly.com/docs/others/xt-k2_link_ite...mplates-for-k2-linke

Best Regards,

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

More
1 year 8 months ago #9983 by Joe Campbell
Joe Campbell replied the topic: Using Extra Fields with XT-K2 Link Item
Thank you, but I require the actual code. The example provided is for a tag looped list.

I require a single extra field and the category name and link code for each selected XT-K2 Link as provided in my post:
www.extly.com/forum/16-problem-and-bug-r...item/reply.html#9981

I am not a developer - I would GREATLY appreciate a cut & paste solution :)

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

More
1 year 8 months ago #9984 by Support Team
Support Team replied the topic: Using Extra Fields with XT-K2 Link Item
Hi Joe,

Support service scope is for technical product support. We can provide documentation and guidance in similar topics, but the final customization must be implemented, tested and adjusted to your site to fill your project requirements. We cannot customize your template and develop source code for your site.

Hope this helps! Let me know if there is anything else we can do.

Best regards,

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

More
1 year 8 months ago #9985 by Joe Campbell
Joe Campbell replied the topic: Using Extra Fields with XT-K2 Link Item
Can you please update your documentation to show how to display an extra field and category (name & link).

I think both are worthy to be included in your documentation.

Why?

- In most cases, related items display the category below each item.
- Secondly, extra fields is typically the main reason why people use K2.

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

Time to create page: 0.081 seconds
Join the Club!

Access and support services to all Extly's extensions for 1-Year. The Extly Club is your source for all of our extensions.

Join Now