[mythtv-theming] template tag syntax
Joey Morris
rjmorris at nc.rr.com
Thu Sep 1 22:47:39 UTC 2011
Robert McNamara <robert.mcnamara at gmail.com> wrote on Wed, Aug 31, 2011 at 08:54:24PM -0700:
> On Wed, Aug 31, 2011 at 8:35 PM, Joey Morris <rjmorris at nc.rr.com> wrote:
> > <template>%TITLE%%: |SUBTITLE|%</template>
>
> Your mistake is the extra unnecessary pipe, the last one.
>
> | means "everything between this pipe and the percentage sign, but
> only if this thing exists." It can work in either direction. So, to
> do what you want (where the colon and space only appears if the
> subtitle exists):
>
> %TITLE%%: |SUBTITLE%
Thanks! That works perfectly.
More information about the mythtv-theming
mailing list