Custom listing template and nested listings #11166
Unanswered
nurfatimaj
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi!
I am working on my academic CV website and would like to include a list of events where a given project has been presented. Inside the project page I wanted to use document listings. Suppose the project page is in
project-A/index.qmd
and I have presentations inproject-A/presentations/event-1/index.qmd
andproject-A/presentations/event-2/index.qmd
and etc.So, in
project-A/index.qmd
I can include the followingThis shows me the listing of all the presentations in the format I want (from custom.ejs file) in the project page.
Now, I also want to have a listing of all research projects I do. So, let's say I have
research.qmd
file at the top level of the website folder. It is also a listing:The issue is that I don't know how to make my
research_list.ejs
evaluate the listing inside the project pages to loop over all presentations for each paper.Simplified version of my
research_list.ejs
file looks like this:But the loop over
item.listing.contents
object does not do what I want it to do. It literally loops over characters in "presentations/" (from the listing contents in the project page). Is there any way to letresearch_list.ejs
know thatitem.listing
refers to the listing and that it should evaluate that part to generate an actual array of presentation objects?Right now I am making this all work by using Metadata Listings. So, the listing on the project page looks like this
so then I get presentation lists both inside project page and research listing page. But it would be slightly easier if I could just use usual listing tools without having to remember to type them into contents.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions