Saturday, November 19, 2011

Getting the TemplateRepeatIndex of an outer repeating region

When you need the TemplateRepeatIndex of an outer repeating region you can use the following code snippet:

@@Push("OuterTemplateRepeatIndex", ${(TemplateRepeatIndex == 0) ? (parseInt(OuterTemplateRepeatIndex) >= 0) ? parseInt(OuterTemplateRepeatIndex) +1 : 0 : parseInt(OuterTemplateRepeatIndex)})@@

Each time the TemplateRepeatIndex == 0 the OuterTemplateRepeatIndex will be increased with 1, unless it is not set, then I default to 0. For any other value of TemplateRepeatIndex I will reset the OuterTemplateRepeatIndex with itself.



Nuno said...

Hey Arjen,

@@Push is not part of the standard DW functions, are you using this from the DGX? (it is there, just undocumented).


Arjen Stobbe said...

Hi Nuno, yes you are right @@Push is not part of the standard DW functions. It can be found on SDL Tridion World:

Anonymous said...

In fact no matter if someone doesn't be aware of after that its up to other users that they will help, so here it occurs.

Here is my blog post; home staging companies

Anonymous said...

This is a topic that's near to my heart... Best wishes! Where are your contact details though?

Visit my page; Sytropin

Anonymous said...

Hello I am so glad I found your blog, I really found you by error, while I was browsing on Bing for something else, Nonetheless I am here now and would just like to
say thanks a lot for a incredible post and a all round exciting blog (I
also love the theme/design), I don’t have time to read through
it all at the minute but I have book-marked it and also included your RSS feeds, so when
I have time I will be back to read a great deal more, Please do keep up the great work.

Also visit my website :: Slim Helper Patch

Anonymous said...

Greetings! I've been reading your weblog for a long time now and finally got the courage to go ahead and give you a shout out from New Caney Tx! Just wanted to mention keep up the good work!

Also visit my weblog - 1285muscle reviews

Anonymous said...

Good day! Do you use Twitter? I'd like to follow you if that would be okay. I'm
absolutely enjoying your blog and look forward to new

Also visit my homepage ... best muscle gainer supplement

Anonymous said...

Hey there just wanted to give you a brief heads up and let you know a
few of the pictures aren't loading correctly. I'm not
sure why but I think its a linking issue. I've tried it in two different browsers and both show the same outcome.

Look into my homepage - Raspberry ketone

Anonymous said...

After looking at a few of the articles on your web page, I really appreciate your
technique of writing a blog. I book marked it to my bookmark website list and will be checking back soon.
Take a look at my website as well and tell me what you think.

My weblog; Weight Loss Diet Patch

Anonymous said...

I really like looking through a post that will make people think.
Also, thanks for permitting me to comment!

My web blog; garcinia cambogia for weight loss

Anonymous said...

Does your website have a contact page? I'm having a tough time locating it but, I'd like to shoot
you an email. I've got some recommendations for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it expand over time.

Look into my webpage: raspberry ketones

Anonymous said...

You are so interesting! I don't think I have read through something like that before. So wonderful to find somebody with a few unique thoughts on this subject. Seriously.. many thanks for starting this up. This website is one thing that is needed on the web, someone with a bit of originality!

Feel free to surf to my blog - Pure GCE

Anonymous said...

What's up Dear, are you truly visiting this web site daily, if so afterward you will definitely obtain nice know-how.

My web site Anatomy X5 Diet

Anonymous said...

I love your blog.. very nice colors & theme.
Did you create this website yourself or did you hire someone
to do it for you? Plz reply as I'm looking to create my own blog and would like to know where u got this from. kudos

My weblog; Best Male Enhancement

Anonymous said...

Thanks , I have recently been looking for information
about this subject for a while and yours is the best I have found out till now.
However, what in regards to the bottom line?
Are you sure in regards to the source?

Also visit my page - Muscle building supplement

Anonymous said...

Hi there, I log on to your new stuff regularly. Your humoristic style is witty,
keep it up!

Review my weblog:

Anonymous said...

Excellent article. I absolutely love this website.
Stick with it!

Check out my web-site Marketing Strategy

Anonymous said...

I'm curious to find out what blog platform you have been utilizing?
I'm having some small security problems with my latest
website and I'd like to find something more risk-free. Do you have any solutions?

My website: blogs

Anonymous said...

Hi mates, how is the whole thing, and what you would like
to say concerning this paragraph, in my view its genuinely remarkable in favor of

my web page - stamped concrete driveway

Anonymous said...

When I initially commented I clicied the "Notify me when new comments are added" checkbox
and now each time a comment is added I gget three emajls with the
same comment. Is there any way you can remove me from that service?
Thank you!

My sute ... online patio furniture stores ()

Tayyab Ali said...

Brilliant Content I like the way you describe your point in the visit our blog for more health related vania