Author Topic: archive pages  (Read 927 times)

0 Members and 1 Guest are viewing this topic.

Offline peeperd

  • Newbie
  • *
  • Posts: 45
  • Karma: +1/-0
    • View Profile
archive pages
« on: December 05, 2013, 11:02:35 AM »
i forgot how to make them lol help please  ;D

Offline dragosani

  • New Users
  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: archive pages
« Reply #1 on: March 12, 2014, 05:04:11 PM »
hey,
i'm creating manually few new pages in manage pages, naming it index2 index3 etc..
then i'm using such code on index.html and all other index where i want archives:

{pages var=$pages category=$page_category.category_id}
{assign var=$num_pages value=count($pages)}
{foreach var=$page from=$pages counter=$counter}
 <a href="{$page.page_url|htmlspecialchars}"> {$counter|htmlspecialchars}[/url]{if $counter < $num_pages} | {/if}
{/foreach}

but i'm sure there must be easier more automatical way, mine suits me since i'm not in rush and my archives will fill up slowly. but i would gladly hear some others faster options to do this.

Unofficial JMB Support Forums

Re: archive pages
« Reply #1 on: March 12, 2014, 05:04:11 PM »


Tags:
 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1089 Views
Last post September 22, 2012, 05:55:29 PM
by Chad
1 Replies
1187 Views
Last post September 11, 2013, 04:44:36 PM
by a4evermedia
1 Replies
869 Views
Last post November 17, 2013, 06:43:23 PM
by Chad
0 Replies
950 Views
Last post June 27, 2015, 05:39:30 PM
by frankmonique
1 Replies
1105 Views
Last post September 13, 2015, 05:58:01 AM
by amebb

anything