artists_by_country
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
artists_by_country [2025/07/31 15:24] – admin | artists_by_country [2025/08/05 03:21] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~META: description = Explore the growing encyclopedia of DJs, producers, and music crews on Wiki-DJ. Discover new artists and contribute to our community-driven database of electronic music culture.~~ | ||
~~NOCACHE~~ | ~~NOCACHE~~ | ||
- | <php> | ||
- | global $ID; | ||
- | |||
- | // Load the struct helper plugin | ||
- | $struct = plugin_load(' | ||
- | if(!$struct) { | ||
- | echo ' | ||
- | return; | ||
- | } | ||
- | |||
- | // Find all pages with the ' | ||
- | $pages = $struct-> | ||
- | |||
- | // Start our HTML table | ||
- | echo '< | ||
- | echo '< | ||
- | echo '< | ||
- | |||
- | // Loop through each page found | ||
- | foreach($pages as $page) { | ||
- | // Get the struct data for the page | ||
- | $data = $struct-> | ||
- | |||
- | // Get the specific values we want, with a fallback | ||
- | $country = $data[' | ||
- | $status = $data[' | ||
- | | ||
- | // Get the page's title (the artist' | ||
- | $pageTitle = p_get_metadata($page[' | ||
- | $url = wl($page[' | ||
- | |||
- | // Print the table row with the correct, working link | ||
- | echo '< | ||
- | echo '< | ||
- | echo '< | ||
- | echo '< | ||
- | echo '</ | ||
- | } | ||
- | |||
- | echo '</ | ||
- | echo '</ | ||
- | </ | ||
- | |||
- | |||
- | ---- struct table ---- | ||
- | schema: wikidj_schema | ||
- | cols: page as " | ||
- | sort: country | ||
- | dynfilters: yes | ||
- | ---- | ||
- | |||
- | ---- struct table ---- | ||
- | schema: wikidj_schema | ||
- | cols: %page%, country, state_or_town, | ||
- | sort: country | ||
- | dynfilters: yes | ||
- | ---- | ||
- | |||
====== Artists by Country ====== | ====== Artists by Country ====== | ||
---- struct table ---- | ---- struct table ---- | ||
schema: wikidj_schema | schema: wikidj_schema | ||
- | cols: page, country, state_or_town, | + | cols: %pageid%, country, state_or_town, |
- | sort: country | + | |
- | dynfilters: yes | + | |
- | ---- | + | |
- | final | + | |
- | ---- struct table ---- | + | |
- | schema: wikidj_schema | + | |
- | cols: page as " | + | |
sort: country | sort: country | ||
dynfilters: yes | dynfilters: yes | ||
---- | ---- | ||
- | pagelist | ||
- | < | ||
- | namespace=profile | ||
- | showheader | ||
- | showsort | ||
- | struct_cols=" | ||
- | > |
artists_by_country.1753975469.txt.gz · Last modified: by admin