{exp:channel:entries disable="member_data|pagination|categories" show_future_entries="yes" entry_id="{stash:entry_id}" status="not Closed" dynamic="no" limit="1"}{if no_results}{redirect="404"}{/if}
{stash:segment_1}{segment_1}{/stash:segment_1}
{stash:segment_2}{segment_2}{/stash:segment_2}
{stash:segment_3}{segment_3}{/stash:segment_3}
{stash:segment_4}{segment_4}{/stash:segment_4}
{stash:url_title}{if '{page_url_segment}'}{page_url_segment}{if:else}{url_title}{/if}{/stash:url_title}
{stash:url}{if '{segment_1}'==''}{if:elseif page_url_segment}/{page_url_segment}{if:else}/{url_title}{/if}{/stash:url}
{stash:allow_index}{page_allow_index}{/stash:allow_index}
{stash:short_name}{page_short_heading}{/stash:short_name}
{stash:meta_title}{page_meta_title}{/stash:meta_title}
{stash:entry_remove_ads}{page_remove_ads}{/stash:entry_remove_ads}
{stash:entry_limited_ads}{page_allow_limited_ads}{/stash:entry_limited_ads}
{stash:entry_remove_top_ad}{page_remove_top_ad}{/stash:entry_remove_top_ad}
{stash:disable-inline-video}{page_disable_inline_video}{/stash:disable-inline-video}
{stash:allow_comments}{page_comments}{/stash:allow_comments}
{stash:show_pub_date}{page_show_publish_date}{/stash:show_pub_date}
{stash:show_pub}{page_show_publisher}{/stash:show_pub}
{stash:remove_announcements}{page_remove_announcements}{/stash:remove_announcements}
{stash:remove_promo}{page_promo_section}{/stash:remove_promo}
{stash:count_promo}{if page_promo_count}{page_promo_count}{if:else}3{/if}{/stash:count_promo}
{stash:title_image_override}{page_title_image_override}{/stash:title_image_override}
{stash:page_post_data}{page_post_data}{/stash:page_post_data}
{stash:content_nav_bar_links}
{page_content_nav_bar_links:entry_ids}
{/stash:content_nav_bar_links}
{stash:hero_size}{page_hero_size}{/stash:hero_size}
{stash:video_status}{page_video_status}{/stash:video_status}
{stash:video_url}{page_video_url}{/stash:video_url}
{stash:video_url_hd}{page_video_url_hd}{/stash:video_url_hd}
{stash:hero_slider}{page_hero_image_slider}{/stash:hero_slider}
{stash:hero_heading_size}{page_hero_heading_size}{/stash:hero_heading_size}
{stash:style-url}{page_island_style}{/stash:style-url}
{stash:hero-video-heading}{page_hero_video_heading}{/stash:hero-video-heading}
{stash:hero-video-subheading}{page_hero_video_subheading}{/stash:hero-video-subheading}
{stash:disable_amp}{page_disable_amp}{/stash:disable_amp}
{!-- Section Data --}
{exp:query sql="SELECT field_id_585 as section_name, field_id_613 as section_short_name, field_id_587 as section_url, entry_id as section_id, count(*) as the_count FROM exp_channel_data cd JOIN exp_playa_relationships pr WHERE cd.entry_id = pr.child_entry_id AND pr.parent_entry_id='{entry_id}' AND (pr.parent_field_id='569' OR pr.parent_field_id='541' OR pr.parent_field_id='580') ORDER BY pr.rel_id ASC LIMIT 1"}
{stash:section}{section_name}{/stash:section}
{stash:section_short_name}{section_short_name}{/stash:section_short_name}
{stash:section_url}{if section_url}/{section_url}{/if}{/stash:section_url}
{stash:section_id}{section_id}{/stash:section_id}
{/exp:query}
{!-- Classification Data --}
{stash:classification_count}{/stash:classification_count}
{stash:classification}{/stash:classification}
{stash:classification_url}{/stash:classification_url}
{stash:classification_id}{/stash:classification_id}
{!-- Type Data --}
{exp:query sql="SELECT field_id_548 as type_name, field_id_544 as type_url, count(*) as the_count FROM exp_channel_data cd JOIN exp_playa_relationships pr WHERE cd.entry_id = pr.child_entry_id AND pr.parent_entry_id='{entry_id}' AND (pr.parent_field_id='595' OR pr.parent_field_id='591' OR pr.parent_field_id='784') ORDER BY pr.rel_id ASC LIMIT 1"}
{stash:type_name}{type_name}{/stash:type_name}
{stash:type_url}{if type_url}/{type_url}{/if}{/stash:type_url}
{/exp:query}
{stash:channel_short_name}{channel_short_name}{/stash:channel_short_name}
{stash:author_name}{exp:member:custom_profile_data member_id='{author_id}'}{author_name}{/exp:member:custom_profile_data}{/stash:author_name}
{stash:author_id}{author_id}{/stash:author_id}
{stash:contributors}{/stash:contributors}
{stash:region_primary}{/stash:region_primary}
{stash:meta_description}{if page_meta_description}{exp:ce_str:ing truncate='300' remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{page_meta_description}{/exp:ce_str:ing}{if:else}{page_blocks}{content_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate='300' remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{content}{/exp:ce_str:ing}{/if}{/content_block}{heading_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{hb_heading_text}{/exp:ce_str:ing}{/if}{/heading_block}{content_image_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{ci_body}{/exp:ce_str:ing}{/if}{/content_image_block}{content_related_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{cr_body}{/exp:ce_str:ing}{/if}{/content_related_block}{content_html_block}{/content_html_block}{premium_only_parent}{/premium_only_parent}{accordion_block}{/accordion_block}{buttons_block}{/buttons_block}{related_tiles_block}{/related_tiles_block}{table_block}{/table_block}{grid_block}{/grid_block}{summary_block}{/summary_block}{content_block_2_columns}{/content_block_2_columns}{content_block_3_columns}{/content_block_3_columns}{html_block}{/html_block}{call_to_action_block}{/call_to_action_block}{cta_button}{/cta_button}{assets_image_block}{/assets_image_block}{related_item_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{related_headline}{/exp:ce_str:ing}{/if}{/related_item_block}{content_cta_tile}{/content_cta_tile}{video_block}{/video_block}{related_block_quote}{/related_block_quote}{toggle_block}{/toggle_block}{white_label_block}{/white_label_block}{keyword_products_block}{/keyword_products_block}{cta_related_item}{/cta_related_item}{tile_block_2_columns}{/tile_block_2_columns}{author_block}{/author_block}{asset_image_2_column}{/asset_image_2_column}{asset_image_4_column}{/asset_image_4_column}{cta_related_block}{/cta_related_block}{related_html_element}{/related_html_element}{ad_1col}{/ad_1col}{bullet_block}{/bullet_block}{form_block}{/form_block}{cookie_switch_block}{/cookie_switch_block}{cookie_create_block}{/cookie_create_block}{accordion_block_parent}{/accordion_block_parent}{accordion_block_child}{/accordion_block_child}{premium_teaser_parent}{/premium_teaser_parent}{gallery_block}{/gallery_block}{form_field_two_column}{/form_field_two_column}{form_field_one_column}{/form_field_one_column}{divider_block}{/divider_block}{tab_accordion_block_parent}{/tab_accordion_block_parent}{tab_accordion_block_child}{/tab_accordion_block_child}{modal_block}{/modal_block}{fh_tour_block}{/fh_tour_block}{parallax_block}{/parallax_block}{full_image_block}{/full_image_block}{assets_content_4_column}{/assets_content_4_column}{tab_block_parent}{/tab_block_parent}{tab_block_child}{/tab_block_child}{call_to_action_block_v2}{/call_to_action_block_v2}{visitor_guide_4_column}{/visitor_guide_4_column}{/page_blocks}{/if}{/stash:meta_description}
{stash:structured_description}{if page_meta_description}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{page_meta_description}{/exp:ce_str:ing}{if:else}{page_blocks}{content_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{content}{/exp:ce_str:ing}{/if}{/content_block}{heading_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate='300' remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{hb_heading_text}{/exp:ce_str:ing}{/if}{/heading_block}{content_image_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{ci_body}{/exp:ce_str:ing}{/if}{/content_image_block}{content_related_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate='300' remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{cr_body}{/exp:ce_str:ing}{/if}{/content_related_block}{content_html_block}{/content_html_block}{premium_only_parent}{/premium_only_parent}{accordion_block}{/accordion_block}{buttons_block}{/buttons_block}{related_tiles_block}{/related_tiles_block}{table_block}{/table_block}{grid_block}{/grid_block}{summary_block}{/summary_block}{content_block_2_columns}{/content_block_2_columns}{content_block_3_columns}{/content_block_3_columns}{html_block}{/html_block}{call_to_action_block}{/call_to_action_block}{cta_button}{/cta_button}{assets_image_block}{/assets_image_block}{related_item_block}{if '{blocks:count:of:type}'=='1'}{exp:ce_str:ing truncate="300" remove_tags='h2|yes' remove_tags='h3|yes' remove_tags='h4|yes' remove_tags remove_html}{related_headline}{/exp:ce_str:ing}{/if}{/related_item_block}{content_cta_tile}{/content_cta_tile}{video_block}{/video_block}{related_block_quote}{/related_block_quote}{toggle_block}{/toggle_block}{white_label_block}{/white_label_block}{keyword_products_block}{/keyword_products_block}{cta_related_item}{/cta_related_item}{tile_block_2_columns}{/tile_block_2_columns}{author_block}{/author_block}{asset_image_2_column}{/asset_image_2_column}{asset_image_4_column}{/asset_image_4_column}{cta_related_block}{/cta_related_block}{related_html_element}{/related_html_element}{ad_1col}{/ad_1col}{bullet_block}{/bullet_block}{form_block}{/form_block}{cookie_switch_block}{/cookie_switch_block}{cookie_create_block}{/cookie_create_block}{accordion_block_parent}{/accordion_block_parent}{accordion_block_child}{/accordion_block_child}{premium_teaser_parent}{/premium_teaser_parent}{gallery_block}{/gallery_block}{form_field_two_column}{/form_field_two_column}{form_field_one_column}{/form_field_one_column}{divider_block}{/divider_block}{tab_accordion_block_parent}{/tab_accordion_block_parent}{tab_accordion_block_child}{/tab_accordion_block_child}{modal_block}{/modal_block}{fh_tour_block}{/fh_tour_block}{parallax_block}{/parallax_block}{full_image_block}{/full_image_block}{assets_content_4_column}{/assets_content_4_column}{tab_block_parent}{/tab_block_parent}{tab_block_child}{/tab_block_child}{call_to_action_block_v2}{/call_to_action_block_v2}{visitor_guide_4_column}{/visitor_guide_4_column}{/page_blocks}{/if}{/stash:structured_description}
{stash:block_css}
{page_blocks}
{white_label_block}
{if '{blocks:count:of:type}'=='1'}
{if wl_provider == "Priceline"}
{if:elseif wl_provider == "HotelsCombined"}
{if:elseif wl_provider == "Expedia"}
{/if}{!--wl_provider--}
{/if}{!--count-of-type--}
{/white_label_block}
{keyword_products_block}{/keyword_products_block}
{form_freeform_block}{/form_freeform_block}
{premium_swap_block}{/premium_swap_block}
{accordion_block}
{if '{blocks:count:of:type}'=='1'}
{/if}
{/accordion_block}
{premium_teaser_parent}
{if '{enable_premium_intro_accordion}'=='Yes'}
{if '{blocks:count:of:type}'=='1'}
{/if}
{/if}{!--enable_intro_accordion--}
{/premium_teaser_parent}
{cookie_create_block}{/cookie_create_block}
{cookie_switch_block}{/cookie_switch_block}
{accordion_block_parent}
{if '{blocks:count:of:type}'=='1'}
{/if}
{/accordion_block_parent}
{tab_accordion_block_parent}
{if '{blocks:count:of:type}'=='1'}
{!----}
{/if}
{/tab_accordion_block_parent}
{modal_block}
{modal_styles}
{/modal_block}
{tab_accordion_block_child}{/tab_accordion_block_child}
{gallery_block}{/gallery_block}
{buttons_block}{/buttons_block}
{plus_minus_block}{/plus_minus_block}
{toggle_block}{/toggle_block}
{author_block}{/author_block}
{content_block}{/content_block}
{summary_block}{/summary_block}
{related_block_quote}{/related_block_quote}
{assets_image_block}{/assets_image_block}
{asset_image_2_column}{/asset_image_2_column}
{asset_image_4_column}{/asset_image_4_column}
{divider_block}{/divider_block}
{form_block}{/form_block}
{video_block}{/video_block}
{content_related_block}{/content_related_block}
{content_cta_tile}{/content_cta_tile}
{content_image_block}{/content_image_block}
{bullet_block}{/bullet_block}
{cta_button}{/cta_button}
{content_block_2_columns}
{/content_block_2_columns}
{content_block_3_columns}
{/content_block_3_columns}
{tile_block_2_columns}
{/tile_block_2_columns}
{html_block}{/html_block}
{heading_block}{/heading_block}
{related_html_element}{/related_html_element}
{related_item_block}{/related_item_block}
{cta_related_block}{/cta_related_block}
{cta_related_item}{/cta_related_item}
{call_to_action_block}{/call_to_action_block}
{service_block}{/service_block}
{ad_1col}{/ad_1col}
{table_block}{/table_block}
{grid_block}{/grid_block}
{content_html_block}{/content_html_block}
{premium_only_parent}{/premium_only_parent}
{accordion_block_child}{/accordion_block_child}
{fh_tour_block}{/fh_tour_block}
{full_image_block}{/full_image_block}
{assets_content_4_column}{/assets_content_4_column}
{tab_block_parent}{/tab_block_parent}
{tab_block_child}{/tab_block_child}
{parallax_block}{/parallax_block}
{call_to_action_block_v2}{/call_to_action_block_v2}
{visitor_guide_4_column}{/visitor_guide_4_column}
{/page_blocks}
{/stash:block_css}
{stash:block_scripts}
{page_blocks}
{white_label_block}
{if '{blocks:count:of:type}'=='1'}
{if wl_provider == "Priceline"}
{if:elseif wl_provider == "HotelsCombined"}
{if:elseif wl_provider == "Expedia"}
{/if}{!--wl_provider--}
{/if}{!--count-of-type--}
{/white_label_block}
{keyword_products_block}{!--Amazon Products--}
{/keyword_products_block}
{form_freeform_block}
{if '{blocks:count:of:type}'=='1'}
{/if}{!--scripts--}
{/form_freeform_block}
{premium_swap_block}
{/premium_swap_block}
{accordion_block}
{if '{blocks:count:of:type}'=='1'}
{/if}
{/accordion_block}
{premium_teaser_parent}
{if '{enable_premium_intro_accordion}'=='Yes'}
{if '{blocks:count:of:type}'=='1'}
{/if}
{/if}{!--enable_intro_accordion--}
{/premium_teaser_parent}
{cookie_create_block}
{/cookie_create_block}
{cookie_switch_block}
{/cookie_switch_block}
{accordion_block_parent}
{if '{blocks:count:of:type}'=='1'}
{/if}
{/accordion_block_parent}
{gallery_block}
{if '{blocks:count:of:type}'=='1'}
{/if}{!--count-of-type--}
{/gallery_block}
{toggle_block}
{if '{blocks:count:of:type}'=='1'}
{/if}{!--count-of-type--}
{/toggle_block}
{modal_block}
{modal_scripts}
{/modal_block}
{video_block}{/video_block}
{tab_accordion_block_parent}
{/tab_accordion_block_parent}
{tab_accordion_block_child}{/tab_accordion_block_child}
{buttons_block}{/buttons_block}
{plus_minus_block}{/plus_minus_block}
{author_block}{/author_block}
{content_block}{/content_block}
{summary_block}{/summary_block}
{related_block_quote}{/related_block_quote}
{assets_image_block}{/assets_image_block}
{asset_image_2_column}{/asset_image_2_column}
{asset_image_4_column}{/asset_image_4_column}
{divider_block}{/divider_block}
{form_block}{/form_block}
{content_related_block}{/content_related_block}
{content_cta_tile}{/content_cta_tile}
{content_image_block}{/content_image_block}
{bullet_block}{/bullet_block}
{cta_button}{/cta_button}
{content_block_2_columns}
{/content_block_2_columns}
{content_block_3_columns}
{/content_block_3_columns}
{tile_block_2_columns}
{/tile_block_2_columns}
{html_block}{/html_block}
{heading_block}{/heading_block}
{related_html_element}{/related_html_element}
{related_item_block}{/related_item_block}
{cta_related_block}{/cta_related_block}
{cta_related_item}{/cta_related_item}
{call_to_action_block}{/call_to_action_block}
{service_block}{/service_block}
{ad_1col}{/ad_1col}
{table_block}{/table_block}
{grid_block}{/grid_block}
{content_html_block}{/content_html_block}
{premium_only_parent}{/premium_only_parent}
{accordion_block_child}{/accordion_block_child}
{fh_tour_block}{/fh_tour_block}
{assets_content_4_column}{/assets_content_4_column}
{tab_block_parent}{/tab_block_parent}
{tab_block_child}{/tab_block_child}
{parallax_block}{/parallax_block}
{full_image_block}{/full_image_block}
{call_to_action_block_v2}{/call_to_action_block_v2}
{visitor_guide_4_column}{/visitor_guide_4_column}
{/page_blocks}
{/stash:block_scripts}
{stash:entry_description}{page_description}{/stash:entry_description}
{stash:meta_author}{exp:member:custom_profile_data member_id="{author_id}"}{exp:ce_str:ing remove_html}{author_url}{/exp:ce_str:ing}{/exp:member:custom_profile_data}{/stash:meta_author}
{stash:entry_date}{entry_date format="%m-%d-%Y"}{/stash:entry_date}
{stash:entry_date_long}{entry_date format='%Y-%m-%dT%H:%i:%s%Q'}{/stash:entry_date_long}
{stash:edit_date}{edit_date format="%m-%d-%Y"}{/stash:edit_date}
{stash:edit_date_long}{edit_date format="%Y-%m-%dT%H:%i:%s%Q"}{/stash:edit_date_long}
{stash:footer_scripts}{/stash:footer_scripts}
{stash:entry_sidebar_display}{page_show_sidebar}{/stash:entry_sidebar_display}
{stash:entry_tabs}hide{/stash:entry_tabs}
{stash:title}{if page_heading}{page_heading}{if:else}{title}{/if}{/stash:title}
{stash:heading}{if page_heading}{page_heading}{if:else}{title}{/if}{/stash:heading}
{stash:original_id}{entry_id}{/stash:original_id}
{stash:list_the_kids}{/stash:list_the_kids}
{stash:entry_latitude}{/stash:entry_latitude}
{stash:entry_longitude}{/stash:entry_longitude}
{stash:entry_photos}{/stash:entry_photos}
{stash:related_total}{/stash:related_total}
{stash:related_ids}{/stash:related_ids}
{stash:list_columns}{/stash:list_columns}
{stash:list_ratio}{/stash:list_ratio}
{stash:ratings_total}{/stash:ratings_total}
{stash:quiz_check}{/stash:quiz_check}
{stash:entry_icon}
{!--{exp:jcogs_img:pair src="{page_icon}" crop="yes|center,center|0,0" width="1440" allow_scale_larger="yes" max_height="575" quality="90"}{made}{/exp:jcogs_img:pair}--}
{if page_icon}{exp:jcogs_img:pair src="{page_icon}" width="2500" allow_scale_larger="yes" quality="95"}{made}{/exp:jcogs_img:pair}{/if}
{/stash:entry_icon}
{stash:entry_icon_focus}{if '{page_icon_focus}'!=''}{page_icon_focus}{if:else}center center{/if}{/stash:entry_icon_focus}
{stash:entry_icon-mobile}
{exp:jcogs_img:pair src="{page_icon}" crop="yes|center,center|0,0" width="600" allow_scale_larger="yes" max_height="350" quality="75"}{made}{/exp:jcogs_img:pair}
{/stash:entry_icon-mobile}
{stash:entry_icon_count}
{page_icon}{total_files}{/page_icon}
{/stash:entry_icon_count}
{!--Set the Gallery Images from the Assets Field--}
{exp:stash:set_list:nested name="{entry_id}_block_images" parse_tags="yes"}
{page_icon var_prefix="galhead"}
{stash:gb_url}{galhead:url}{/stash:gb_url}
{stash:gb_caption}{if galhead:caption!=""}{galhead:caption}{if:elseif galhead:title!=""}{galhead:title}{if:else}Hawaii Photo Gallery Slide{/if}{/stash:gb_caption}
{stash:gb_focus}{if '{galhead:keywords}'=='top' || '{galhead:keywords}'=='bottom'}{galhead:keywords}{if:else}center{/if}{/stash:gb_focus}
{/page_icon}
{/exp:stash:set_list:nested}
{stash:entry_image}
{page_image}
{/stash:entry_image}
{stash:entry_phone}{/stash:entry_phone}
{stash:entry_website}{/stash:entry_website}
{stash:entry_utm_codes}{/stash:entry_utm_codes}
{stash:entry_book_now_total}{/stash:entry_book_now_total}
{stash:entry_content_footer}{/stash:entry_content_footer}
{stash:entry_tag_line}{page_tag_line}{/stash:entry_tag_line}
{stash:cj_ad_deep_link}{/stash:cj_ad_deep_link}
{stash:cj_ta_deep_link}{/stash:cj_ta_deep_link}
{stash:guidereview_total}{/stash:guidereview_total}
{stash:related_total}{/stash:related_total}
{stash:emblem}
{/stash:emblem}
{stash:emblem_icon}
{page_emblem limit="1"}
{if emblem_code}{emblem_code}{/if}
{/page_emblem}
{/stash:emblem_icon}
{stash:allow_advertising}{if '{page_remove_ads}'!='Yes'}Yes{if:else}No{/if}{/stash:allow_advertising}
{exp:playa:children field="page_authority_entry" entry_id="{entry_id}" var_prefix="auth"}
{!-- Section Data --}
{exp:query sql="SELECT field_id_587 as auth_section_url, count(*) as the_count FROM exp_channel_data cd JOIN exp_playa_relationships pr WHERE cd.entry_id = pr.child_entry_id AND pr.parent_entry_id='{auth:entry_id}' AND (pr.parent_field_id='569' OR pr.parent_field_id='541' OR pr.parent_field_id='580') ORDER BY pr.rel_id ASC LIMIT 1"}
{stash:page_auth_entry_section_url}{if "{auth_section_url}"}/{auth_section_url}{/if}{/stash:page_auth_entry_section_url}
{/exp:query}
{!-- Classification Data --}
{exp:query sql="SELECT field_id_544 as auth_class_url, count(*) as the_count FROM exp_channel_data cd JOIN exp_playa_relationships pr WHERE cd.entry_id = pr.child_entry_id AND pr.parent_entry_id='{auth:entry_id}' AND (pr.parent_field_id='543' OR pr.parent_field_id='535') ORDER BY pr.rel_id ASC LIMIT 1"}
{stash:page_auth_entry_classification_url}{if '{auth_class_url}'}/{auth_class_url}{/if}{/stash:page_auth_entry_classification_url}
{/exp:query}
{!-- Type Data --}
{exp:query sql="SELECT field_id_544 as type_url, count(*) as the_count FROM exp_channel_data cd JOIN exp_playa_relationships pr WHERE cd.entry_id = pr.child_entry_id AND pr.parent_entry_id='{auth:entry_id}' AND (pr.parent_field_id='595' OR pr.parent_field_id='591') ORDER BY pr.rel_id ASC LIMIT 1"}
{stash:page_auth_entry_type_url}{if '{auth:type_url}'}/{auth:type_url}{/if}{/stash:page_auth_entry_type_url}
{/exp:query}
{!-- page Type Data --}
{exp:query sql="SELECT field_id_544 as page_type_url, count(*) as the_count FROM exp_channel_data cd JOIN exp_playa_relationships pr WHERE cd.entry_id = pr.child_entry_id AND pr.parent_entry_id='{entry_id}' AND (pr.parent_field_id='976') ORDER BY pr.rel_id ASC LIMIT 1"}
{stash:page_type_entry_type_url}{if '{page_type_url}'}/{page_type_url}{/if}{/stash:page_type_entry_type_url}
{/exp:query}
{stash:page_auth_entry_url}{auth:url_title}{/stash:page_auth_entry_url}
{stash:page_auth_entry_title}{if '{auth:entry_heading}'!='' || '{auth:custom_heading}'!='' || '{auth:page_heading}'!=''}{auth:entry_heading}{auth:custom_heading}{auth:page_heading}{if:else}{auth:title}{/if}{/stash:page_auth_entry_title}
{stash:page_auth_canon}{auth:entry_canonical_url}{auth:page_canonical}{auth:custom_canonical}{/stash:page_auth_canon}
{/exp:playa:children}
{!-- Gallery Block Check --}
{stash:gallery-block-check}
{exp:query sql="SELECT id FROM exp_blocks_block WHERE entry_id={entry_id} AND (blockdefinition_id=111) LIMIT 1 "}Yes{/exp:query}
{/stash:gallery-block-check}
{stash:canonical_override}
{page_canonical}
{/stash:canonical_override}
{/exp:channel:entries}