Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Is it possible to assign the creation date to the folder of the sub-page?

Started by dydaevskiy 8 years ago · 6 replies · 615 views
8 years ago

I started filling out the blog but I was confronted with the fact that all child folders have a name under the link of the page. Is it possible for these child folders to assign the date of creation of the pages automatically had a name in the format 2018-09-24 (that is, year-month-number). Or at least number for example in the format 00001.link-to-page

8 years ago

I'm also interested in the question. Can I move the folders of child pages into the catalogs of the year and meyats? THAT is a permissible child page is now on this path:
user / pages / blog / page / default.md
Can I move the folder of the page's docs so that it would be along this path:
user / pages / blog / 2018/09 / page / default.md

8 years ago

@dydaevskiy I have tried to move blog pages into a folder structure like `/user/pages/blog/2018/09/mytitle/item.md, but it appears not to be that easy...

What problem exactly are you trying to solve?

👍 1
last edited 09/26/18 by pamtbaau
8 years ago

Thanks for your reply. I'm trying to fix everything in order, but in the form in which Grav offers to store files everything looks extremely chaotic and it's not clear. In the idea, I see two options, or specify the name of the child folder 2018-09-26.Page-alis / default.md or apply the structure in falsehood according to your last message. Thanks again.

8 years ago

Sorry, I'm afraid I wasn't clear when I asked about the problem you are trying to solve.

Hope this brings a bit more clarity:

  • Is it you always want to see the last created blog item on top of the list of blog items in Admin?
  • Is it you often need to search for blog items in Admin? If so, how do you search? Using the blog item's name or date?
  • Is it...
👍 1
8 years ago

I am asking you to forgive me very much, for too much time between my answers. Once again, I am very grateful for your help.

Answer questions:
"Is it you always want to see the last created blog item on top of the last of blog items in Admin?"

  • That's right.

"Is it you often need to search for blog items in Admin? If so, how do you search? Using the blog item's name or date?"

  • Yes, to search for already published pages of the blog I have often. Since from time to time I correct and update already published content.
8 years ago

The same is not clear to me why CMD displays the entire list of pages in the "Advanced" tab in this block:

2018-10-17_11-34-51|690x340

Suppose now I have to blog 30 pages, but after a year, they can be thousands... And that every time I have to wait forever until all the pages are drawn in the marked block?

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago