Developer forum

Forum » Development » Accessing site Items from template

Accessing site Items from template

Dmitrij Jazel
Reply

Hello Guys,

I will try to make it as clear as possible, if it is still not clear please let me know.

We have following structure:

  • -Home (use Forside.html)
  • -ProdCatalog (use eCom.html)
  • -SpecialPages (use Subpage.html)
  •    |-specPage1 (use Subpage.html)
  •    |-specPage2 (use Subpage.html)
  •    |-specPage3 (use Subpage.html)
  • -Contact (use Subpage.html)

I wanted to know if we could use some Code on Forside.html that could access data stored in specPage1 specPage2 specPage3?

To be exact, SpecPage1 SpecPage2 and SpecPage3 have ItemType paragraphs.

This could sound like we could use plain <!--@Global:Paragraph.Content()--> request, but the problem we don't know how many specPages there can be, and how many Paragraphs there are... not speaking of their IDs. What we know is that All those specPages are children of "SpecialPages" page, and we know the Item System name.

So we want that code on Frontpage to access those Item paragraphs on special pages...

 

I hope this is clear enough. If not please, let me know :-)

 

Regards,

Dmitrij

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Dmitrij, use item Publisher. It is made specifically for this...

 

http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Item-publisher.aspx

Votes for this answer: 1
 
Dmitrij Jazel
Reply

Hej Nicolai,

Hmm sounds good, I will give it a shot. :)

 

Regards,

Dmitrij

 

You must be logged in to post in the forum