Thread:Project:Support desk/extract value of template field from a page containing template instance

Hi

I am writing my own extension. I have created a new sql table. The information I want to store in the table is recorded in the form of various templates scattered throughout the site. I can find the pages with instances of the desired templates through the 'template_links' table. I now need to extract the value of the desired property of the template from each page. If a page P contains a template T, and x is a property of T, is x also a property of P? Can I then obtain the value of x in P in the same way SMWPropertyValue does?

details: MW version: 1.17.0 SMW version: 1.7.0.2 php 5 mysql 5.0