tv series template
#1
Goodmorning everyone

I would like to create an export template in excel enclosed in a single file.

looking at the code of the default template I realized that more files are created

name of the series
seasons
episodes

I would like to have some information to enclose all the information (series name and episodes) in a single excel file

I tried to write a file by enclosing the two foreaches:

$ {foreach tvShows show}
 $ {foreach tvShow.episodes episode}

unfortunately the details of the episodes do not appear ..

how could i solve?
#2
(2021-02-22, 14:46)Aikanairo Wrote: $ {foreach tvShows show}
 $ {foreach tvShow.episodes episode}

The second line should use "show" instead of "tvShow" since that's what you set on first line.
#3
(2021-02-22, 16:42)tars Wrote:
(2021-02-22, 14:46)Aikanairo Wrote: $ {foreach tvShows show}
 $ {foreach tvShow.episodes episode}

The second line should use "show" instead of "tvShow" since that's what you set on first line.
${foreach tvShows show}
🎥Titolo: ${show.title} (${show.year})&#10
Season:${show.seasonCount}&#10
Episodi:${show.episodeCount}&#10


${foreach Show.episodes episode}
${show.episode.season} ${show.episode.episode} - ${show.episode.title}
${show.episode.plot}
${end}
${end}

here is my code, i did as you said but it doesn't give any result
#4
(2021-02-22, 17:05)Aikanairo Wrote: ${foreach Show.episodes episode}

Use "show" instead of "Show".
#5
(2021-02-22, 17:05)Aikanairo Wrote: ${show.episode.season} ${show.episode.episode} - ${show.episode.title}
${show.episode.plot}

And remove "show." from all of those.

It would work, but "episode" is already defined as a variable name, you'd better use something else like "ep" for episodes element.

Code:
${foreach show.episodes ep}
${ep.season} ${ep.episode} - ${ep.title}
${ep.plot}
#6
(2021-02-22, 17:12)tars Wrote:
(2021-02-22, 17:05)Aikanairo Wrote: ${foreach Show.episodes episode}

Use "show" instead of "Show".

friend you are the best

thanks for the tip, I didn't notice that capital letter

Logout Mark Read Team Forum Stats Members Help
tv series template0