Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 7th, 2011, 09:04 PM
charlesk charlesk is offline
 
Join Date: Mar 2011
Posts: 43
Default one custom view for many categories?

Hi

in my store's (id 31091) I have created a custom "category page" view called "casual" which I would like to use in all subcategories called "casual" (there are 13 of them) - how can I do that without having to create 13 custom views individually for every "casual" subcategory?

Kind regards
Charles

Last edited by charlesk : August 7th, 2011 at 09:12 PM.
  #2  
Old August 8th, 2011, 08:25 AM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

I'm afraid there's currently no way.

Perhaps it might be better in this case not to make specific views, but rather add stuff specific to your "Casual" category to the default view using a conditional statement like this:

Code:
<?php if($category->name == "Casual") { ?>
.....insert specific stuff here
<?php } ?>
  #3  
Old August 9th, 2011, 09:42 AM
charlesk charlesk is offline
 
Join Date: Mar 2011
Posts: 43
Default

do you think that I could use this conditional statement to remove the "categories" module from the view?
I'll look in to that. Thanks!
  #4  
Old August 9th, 2011, 10:28 AM
parkerproject parkerproject is offline
 
Join Date: Oct 2010
Posts: 38
Default

can i use the above method for assigning different page title and meta tags but putting that in the head porttion of the page.
Something like this;

<?php if($category->name == "Casual") { ?>
.....insert specific title and meta tags
<?php } ?>
  #5  
Old August 9th, 2011, 12:51 PM
stefan stefan is offline
 
Join Date: Feb 2008
Posts: 5,901
Default

Quote:
Originally Posted by parkerproject View Post
can i use the above method for assigning different page title and meta tags but putting that in the head porttion of the page.
Something like this;

<?php if($category->name == "Casual") { ?>
.....insert specific title and meta tags
<?php } ?>
Yes, that should work imo.
  #6  
Old August 11th, 2011, 08:24 AM
charlesk charlesk is offline
 
Join Date: Mar 2011
Posts: 43
Default

Sorry for lame question - how do I add multiple category names to the <?php if... code?
  #7  
Old August 11th, 2011, 08:51 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by charlesk View Post
Sorry for lame question - how do I add multiple category names to the <?php if... code?
PHP Code:
<?php if($category->name == "Casual") { ?>
.....insert specific title and meta tags
<?php } elseif($category->name == "Another") { ?>
.....insert other category here specific title and meta tags
<?php } elseif($category->name == "More") { ?>
.....insert more category here specific title and meta tags
<?php ?>
  #8  
Old August 11th, 2011, 08:52 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

http://www.tizag.com/phpT/if.php
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging not working on a custom view patagonia Problems 2 June 25th, 2011 10:34 AM
Custom View Will Not Format Correctly laura90059 Problems 1 March 24th, 2011 06:15 PM
Custom view for select pages Kaetemar Questions 1 February 10th, 2011 07:11 PM
Custom Category View to apply to child categories too ayorofrance Feature Requests 0 January 20th, 2011 07:39 AM
Assign Custom View to More Than 1 category? sgalusha Questions 1 January 18th, 2011 04:41 PM


All times are GMT -5. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.