Return to Snippet

Revision: 33079
at October 6, 2010 01:18 by gerhardsletten


Initial Code
// Enable ajax in layout.ini.append.php

<?php /* #?ini charset="utf-8"?
[ajax]
PageLayout=ajax_pagelayout.tpl
UseAccessPass=false
*/ ?>

// ../templates/ajax_pagelayout.tpl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{$site.http_equiv.Content-language|wash}" xml:lang="{$site.http_equiv.Content-language|wash}">
	<head>
	</head>
	<body>
	{$module_result.content}
	</body>
</html>

// Link to the ajaxview in a template:

<a href={concat('/layout/set/ajax/contact/node/',$node.node_id)|ezurl} class="lightbox">Ajaxlink</a>

Initial URL


Initial Description


Initial Title
Ajax view in Ez publish

Initial Tags


Initial Language
eZ Publish