- Posts: 22
COMMUNITY FORUM
[SOLVED] Get URL of item image
- Francisco Carvalho
- Topic Author
- Offline
- Junior Member
Less
More
10 years 9 months ago #122549
by Francisco Carvalho
Replied by Francisco Carvalho on topic Re: Get URL of item image
After trying this way, I assume a problem: my need is to get current item image (not only show them in article like custom blogs and put it in a header). So, I really need a way to get access to variable $this->item->image.
Any idea for how could this be done? k2 content module shows ALL items (not only the current).
Any idea for how could this be done? k2 content module shows ALL items (not only the current).
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 9 months ago #122550
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: Get URL of item image
Ok. then you need a K2 plugin (It will still render in the component area but it closer to what you need).
This will get you started getk2.org/extend/extensions/90-example-k2-plugin-for-developers
This will get you started getk2.org/extend/extensions/90-example-k2-plugin-for-developers
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Francisco Carvalho
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 22
10 years 9 months ago #122551
by Francisco Carvalho
Replied by Francisco Carvalho on topic Re: Get URL of item image
Ok, new sweet idea: set a SESSION to get $this variable. Works as '1'+'1'=11 (actually need to figure out how could this sum equals 11) :P
Firstly need to set cookie in item.php template view.
Something like:
Firstly need to set cookie in item.php template view.
Something like:
Log in or Create an account to join the conversation.