Access @context outside of article template?
- Dominant language
- Ruby
- Stars
- 1.5k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to get the first article to display on the index by calling the articles and just limiting the scope of the list to the first item. The problem is I can't seem to call any of the custom data using the @context variable.
The wiki seems to say that I should be able to access the data when it's "not in the article templates" but I can't seem to get it working. Is this a bug or am I just daft?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported attempt to list the first article on the index and access custom data through @context outside an article template. Trace how @context is made available in those two rendering contexts; done when the expected data is accessible there or the limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100