57 Posts
KKAAZZOO
7 years ago
Topic

Hi, sebloders! Please teach how to infer categories based on their subordination through the plugin PHP String. Demo

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
5
Level 1

I haven't done this, but I presume str_repeat is run on the category level.

57 Posts
KKAAZZOO
7 years ago
4
Level 2

You are right, Klas. I just don't know how to set the function str_repeat

4229 Posts
Kadministrator
7 years ago
3
Level 3

Add category level field to the list or item, put php string typography on it and select str_repeat. Then you just need to add - or any other sign as string that will get repeated.

57 Posts
KKAAZZOO
7 years ago
2
Level 4

All this was made by me before you ask a question. And it's not working

4229 Posts
Kadministrator
7 years ago
1
Level 5

I tried to reproduce the look from demo and this is working for me:

Put Category Level field in the Hidden position. Put php_string typography on it and enter — as character.

Put HTML typography on the Category title and insert this as html:

|$cck->getTypo('cat_level'); *value*
57 Posts
KKAAZZOO
7 years ago
0
Level 6

Works! Thanks for your help, Klas.

Get a Book for SEBLOD