Search

Hey everyone,

I was wondering: One of my templates is calling a Utility-template (wich is basically just wrapping a couple of divs around the content).

Shall I pass the content using a parameter or shall I create a template (next to the call) wich is - in return - called by the wrapper-template?

I can’t visualise your example without seeing the code, but my advice would be to choose the most future-proofed method. If these div elements are to be added in many locations then it makes sense for this to be a re-usable template.

Are you wondering between the choice of apply-templates (a match template) and call-template (a named template)?

Haha! After a few months I have no idea what I was talking about either :-D

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details