Ajax view in Ez publish


/ Published in: eZ Publish
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // Enable ajax in layout.ini.append.php
  2.  
  3. <?php /* #?ini charset="utf-8"?
  4. [ajax]
  5. PageLayout=ajax_pagelayout.tpl
  6. UseAccessPass=false
  7. */ ?>
  8.  
  9. // ../templates/ajax_pagelayout.tpl
  10.  
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  12. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  13. <html xmlns="http://www.w3.org/1999/xhtml" lang="{$site.http_equiv.Content-language|wash}" xml:lang="{$site.http_equiv.Content-language|wash}">
  14. <head>
  15. </head>
  16. <body>
  17. {$module_result.content}
  18. </body>
  19. </html>
  20.  
  21. // Link to the ajaxview in a template:
  22.  
  23. <a href={concat('/layout/set/ajax/contact/node/',$node.node_id)|ezurl} class="lightbox">Ajaxlink</a>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.