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.


(...)

77 comments:

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).

N

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:

https://www.sdltridionworld.com/community/extension_overview/dreamweaver_get_extension.aspx

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
updates.

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: http://garciniacambogiaformulas.com

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
me.

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 content.do visit our blog for more health related content.health vania

Anonymous said...

I am so grateful for your article. Much thanks.
elifewire

Anonymous said...

I am so grateful for your article. Much thanks.
elifewire

Rashid awan said...

I am grateful for your article
Pc SoftBox

Instagram Downloader said...

I am so grateful for your article. Much thanks.
Instagram Downloader Follower

Unknown said...

I am so grateful for your article. Much thanks.
Best Wirless Mouse

Unknown said...

I am so grateful for your article. Much thanks.
IMessag

Andrew Kohn said...

I am grateful for your article. Thanks
https://medium.com/@keen2learng/how-to-grow-instagram-followers-for-business-e066cbee19e0

Unknown said...

Really helpful article. Great share
BUY INSTA FOLLOWERS

rexwrightfast said...

Really helpful article. Great share
VoVo Gifts

Emma zack said...

Thank you for your helpful post. nice article.
packagingcompany

Unknown said...

Really helpful article. Great share
BWM - WIRELESS MOUSE

Emma zack said...

Thank you for your helpful post. nice article.
packagingcompany

Zubair Ahmad said...

Thats the Good Article for Information.
<a href="https://www.yellowbot.com/user/199bttb>Guard Rails</a>

Zubair Ahmad said...

Thats the Good Article for Information.
Guard Rails

Andrew Kohn said...

Really helpful article. Great share
APPLE MAGIC MOUSE REVIEW

Unknown said...

Really helpful article. Great share
Vixari Tripod

Emma zack said...

Thanks for this list. I have check all of these websites all are in working condition. and I can get many of the backlinks for my website.thanks packagingcompany

Abella james said...

I am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up. And must visit our site.Packaging Company

Unknown said...

Really helpful article. Great share
iMessage Guide

Homedecor said...

I am so grateful for your article. Much thanks.
how-to-download-instagram-video-on-pc


Rashid awan said...

I am so grateful for your article. Much thanks.
Pcsoftbox

Zubair Ahmad said...

Thanks for this list. I have check all of these websites all are in working condition. and I can get many of the backlinks for my website.thanks
Guardrail1Guardrail2Guardrail1Guardrail2 Guardrail2 window7window7downloader4isnta1downloader4isnta2downloader4isnta3downloader4isnta4downloader4isnta5

Unknown said...

I am so grateful for your article. Much thanks.
Super Mario 63

Unknown said...

Very nice information! I really appreciate your effort. Very well! Thanks for sharing. Read more

Emma zack said...

Nice working and info about nature we can't know but I think now we get something special. I love where your mind is going with the possibilities of bookmarking from the learning perspective.It also got me thinking about what it may do for us as the head of the class
Packaging Company

STARS HIDE said...

Really helpful article. Great share
Cake display fridge

kuch bhi said...

Really helpful article. Great share
Brokers Forex

Anonymous said...

I am so grateful for your article. Much thanks.
Twitter Followers

Paving contractor said...

Thanks for this comlete list. I have check all of these websites, all are in working
#military-diet-plan

#military-diet-plan

#military-diet-plan

#military-diet-plan

#military-diet-plan

Homedecor said...

getting real twitter followers

get real twitter followers

buy Twitter followers

real followers for twitter

real twitter followers

twitter real followers

getting real twitter followers

get real twitter followers

buy Twitter followers

Homedecor said...

getting real twitter followers

get real twitter followers

buy Twitter followers

real followers for twitter

real twitter followers

twitter real followers

getting real twitter followers

get real twitter followers

buy Twitter followers

STARS HIDE said...

Really helpful article. Great share

Live Journal

Visual Ly

Challenges

Grasz Online

Font Library

Steepster

3D Artist

Photoshop Creative

Udemy

Colour Lovers

Latest News said...

I am so grateful for your article. Much thanks.
Portable Crowd Control Barriers

Latest News said...

I am so grateful for your article. Much thanks.
stairway

Paving contractor said...

General safety tips on the road for every one. Technologies used for road construction. Tips for choosing best asphalt paving company.

Asphalt Paving Company :- why should we have to choose asphalt pavement.

Asphalt Paving Contractor ! :-THE PROCEDURE OF LAYING ASPHAT:

Driveway Paving Company ! :- TYPES OF ASPHALT

Driveway Paving Contractor ! :- HOW TO MAKE A GRAVEL ROAD

Asphalt Paving VA ! :- TYPES OF PAVEMENT

Asphalt Paving VA ! :- ASPHALT CONCRETE (AC)

Driveway Paving Company ! :- TYPES AND BRANDS OF ASPHALT PAVEMENT

Driveway Paving Contractor ! :- TRY ASPHALT PAVEMENT WITH DIY MAKING REPAIRS AT HOME

Asphalt Paving VA ! :- PARKING LOTS ASPHALT PAVEMENT

shaheryar ahmed said...

About Best Wireless Mouses Review:
Best Wireless Mouses is an incredible platform that claims to provide extensive reviews of the best wireless mouses. You can read reviews, check prices, and get to know about the solutions of your queries regarding wireless mouses.

Best wireless mouses
Wireless Mouses
Incredible Mouses

shaheryar ahmed said...

About Best Wireless Mouses Review:
Best Wireless Mouses is an incredible platform that claims to provide extensive reviews of the best wireless mouses. You can read reviews, check prices, and get to know about the solutions of your queries regarding wireless mouses.

Best wireless mouses
Wireless Mouses
Incredible Mouses
Best of our product

Zubair Ahmad said...

"Thanks for this complete list. I have check all of these websites, all are in working
and I get many of the backlinks for my website. Thanks...

SocialSteeze Reviews

Social Steeze Review

SocialSteeze Reviews

Social Steeze Reviews

Social Steeze Reviews

Zubair Ahmad said...

"Thanks for this complete list. I have check all of these websites, all are in working
and I get many of the backlinks for my website. Thanks...

SocialSteeze Reviews buzzon

SocialSteeze Reviews storeboard

SocialSteeze Reviews codepen

SocialSteeze Review codecademy

Unknown said...

Really helpful article. Great share

moby picture

weheartit

forms powwows

my foilo

github

gifyu

3gfycat

instructable

trello

tribber

Unknown said...

Really helpful article. Great share

MX Sponsor

Picture Push

Mighty Cause

Midomi

Failheap

Khaleej Times

Designpiration

Monferraglia

Xobor

Issuu

Unknown said...



Really helpful article. Great share

codeademy

creative market

yellowbot

genius

trover

mindmakers

1880bets

able2knows

codepen

catchafire

Unknown said...



Really helpful article. Great share

suncoastflatlanders

forum statcounter

forums spry

guildwork

lavida forum

Unknown said...

Really helpful article. Great share

jamesorr.postbit

keiththompson

erichendricks

michaelvaughn

wallinside











awais chaudhry said...

Really helpful article. Great share

disqus

openstreetmap

.metal

magcloud

brooklynne

redbubble

viki

worldcosplay

list

deviantart

awais chaudhry said...

Really helpful article. Great share

spreaker

mobypicture

weheartit

github

toyota

forums.powwows

gust

gifyu

gfycat

trello


awais chaudhry said...

Really helpful article. Great share

fimfiction

.planetanalog

freelancersunion

mmaplayground

zeef

allnumis

kolab

snupps

allnumis

musescore

awais chaudhry said...

Really helpful article. Great share

disqus

isaacstone

metal

magcloud

openstreetmap

viki

worldcosplay

forum

ttlink.

soundcloud

get said...

Really helpful article. Great share

subsetgames

desktopnexus

shortest.sctiveboard

galvano.xobor

forum.elster

myfolio

brooklynne

forum.gamevil

coalitionguild

trackandfieldnews

Mohit said...

Thanks for this

evermate

webnote

wikidot

workmom

sosblog

smore

sitew

kiwiboxx

sportblog

relesewire

huntproduct

sandwise

storeboard

ideafit

adobe

udemy

soundcloud

Paving contractor said...

Good information thanks for sharing. Here is a list of links you can get knowledge about all type of help about road construction. Like General safety tips on the road for everyone. Technologies used for road construction. Tips for choosing the best asphalt paving company. What is asphalt paving? Types of paving? And many more…….

Asphalt Paving

Can I draw a line to the parking lot

What is an asphalt mixture

Click For Free Estimate of you paving work>>>>


Asphalt Paving Company VA

Asphalt Paving Contractor!

Tar and chip Paving Company!

get said...

Really helpful article. Great share

becomegorgeous

get said...

Really helpful article. Great share

shutterfly

Mohit said...

http://www.articleted.com/article/126538/21238/Islam--the-most-attractant-of-the-world
https://makandracards.com/raja/77023-interesting-facts-about-usa
https://dev.to/mostfox2/amazing-facts-about-america-249l
https://hypothes.is/users/instagram98
https://semrushaccess.contently.com/
https://dailygram.com/index.php/blog/551263/31-intresting-facts-about-usa/
http://www.loopdesk.com/article/33608/interesting-facts-from-america-which-you-hardly-know
https://www.bbb.org/us/ma/andover/profile/chauffeur/amrani-chauffeurs-corp-0021-143882
https://www.asus.com/zentalk/in/forum.php?mod=viewthread&tid=132910&page=2&extra=#pid1140071
https://www.nairaland.com/1383359/learn-web-design-live-nairaland/93

get said...

Really helpful article. Great share

womensbeautyoffers

jimmycharlis said...

Really helpful article. Great share

mightycause