Forums

Multiple views for archive page (3 posts)

  1. slowcheetah
    Member
    Posted 4 years ago #

    I'm searching for a plugin or a method to display multiple views on a single archive page.

    For example one view that displays only the post titles, and one view that displays the full posts.

    Any suggestions?

  2. moshu
    Member
    Posted 4 years ago #

    And who and where and when and how will make the decision WHICH one to be used if I visit that "archive page".
    (Furthermore: is this about monthly archives or category archives?)

  3. slowcheetah
    Member
    Posted 4 years ago #

    The user can switch the views by using a link on the catagory page.

    example (full view - title view)

    This is about the category archives

    i'm now working on a custom PHP solution wich is going to work fine, but my customer want plugins instead of custom functions.

    <?php
    	$getArchiveView	= $_GET["ArchiveView"];
    	$getCurrentCat	= $_GET["cat"];
    ?>
    
    <?php if ($getArchiveView == '1') { ?>
    <a href="?cat=<?php echo $getCurrentCat; ?>&ArchiveView=2">Swich to headers</a>
    <?php } else { ?>
    <a href="?cat=<?php echo $getCurrentCat; ?>&ArchiveView=1">Swich to full</a>
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic