diff --git a/views/globals/nav.psql b/views/globals/nav.psql new file mode 100644 index 00000000..89b48dc8 --- /dev/null +++ b/views/globals/nav.psql @@ -0,0 +1,14 @@ +CREATE OR REPLACE VIEW optimized_navigation AS +SELECT + n.id, + n.menu_location, + n.permalink, + n.icon, + n.title, + n.sort, + p.title AS page_title, + p.permalink AS page_permalink +FROM + navigation n +LEFT JOIN + pages p ON n.pages = p.id; \ No newline at end of file