Demo VisualData 1.0 / Dynamic catalogue

Dynamic catalogue: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:




{{#visualdataquery:[[name::Afghanistan]][[states/name::bb~]]
{{#visualdataquery:[[name::Afghanistan]][[states/name::b~]]
|schema=Country  
|schema=Country  
|?name
|?states/name
|?region
|?region
|format=datatable  
|format=datatable  

Revision as of 07:04, 10 September 2024

see the official docs for more information

Each item in the following table includes a query link through which the target article id is passed as query attribute to a target dynamic page. Then the target page builds dynamically its layout.


SELECT t0.page_id AS `page_id`,t1.value AS `v1`,t2.value AS `v2` FROM (SELECT t.value,t.page_id,p.path_no_index,p.path,p.path_parent,p.schema_id FROM `visualdata_text` `t` JOIN `visualdata_props` `p` ON ((p.id=t.prop_id)) WHERE schema_id = '3' AND path_no_index = 'name' ) `t0` LEFT JOIN (SELECT t.value,t.page_id,p.path_no_index,p.path,p.path_parent,p.schema_id FROM `visualdata_text` `t` JOIN `visualdata_props` `p` ON ((p.id=t.prop_id)) WHERE schema_id = '3' AND path_no_index = 'region' ) `t1` ON (((t1.page_id=t0.page_id))) LEFT JOIN (SELECT t.value,t.page_id,p.path_no_index,p.path,p.path_parent,p.schema_id FROM `visualdata_text` `t` JOIN `visualdata_props` `p` ON ((p.id=t.prop_id)) WHERE schema_id = '3' AND path_no_index = 'states/name' ) `t2` ON (((t2.page_id=t0.page_id))) JOIN `page` `page_alias` ON ((page_alias.page_id = t0.page_id)) WHERE t0.schema_id = '3' AND ((t0.value = 'Afghanistan')) AND ((t2.value LIKE 'b%' ESCAPE '`')) LIMIT 100


See also


support & questions: support at topway.it

Download the latest version!