ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Link to previous and next month, by the name of the month

August 02, 2010 12:54pm

Subscribe [2]
  • #1 / Aug 02, 2010 12:54pm

    Brad Morse

    428 posts

    I use the following code in the exp:weblog:calendar tag to link to previous, next months

    <a href="http://{previous_path=/{segment_1}}" title="previous month" class="monthControl">«</a> {date format="%F %Y"} <a href="http://{next_path=/{segment_1}}" title="next month" class="monthControl">»</a>

    Which displays like: << August >>

    What I want to know, is it possible to link the name of the month that is previous and next…

    like this: July | August | September

    I am unsure how to accomplish this, if it is possible using native EE tags.

    Any help is appreciated.

    Update:

    Figured it out:

    {previous_date format="%F"} {next_date format="%F"}
  • #2 / Aug 02, 2010 4:19pm

    Ingmar

    29245 posts

    Yes, you’ll just need to format it. Glad you found the solution 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases