dmackerman, You can create a different template for each project varient.
Go to Administer Content Classes in Smart Tree and expand the content class you want to change, there will be a node called templates, if it is set up already you will have more than one template with the name of the project varient it is assigned to after it in light grey text. If you click on the template node itself, the action menu allows you to assign a template to a project varient. The templates, as Sids said, can share placeholders. So instead of the code you have above, you just need to put pateTitle = "Printable Page Title" in the template associated to the printable project varient. This will then be used for the printable project varient and not for the HTML project varient. Hope this is clear, project varients were one of the more complex things to understand that I have come accross so far. Rich On Oct 6, 2:45 pm, dmackerman <[email protected]> wrote: > Is there some sort of conditional that I can place in my template to > specify the title for each variant. Something like: (pseudo code): > > if (projectVariant = "HTML") { > pageTitle = "This is a page title";} elseif (projectVariant = > "Printable") { > > pageTitle = "This is a page title [printable version]" > > } > > Get what I'm saying? > > On Oct 5, 4:04 pm, Sids <[email protected]> wrote: > > > > > Changing Template and Page Title are two different things. > > When you say changing template you are talking about changing code > > where as Page Title (of a page) is only content. > > > Both the HTML and PRINT project variants point to the same page > > whereas diplay the content based on display setting under Main Menu. > > If you can assign these Print and HTML variants a different title or > > not depends on the implementation, if both templates use the same > > placeholder (most probably Headline) to assign title to page then you > > will have to change the template code. > > > After publishing only HTML and PRINT will become two different pages > > as they are assigned different extensions. > > > Hope I have understood your question correct :) though I dont think so > > as question is not very clear to me. > > > Probably reddot manual has better answer available around how to. > > > Cheers, > > Sids- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en -~----------~----~----~----~------~----~------~--~---
