ListIt Extended - Categories
Posted: Wed Apr 17, 2013 1:14 pm
Hey,
Many of you have been opening Bug reports and been wondering about following subject, so i tough that i'll open sticky post for 30 days, so not so needed bug reports can be avoided.
Below you can find mostly asked questions regarding subject and few other questions.
Categories names not present, what to do:
Previously when items couldn't have more than one category, category info was
included in item object.
Now, when you can have item with multiple categories, categories are included to
item as ID array.
in 1.4-beta1 i didn't add any template methods, so you could actually load
category by ID inside template and use category objects to pull out information.
This is fixed in GIT, added smarty tag called: {ListIt2Loader}. For now only way
for you is to make temporal UDT to load this information in template context.
Why item ain't holding category objects?
Answer is simple: you don't always need category info, and it's useless to load
category objects when you don't need em. This saves a lot of memory / processing
time.
Why there is no internal method in item object to pull out data from it's
categories?
Because i attempt to keep category and item objects footprints as small as
possible, therefore i created smarty tag to do this instead.
What are my options now?
You can either go back to 1.3.2, as it's officially working version, or you can
create UDT that pulls information you need.
When is 1.4 expected to be released?
I try to push it out before summer, that's all i can say.
-Stikki-
Many of you have been opening Bug reports and been wondering about following subject, so i tough that i'll open sticky post for 30 days, so not so needed bug reports can be avoided.
Below you can find mostly asked questions regarding subject and few other questions.
Categories names not present, what to do:
Previously when items couldn't have more than one category, category info was
included in item object.
Now, when you can have item with multiple categories, categories are included to
item as ID array.
in 1.4-beta1 i didn't add any template methods, so you could actually load
category by ID inside template and use category objects to pull out information.
This is fixed in GIT, added smarty tag called: {ListIt2Loader}. For now only way
for you is to make temporal UDT to load this information in template context.
Why item ain't holding category objects?
Answer is simple: you don't always need category info, and it's useless to load
category objects when you don't need em. This saves a lot of memory / processing
time.
Why there is no internal method in item object to pull out data from it's
categories?
Because i attempt to keep category and item objects footprints as small as
possible, therefore i created smarty tag to do this instead.
What are my options now?
You can either go back to 1.3.2, as it's officially working version, or you can
create UDT that pulls information you need.
When is 1.4 expected to be released?
I try to push it out before summer, that's all i can say.
-Stikki-