Ok so on the site I am building it has several different "news" sections. For reasons I don't want to get into I need to have these "news" articles in different locations (see example below)
All of the "news articles" are a doctype called "Article" how would I loop through the whole site and pull all of the "Article" doctypes? I searched around and tried a few different options but just can't seem to figure it out.
Looping whole site for a certain doctype
Ok so on the site I am building it has several different "news" sections. For reasons I don't want to get into I need to have these "news" articles in different locations (see example below)
home
- page
- - news landing
- - - news article 1
- - - news article 2
- page
- page
- - news landing
- - - news article 3
- page
- - news landing
- - - news article 4
- - - news article 5
All of the "news articles" are a doctype called "Article" how would I loop through the whole site and pull all of the "Article" doctypes? I searched around and tried a few different options but just can't seem to figure it out.
Any ideas?
Thank you,
Tony
Hi Tony
This snippet should do the trick:
/Kim A
Hey Kim,
Thanks for the assitance once again. Works perfect.
Tony
No problem Tony.
Of course you could use a for-each instead of the apply-templates, but that's up to you. I'd go for the apply-templates version though.
/Kim A
is working on a reply...