We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

repeet + exp:query

Development and Programming

fostermade's avatar
fostermade
97 posts
about 17 years ago
fostermade's avatar fostermade

Hi All…

Should I be able to use exp:query inside of exp:repeet:calendar? I’m working on adding repeet to an existing calendar and it seems that as soon as I wrap the calendar in the exp:repeet:calendar code the data from exp:query is no longer returned.

Thanks in advance. I’m sure I have my dunce cap on today.

-Shawn

A portion of the edited code is below.

{exp:repeet:get_ids weblog="calendar" parse="inward" calendar="yes"}
        
{exp:repeet:calendar weblog="calendar" entry_id="{repeet:entry_ids}" interval_field="repeat_interval" include_field="include_dates" exclude_field="exclude_dates" show_future_entries="yes" show_expired="yes"}


              {calendar_rows}
              {row_start}<tr>{/row_start}
                
                {if entries}
                <td>
                    <a href="http://{day_path=who/event}">{day_number}</a>
<div class="events">
                {entries}
                {exp:query sql="SELECT cat_id AS this_cat_id FROM exp_category_posts WHERE entry_id = '{entry_id}'"}
                {exp:query sql="SELECT cat_name, cat_image, cat_url_title FROM exp_categories WHERE cat_id = '{this_cat_id}'"}
       
fostermade's avatar
fostermade
97 posts
about 17 years ago
fostermade's avatar fostermade

Update: Embed templates did the trick….

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.