Keyword

inherit parameter options from category not working

More
14 years 4 months ago #77763 by Alan Sparkes
Replied by Alan Sparkes on topic inherit parameter options from category not working
Interestingly the correct URL was generated by Joomla menu when i re-edited the menu item.......
not much help at all now me thinks

Alan Sparkes said:A wee bit of light to shine here.I think it is connected to how you generate the menu item, eg Joomla menu or K2 modules and whether layout or view is passed in URL
eg compare these

Joomla generated Menu option for K2 category view 'Training Bulletins':
index.php?option=com_k2&view=itemlist&layout=category&Itemid=27

K2 Tools menu list same category:
index.php?option=com_k2&view=itemlist&task=category&id=36:training-bulletins-and-guides&Itemid=14

When 'layout' is used in url passed by Joomla menu item i lose my category specific params....

However when K2 makes the category link direct from K2 module I get my expected params.

The difference is that the category menu type in Joomla allows more than one category assignent for the link/view, whereas in K2 Tool list Menu generation we get specific categories. Pain ensues.

How can we get the menu item from Joomla to allow single category and parameter respect or I cant see how a multiple category view is meant to get its parameters - presumably from the parent = zero/ or top most parent category...?

For me the question is how can I just get a joomla menu to point to one category with a 'itemlist' view

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77764 by Erancen
it's july 2010 and still i find no SOLVED thread about this issue.

none of the inheritance work for me... in ANY level.

even in the items view i define "inherit from category" and.... nothing.

when i change to Hide/Show it all works but "inherit from directory" is not.

i defined everything u guys said. created the HOME (master) category and created sub categories, defined both:

"Parent directory" and "Inherit parameter options from category" to HOME,

and created more Sub-Sub-Categories and did the same:

"Parent directory" and "Inherit parameter options from category" to "Sub-Category".

Not Working.

i have to change every parameter in every category and item - manually.


Please Help - im headed towrdes TONS of clicking and i got the fealing it gonna be for nothing due to a BUG or bad settings.

Thank You!

My Specs are:

Joomla Version: 1.5.20
K2 Version: 2.3
Web Server Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
PHP version 5.3.1
MySQL version 5.1.41

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77765 by Jiliko.net
Hi guys,

Could we have an url of your website(s) ?

What i would do is to add 'echo' code in the k2 file that processes inheritance...(sorry for my developer vision of the problem). This would help knowing where the problem comes from.

If you are familiar with php, here are files that process inheritance (k2 v2.3) :

Itemlist file : 'components/com_k2/views/itemlist/view.html.php', lines 50-57
item file : 'components/com_k2/models/item.php', lines 69-81

Olivier

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77766 by Erancen
Hi Olivier,

i can not supply a URL simply because im developing my site via Localhost.

unfortunatlly i'm not familiar with PHP (only basic HTML and CSS).

still is there any help u can come up with?

Olivier Nolbert said:Hi guys,
Could we have an url of your website(s) ?

What i would do is to add 'echo' code in the k2 file that processes inheritance...(sorry for my developer vision of the problem). This would help knowing where the problem comes from.

If you are familiar with php, here are files that process inheritance (k2 v2.3) :

Itemlist file : 'components/com_k2/views/itemlist/view.html.php', lines 50-57
item file : 'components/com_k2/models/item.php', lines 69-81

Olivier

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77767 by Jiliko.net
Erancen,

Inheritance works only on one level

If you want this with same category configuration :

Category
- subCategory
-- subSubCategory

You have to configure like this :

Category :
parent category : none
Inherit parameter options from category : none (have to configure paramters)

subCategory :
parent category : Category
Inherit parameter options from category : Category

subSubCategory :
parent category : subCategory
Inherit parameter options from category : Category

Hope it helps.

Olivier

Erancen said:it's july 2010 and still i find no SOLVED thread about this issue.
none of the inheritance work for me... in ANY level.

even in the items view i define "inherit from category" and.... nothing.

when i change to Hide/Show it all works but "inherit from directory" is not.

i defined everything u guys said. created the HOME (master) category and created sub categories, defined both:

"Parent directory" and "Inherit parameter options from category" to HOME,

and created more Sub-Sub-Categories and did the same:

"Parent directory" and "Inherit parameter options from category" to "Sub-Category".

Not Working.

i have to change every parameter in every category and item - manually.


Please Help - im headed towrdes TONS of clicking and i got the fealing it gonna be for nothing due to a BUG or bad settings.

Thank You!

My Specs are:

Joomla Version: 1.5.20
K2 Version: 2.3
Web Server Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
PHP version 5.3.1
MySQL version 5.1.41

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77768 by Erancen
Hi Olivier,

i just did what u suggested:

set every SubCategory, SubSubCategory and SubSubSubCetegory inherit from the the MAIN-HOME-Category.

then i check the option: "Catalog Mode" in the "Category Item Layout" to 'YES'
then i checked in the Sub Categories and NOTHING changed.

i tried to do changes in the "item view options in category listing" and in the "item view options" menues - Same! No inheritance.

please assitance.

Thanks You.

Olivier Nolbert said:Erancen, Inheritance works only on one level

If you want this with same category configuration :

Category
- subCategory
-- subSubCategory

You have to configure like this :

Category :
parent category : none
Inherit parameter options from category : none (have to configure paramters)

subCategory :
parent category : Category
Inherit parameter options from category : Category

subSubCategory :
parent category : subCategory
Inherit parameter options from category : Category

Hope it helps.

Olivier

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77769 by Jiliko.net
Erancen,

Inheritance only affects Joomla! frontend layout, not the parameters of the category that inherits.

K2 inheritance means that you can change all the parameters you want from a category that inherits from another, in won't have effect because il will be the paramaters of the master category that will be used.

Changing a parameter of a master category won't change the related parameter of the categories that inherit from it.

You'll see the changes on frontend, not on backend.

Olivier

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #77770 by Erancen
Olivier,

my Bad. i forgot that in the developing process i have 2 hats: front and back.

i was looking at those things from the programmer point of view.

it's working alright.

BIG THANKS!

for me, i can declare this thread as - SOLVED


Olivier Nolbert said:Erancen,
Inheritance only affects Joomla! frontend layout, not the parameters of the category that inherits.

K2 inheritance means that you can change all the parameters you want from a category that inherits from another, in won't have effect because il will be the paramaters of the master category that will be used.

Changing a parameter of a master category won't change the related parameter of the categories that inherit from it.

You'll see the changes on frontend, not on backend.

Olivier

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #77771 by Jorge C
Hi

Can a parent category inherit from another parent category and pass those settings to its child categories?

so I have

category1
subcategory
subSubcategory

category2
subcategory
subSubcategory

category3
subcategory
subSubcategory

I want to setup all settings for category1 and once its working, have category2 and category3 inherit from it and then set the subcategories and subSubcategories for cat2 and cat3 inherit from their parent category. Effectively just setting up one and reusing it.

Is this possible or does inheritance just work down the levels?
thanks
JC

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #77772 by Jiliko.net
Hi Jorge,

Inheritance only works on 1 level.

That means, when a category inherits from another, K2 looks for the master category parameter.

Imagine you have :

Category #1
- subCat #1
-- subSubCat #1

Configure Category#1 as you want
Make subCat #1 inherits from Category #1

If you make subSubCat #1 inherits from subCat #1, it won't have the parameters of Category #1 but those of subCat #1.

Olivier

Jorge C said:Hi
Can a parent category inherit from another parent category and pass those settings to its child categories?

so I have

category1
subcategory
subSubcategory

category2
subcategory
subSubcategory

category3
subcategory
subSubcategory

I want to setup all settings for category1 and once its working, have category2 and category3 inherit from it and then set the subcategories and subSubcategories for cat2 and cat3 inherit from their parent category. Effectively just setting up one and reusing it.

Is this possible or does inheritance just work down the levels?
thanks
JC

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum