Timeline for Get entry associated with current uri
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 24, 2021 at 4:09 | vote | accept | Augustine Calvino | ||
Oct 24, 2021 at 4:07 | answer | added | Sam Hernandez | timeline score: 7 | |
Oct 24, 2021 at 4:07 | comment | added | Augustine Calvino | Just made a PR to the docs, so hopefully that will be changed soon. | |
Oct 24, 2021 at 3:49 | comment | added | Sam Hernandez | It's true, I just looked through the docs, and they aren't clear on this. | |
Oct 24, 2021 at 3:44 | comment | added | Augustine Calvino | Oh, wonderful! It works for me, but strangely doesn't seem to be documented on the Entries page: craftcms.com/docs/3.x/entries.html. Could you add an answer with that info, along with a link to documentation if there is one? | |
Oct 24, 2021 at 2:41 | comment | added | August Miller |
Ok, perfect! You don’t need to do the lookup manually—Craft injects the current Entry/Element as entry in your template, along with all the field data you’d expect. 👍
|
|
Oct 24, 2021 at 2:39 | history | edited | Augustine Calvino | CC BY-SA 4.0 |
added 128 characters in body
|
Oct 24, 2021 at 1:44 | history | edited | Augustine Calvino | CC BY-SA 4.0 |
added 9 characters in body
|
Oct 24, 2021 at 1:44 | comment | added | Augustine Calvino | The uri is mapped to a template - I get that part. I want to be able to access the field data from the entry - that's what the queries I set up do. I am just wondering if there is a less roundabout way of getting that data. | |
Oct 24, 2021 at 0:10 | comment | added | August Miller |
What does this Entry's Section settings look like? Craft should be automatically generating URIs and mapping them to a template based on that config—no need to look them up manually, unless you're trying to access them outside that scheme. In short, you may already have access to entry in this context!
|
|
S Oct 23, 2021 at 23:48 | review | First questions | |||
Oct 24, 2021 at 4:09 | |||||
S Oct 23, 2021 at 23:48 | history | asked | Augustine Calvino | CC BY-SA 4.0 |