Cheers for that Kim,
It made me relaise that I could do what I wanted using langauge
variants instead of project variants, bit of a hack, but the result
is:
<if>
<query valuea="Context:CurrentIndex.Headline" operator="=="
valueb="<%hdl_Headline%>">
<if>
<query valuea="Context:CurrentLanguageVariant.Key"
operator="==" valueb="Str:ENU">
<htmltext><% testExt.SendBlogItems(blogs, "pre-
live"); %></htmltext>
</query>
<query type="else">
<htmltext><% testExt.SendBlogItems(blogs,
"staging"); %></htmltext>
</query>
</if>
</query>
</if>
backed by a user-defined job that publishes that language variant, we
are hoping can be called by the RustyLogic API, this just leaves the
problem of getting the draft page contents, as at the moment the draft
project varient seems to be publishing out the released version of the
draft pages, but that could be fixed by the API as well, thanks for
your help.
Rich.
On Jul 8, 9:11 am, kimdezen <[email protected]> wrote:
> Check out the post by Paul on the reddotcmsblog.com
> site..http://www.reddotcmsblog.com/using-render-tags-to-translate-a-site-ea...
>
> BTW, you should always store content that requires translation between
> different language variants in placeholders rather than straight text
> within a template.
>
> Cheers,
> Kim
>
> On Jul 8, 12:10 am, reddotrich <[email protected]> wrote:
>
>
>
> > Hi All,
>
> > Does anyone know if there is a render tag that can check the current
> > project variant, like the one for the language variant: <query
> > valuea="Context:CurrentLanguageVariant.Key"
> > operator="==" valueb="Str:DEU">
> > so that we can publish different text, if a different project variant
> > is published, without needing separate templates for each, as this
> > would double my number of templates for the sake of an if statement.
> > Any help or comments appreciated.
>
> > Rich.- 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
-~----------~----~----~----~------~----~------~--~---