Forum

Questions and discussions

Categories view - blog and tree - switch ?

Script's setup and configuration

Categories view - blog and tree - switch ?

Postby pepperstreet » Thu Mar 07, 2013 8:10 pm

Hello again,

how and where do I set the categories view type? In categories.php is a variable $view and 3 values for blog-view, tree, cloud.

1.) How can i use and set it for my template? Can i have different views, and switch between them? Or have them linked in the main menu ? Can I pass this view-type# via URL?

2.) Would also be cool to view the categories overview in a lightbox/modal window.

Thanks in advance.
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm

Re: Categories view - blog and tree - switch ?

Postby admin » Fri Mar 08, 2013 8:23 am

You can change the variable in the file /members/categories.php

line 11:
Code: Select all
$view=1;



The clients asked to develop different category's page. I didn't add the parameter in the settings but you can change it directly in the file.
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm

Re: Categories view - blog and tree - switch ?

Postby pepperstreet » Fri Mar 08, 2013 2:21 pm

Thanks, i found those lines.

Its not possible to have both? Or switch between them?

It would be helpful to add an optional parameter to the categories page link, or something similar? Or could you make it more TPL-driven in the future?

Thanks in advance.
pepperstreet
 
Posts: 117
Joined: Fri Dec 14, 2012 10:49 pm


Return to Configuration

Who is online

Users browsing this forum: No registered users and 1 guest

  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.