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

Hide modular folders name from url?

Started by Thomas Winzer 6 years ago · 1 replies · 379 views
6 years ago

Hi,
this ist my folder structure:

01.jobs (modular)

  • _hero
  • _intro
  • _offers
    -- joboffer01
    -- joboffer02

The Url for joboffer01 looks like /jobs/_offers/joboffer01 - is it possible to hide the modular folders name from the url, something like /jobs/joboffer01?

Best regards,
Thomas

last edited 10/12/20 by Thomas Winzer
6 years ago

Hi Thomas,

modular structure should always be hidden from view - there may be something wrong with your folder structure.

The modules should be in folders too, so

01.jobs is a folder that contains a markdown file called modular.md
inside which there are several folders:
_hero is folder that contains a markdown file called hero.md
_intro is a folder that contains text.md
etc...

Is that what you have?

Then it look like _offers is collecting from a different page - is that correct?

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 14 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago