×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Mapping of K2 Items

Mapping of K2 Items 9 years 10 months ago #29938

  • Craig Luecke
  • Craig Luecke's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
You know I am a HUGE fan of your Hotspots Pro. You are amazing.

One thing I cannot figure out though. According to the documentation under K2:
Hotspots description
This is the hotspots description. You can use any property of the K2 Item object as placeholder.
[Note] You can use <hr id="system-readmore" /> anywhere in the description to force the text after the hr to go in the fulltext field.

How do I map the K2 Item Description / Content paragraph into the Description of the Hotspot item? What k2 item object placeholder can I use to transfer this data? I am able to do that with the title using {title}. I tried both {description} and {content}

I don't want to have to enter K2 items and then have to open up HotSpots in order to add a description.

Mapping of K2 Items 9 years 10 months ago #29941

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Online
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
In administrator\components\com_k2\tables\k2item.php they have defined this:
var $id = null;
	var $title = null;
	var $alias = null;
	var $catid = null;
	var $published = null;
	var $introtext = null;
	var $fulltext = null;
	var $image_caption = null;
	var $image_credits = null;
	var $video = null;
	var $video_caption = null;
	var $video_credits = null;
	var $gallery = null;
	var $extra_fields = null;
	var $extra_fields_search = null;
	var $created = null;
	var $created_by = null;
	var $created_by_alias = null;
	var $modified = null;
	var $modified_by = null;
	var $publish_up = null;
	var $publish_down = null;
	var $checked_out = null;
	var $checked_out_time = null;
	var $trash = null;
	var $access = null;
	var $ordering = null;
	var $featured = null;
	var $featured_ordering = null;
	var $hits = null;
	var $metadata = null;
	var $metadesc = null;
	var $metakey = null;
	var $params = null;
	var $plugins = null;
	var $language = null;

they should have introtext and fulltext - just as the case with hotspots.

Regards,
Daniel

Mapping of K2 Items 9 years 10 months ago #29942

  • Craig Luecke
  • Craig Luecke's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 30
  • Thank you received: 0
Yep! Before I read your post I tried introtext and full text. I got it working through trial and error.

I am using this - {introtext} <hr id='system-readmore' /> {fulltext}

Thanks. All is working. Now I can enter items from K2 and everything appears on Hotspots instantly. SO AMAZING!
  • Page:
  • 1
Time to create page: 0.100 seconds