Keyword

Insert item into another item

  • Chriss De Grece
  • Chriss De Grece's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago - 8 years 10 months ago #144331 by Chriss De Grece
Insert item into another item was created by Chriss De Grece
Is there any way I can insert into an item the text content of other items?

Maybe Something like
{k2ItemID 123}
Last edit: 8 years 10 months ago by Chriss De Grece.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #144339 by Krikor Boghossian
Replied by Krikor Boghossian on topic Insert item into another item
By default this is not possible. You can look for an extension at the JED or getk2.org/extend/extensions for a plugin that offers this functionality.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #144340 by Krikor Boghossian
Replied by Krikor Boghossian on topic Insert item into another item
By default this is not possible. You can look for an extension at the JED or getk2.org/extend/extensions for a plugin that offers this functionality.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Chriss De Grece
  • Chriss De Grece's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #144342 by Chriss De Grece
Replied by Chriss De Grece on topic Insert item into another item
Thanks , I already did before posting but didn't find a plugin like that.

Is there any developers documentation anywhere? I downloaded the sample plugin from the extensions and it seems pretty easy to simply replace the curly braces (ID) with the fulltext of another item BUT I cannot find how to load an item the K2 way. Maybe will simply use Joomla framework queries to do it.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #144345 by Krikor Boghossian
Replied by Krikor Boghossian on topic Insert item into another item
You are on the right track. You can use Joomla!'s API to load data from the database.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
8 years 10 months ago #144346 by william white
Replied by william white on topic Insert item into another item
You might try the pro version of Articles Anywhere by NoNumber.nl which has support for k2

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

  • Chriss De Grece
  • Chriss De Grece's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #144347 by Chriss De Grece
Replied by Chriss De Grece on topic Insert item into another item

william white wrote: You might try the pro version of Articles Anywhere by NoNumber.nl which has support for k2


Thanks but since I already have the example k2 plugin, I will try my luck with a simple Joomla query
select fulltext from #__k2_items where id = 123

I am pretty optimistic it will work , we'll see.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #144349 by Krikor Boghossian
Replied by Krikor Boghossian on topic Insert item into another item
I think a taylor made plugin would probably be the best solution for you Chriss.

You can post it at github and let me know if you need any assistance.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Chriss De Grece
  • Chriss De Grece's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #144350 by Chriss De Grece
Replied by Chriss De Grece on topic Insert item into another item

Krikor wrote: I think a taylor made plugin would probably be the best solution for you Chriss.

You can post it at github and let me know if you need any assistance.


Thanks a lot, will do that and let you know.

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

  • Chriss De Grece
  • Chriss De Grece's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #144413 by Chriss De Grece
Replied by Chriss De Grece on topic Insert item into another item

Krikor wrote: I think a taylor made plugin would probably be the best solution for you Chriss.

You can post it at github and let me know if you need any assistance.


@Krikor

OK, I think it's done. At least it's working. It would be nice if you took a look just in case I have done something extremely stupid.

github.com/ChrissDeGrece/k2InsertItems

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


Powered by Kunena Forum