Hello,
I would like to change a data in a text file from the content folder.
If the date of one of the articles is earlier than the current date, it should automatically change from “featured : no” to “featured : yes”. However I don’t know how could I refer to the filename.
I know that there are a lot of options to get the dates and the others (like $page->children()->date()) but I just would like to get the name of the text file.
This is what I would like to change:
And here is my code:
Thanks for your helping! ![]()

