Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8827599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:24:37+00:00 2026-06-14T07:24:37+00:00

I am having troubles with global variables not parsing when passed as parameters. {exp:channel:entries

  • 0

I am having troubles with global variables not parsing when passed as parameters.

{exp:channel:entries    
    disable="categories|category_fields|member_data|pagination|trackbacks"
    dynamic="no"
    entry_id="{structure:child_ids_for:21}"
}

(0.012500 / 3.36MB) Tag: {exp:channel:entries disable=”categories|category_fields|member_data|pagination|trackbacks” dynamic=”no” entry_id=”{structure:child_ids_for:21}” }

The same result is produced with and without parse=”inward”

However this works fine and grabs the data I need

{exp:channel:entries    
    disable="categories|category_fields|member_data|pagination|trackbacks"
    dynamic="no"
    entry_id="{exp:query sql='SELECT exp_structure.entry_id, 
            exp_structure.parent_id, 
            exp_structure.lft
            FROM exp_structure
            WHERE parent_id = 21
            ORDER BY exp_structure.lft ASC'}{entry_id}|{/exp:query}"
    parse="inward"
}

But, then if I add in a global variable author_id=”{logged_in_member_id}” it fails to work, if I hard code that value as 1 then it functions.

Any thoughts as to what could be happening here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:24:39+00:00Added an answer on June 14, 2026 at 7:24 am

    I can’t speak for Structure’s global variables, but {logged_in_member_id} is a late-parsed global variable, meaning you can’t use it in a module tag parameter. I can only only assume that the same goes for the Structure variables.

    You can use the CURRENT_USER constant in the author_id parameter though (docs).

    Unfortunately, the solution for your {structure:child_ids_for:21} issue is to pass that as an embed variable, and put your Channel Entries loop in an embed. (I say unfortunately because embeds do incur some overhead.)

    One note: parse="inward" has no effect on module tag pairs – they always parse inward. It only affects plugin tag pairs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having troubles extending the Application class to declare global variables. I have extended
I'm having trouble with global variables in JavaScript. From every article I've read a
I'm having trouble with global variables in php. I have a $screen var set
Im having problems when I define global variables in a basic C program for
I'm new in python and I'm having many troubles in using global instruction. Here
I'm having trouble creating a global function accessible from within all classes. I receive
Having troubles here finding the right containers to represent a list of tasks on
Having troubles with items property of connected sortables. What I'm trying to do is
im having troubles with adding a class to the last option from foreach, its
I'm having troubles finding a bad query that's really causing high CPU load due

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.