Module

Archived
Forum
(read-only)

Sitemap Module

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5, ExpressionEngine 6

Back to this add-on's main page
View Other Add-ons From Brian Litzinger

     

Using Year, Month, and Day in URL

Support (Resolved)

tinchco
tinchco

Our news site uses a URL structure containing year, month and day.

Example: http://site.com/2015/04/27/yes-daniel-bruehl

I tried using {entry_date format=”%Y/%m/%d”} in the URL field of our Articles Channel, but the tag doesn’t render when viewing the sitemap. How can we go about reflecting our date-based URL structure? Love how simple it has been to set up so far.

PutYourLightsOn
# 1
PutYourLightsOn

currently entry_date with formatting is not a supported tag, but i will try and add this feature in the coming days

tinchco
# 2
tinchco

That would be much appreciated! So easy to use and I like that it just takes care of itself. Would love to use it without having to change our URL structure.

tinchco
# 3
tinchco

Any chance this feature will be added soon? Would love to use the add-on I bought with a site we just launched. Thanks!

PutYourLightsOn
# 4
PutYourLightsOn

putting {entry_date} in the URL field should already output the entry date in the format YYYY/MM/DD. is that the format you need?

tinchco
# 5
tinchco

You’re correct! Sorry for misunderstanding.

PutYourLightsOn
# 6
PutYourLightsOn

no problem, i’ll clarify this in the docs for future reference.

PutYourLightsOn
# 7
PutYourLightsOn

fyi i’ve added the ability to format the entry date in version 2.6.5