Forum


TF Import

LoK Land Project
4%
Posts: 4
TF Import
August 23, 2022

Hi, I just bought TF Import, but I can't figure out if its J4 compatible or not?

Joomla Fry
100%
Posts: 947
August 23, 2022

Hello

Yes, the component will work on Joomla 4.x. You will also need to install TF Library for the component to work.

LoK Land Project
4%
Posts: 4
August 23, 2022

Great, thank you so much for confirming 

LoK Land Project
4%
Posts: 4
August 23, 2022

I am trying to grab these "attributes" from this type of url:
https://lok-nft.leagueofkingdoms.com/api/land/146140

Outputs:
{"name":"LOK Land #146140 (x:480,y:1440)","description":"League of Kingdoms","external_url":"https://land.leagueofkingdoms.com/map/146140","image":"https://lok-nft.leagueofkingdoms.com/api/card/land/146140?4","image_url":"https://lok-nft.leagueofkingdoms.com/api/card/land/146140?4","attributes":[{"trait_type":"ID","value":"146140"},{"trait_type":"Location","value":"x:480 y:1440"},{"trait_type":"Owner"},{"trait_type":"Description"},{"trait_type":"Development Level","value":4},{"trait_type":"Development Point","value":607494},{"trait_type":"Unclaimed DAI","display_type":"number","value":"0.0000"},{"trait_type":"Unclaimed Resource","display_type":"number","value":24145099},{"trait_type":"Total Claimed DAI","display_type":"number","value":"21.0557"},{"trait_type":"Total Claimed Resource","display_type":"number","value":39130},{"trait_type":"Profile Image","value":"https://lok-nft.leagueofkingdoms.com/api/card/land/146140"},{"trait_type":"Land Color","value":"#ab84"}]}

Which Type or grabber should I be using to add those attributes to custom article fields?

Joomla Fry
100%
Posts: 947
August 23, 2022

This looks like JSON. You can try JSON that will convert this to Array.

Then, you need to create Array Value processors to get individual values.

LoK Land Project
4%
Posts: 4
August 23, 2022

Ok thanks... but the grabber asks for a html tag to work and my output doesn't have any of the available tags. Sorry if I'm being stupid. 

Joomla Fry
100%
Posts: 947
August 23, 2022

I see. In Joomla 4, few changes were made to include API. So, no need to create Grabber.

Create a new Single of type API. Now under API tab,

  • In the base URL, enter: https://lok-nft.leagueofkingdoms.com/api/land
  • Enable the setting JSON to Array.

In the link or link to save, just enter the last part of URL like 146141. Hit Preview to see if something is coming.

Login to Reply