This page is an example wiki page for the
Colorbox Ajax Load Profile.
Example using CBAjaxLoad Plugin Alias
The profile creates a CBAjaxLoad Plugin Alias to simplify the required jQuery code insertion on a wiki page. This was tested and works successfully in Tiki 5.x but
not in trunk:
{cbajaxload}
Code:
{cbajaxload}{DIV(id="ajaxload")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}
Example using JQ Plugin
This is just the same code but instead of using CBAjaxLoad plugin alias it uses jQuery code directly put in the JQ plugin. It works in both, Tiki 5.x and trunk:
Plugin disabled
Plugin jq cannot be executed.
Code:
{JQ()}$jq("#ajaxload2 a").colorbox({href: function(){return $jq(this).attr("href")+" .wikitext";}});{JQ}{DIV(id="ajaxload2")}[tiki-index_raw.php?page=HomePage|Content of a wiki page dynamically loaded to Colorbox]{DIV}