4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: ndj5 on November 05, 2006, 03:01:50 PM

Title: Changing the category_separator
Post by: ndj5 on November 05, 2006, 03:01:50 PM
Hello Community,

I'm a long time user of 4images and have typically been able to find resolutions to my problems in this forum.  I can not, however, figure out how to change the category separator in my click stream. 

Example:  home/cat/subcat/image

I would like to change it to:  home | cat | subcat | image

I found in the details.php under clickstream, I can manually modify the "category_separator" to the |, but I can never get all of them.  There must be an easier way.  I think it is defined somewhere but can not find it.  Any ideas?

Thank you,

Nate
Title: Re: Changing the category_separator
Post by: manurom on November 05, 2006, 03:19:38 PM
Hello;
go to your Admin Control Panel, then "Settings" and "Page and Nav settings". There you can do the changes you need in "Category delimiter (in category paths)".
Title: Re: Changing the category_separator
Post by: ndj5 on November 06, 2006, 01:56:05 AM
Thank you manurom.  Not sure why I didn't think to look there, I guess I thought it was too easy.  Thanks for the reply, appreciate your help. 

Nate
Title: Re: Changing the category_separator
Post by: magooo on May 17, 2007, 07:18:47 PM
Yep, i know this is an old topic, but i have a small (maybe not very important  :P ) question and i can't the answer: if you change the separator from Control Panel, the menu will look like this: Home|Category|Picture name... how do i make it to look like this: Home | Category | Picture name...  (with space between separators and text)?


Thanks!


Later edit: i know this solution:   |   but i don't find it useful because i also use the menu as title tag and it doesn't look very nice... Home |  Category  |  Picture name ... 
Title: Re: Changing the category_separator
Post by: artmedia on December 29, 2007, 02:15:24 AM
yes, i want to do same thing, with a space(Eje: Chicas | lindas ), but without using  , where is defined that variable in php code?
Title: Re: Changing the category_separator
Post by: thunderstrike on December 29, 2007, 02:54:50 AM
In admin/settings.php file,

find:

Code: [Select]
foreach ($setting_item as $key => $val) {
   $val = trim($val);

replace:

Code: [Select]
foreach ($setting_item as $key => $val) {
      if ($key != "category_separator") {
          $val = trim($val);
      }

In global.php file,

find:

Code: [Select]
$config['allowed_mediatypes_match'] = str_replace(",", "|", $config['allowed_mediatypes']);

add after:

Code: [Select]
$config['category_separator'] = preg_replace("/\s/", REPLACE_EMPTY, $config['category_separator']);

;)
Title: Re: Changing the category_separator
Post by: magooo on December 29, 2007, 04:16:51 AM
For me it still doesn't work  :(
Title: Re: Changing the category_separator
Post by: thunderstrike on December 29, 2007, 06:40:57 AM
What is 4images version use ?
Title: Re: Changing the category_separator
Post by: magooo on December 31, 2007, 05:11:15 AM
The latest version i think...
Title: Re: Changing the category_separator
Post by: thunderstrike on December 31, 2007, 05:29:28 AM
I try with fresh 4images and is work purfect ...
Title: Re: Changing the category_separator
Post by: artmedia on May 29, 2008, 12:33:22 AM
it works perfect, thank you so much!
Title: Re: Changing the category_separator
Post by: mayashu on January 25, 2011, 10:55:40 AM
can I chnage the separator with an image?

Sory for the question, but I manage to solve the problem:

in Admin | General | Settings | Page and Nav settings | Cetegory delimiter (in category paths)
I put the following code:
Code: [Select]
<img src="{template_url}/images/spacer.gif" width="10" height="10" alt="" />