Categories and Sub-categories Question
BorisB 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Categories and Sub-categories Question
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Categories and Sub-categories Question
I need to take a look. Please open a trouble ticket and provide a login for Storyteller as well phpMyAdmin.
I need to take a look. Please open a trouble ticket and provide a login for Storyteller as well phpMyAdmin.
1 Re: Categories and Sub-categories Question
BorisB
OP
0
From: -
From: -
Categories and Sub-categories Question
Philipp,
Got a problem.
I did what you said and everything worked fine for the first 10 categories I made into sub-categories. Then, I created another new parent category and moved 69 existing categories into that.
Now the categories and articles within them are still in the database but they aren't displaying properly on the site.
In the working categories with sub-categories a view of the page source reveals the following template comment lines:
For the sub-categories listed at the top of the page there is this comment for each subcategory:
<!-- Template review_categories -->
<li><a href=...(link to sub-category)
The above repeats for each sub-category.
Then there is this comment tag:
<!-- Template review_categories_subfooter -->
then some HTML for formatting, then,
<!-- Template review_details_header -->
Then the next comment tag shown below repeats for each article still within the parent category:
<!-- Template review_list -->
<li><a href=...(link to article)
Okay, that's all great. In the new parent category where I moved the 69 existing categories, the page doesn't display the nice box listing the sub-categories, it just lists 11 bulleted and hyperlined category names. All I'm seeing in the view source for this area is the comment tag,
<!-- Template review_categories -->
<li><a href=...(link to subcategory)
and this repeats for the 11 sub-categories listed.
Many of the sub-categories that I know have articles in them are not appearing. On the parent category page listing it says this new category I created has 66 articles, but as I say, when you click on that link you are shown only 11 categories listed with a total of 13 articles (53 articles are missing...69 categories were moved, but not all had articles).
I've combed everything in PhpMyAdmin's interface and in StoryTeller's Admin interface and I can't see anything wrong. All I did was change the reviewcat_parent id to the new parent category id. I double-checked the number for each and all looks good.
Could the database be corrupted somehow?
I eagerly await your suggestions.
Cheers,
BorisB
Philipp,
Got a problem.
I did what you said and everything worked fine for the first 10 categories I made into sub-categories. Then, I created another new parent category and moved 69 existing categories into that.
Now the categories and articles within them are still in the database but they aren't displaying properly on the site.
In the working categories with sub-categories a view of the page source reveals the following template comment lines:
For the sub-categories listed at the top of the page there is this comment for each subcategory:
<!-- Template review_categories -->
<li><a href=...(link to sub-category)
The above repeats for each sub-category.
Then there is this comment tag:
<!-- Template review_categories_subfooter -->
then some HTML for formatting, then,
<!-- Template review_details_header -->
Then the next comment tag shown below repeats for each article still within the parent category:
<!-- Template review_list -->
<li><a href=...(link to article)
Okay, that's all great. In the new parent category where I moved the 69 existing categories, the page doesn't display the nice box listing the sub-categories, it just lists 11 bulleted and hyperlined category names. All I'm seeing in the view source for this area is the comment tag,
<!-- Template review_categories -->
<li><a href=...(link to subcategory)
and this repeats for the 11 sub-categories listed.
Many of the sub-categories that I know have articles in them are not appearing. On the parent category page listing it says this new category I created has 66 articles, but as I say, when you click on that link you are shown only 11 categories listed with a total of 13 articles (53 articles are missing...69 categories were moved, but not all had articles).
I've combed everything in PhpMyAdmin's interface and in StoryTeller's Admin interface and I can't see anything wrong. All I did was change the reviewcat_parent id to the new parent category id. I double-checked the number for each and all looks good.
Could the database be corrupted somehow?
I eagerly await your suggestions.
Cheers,
BorisB
1 Re: Categories and Sub-categories Question
BorisB
OP
0
From: -
From: -
Categories and Sub-categories Question
Philipp,
That's great news! I will use PhpMyAdmin to set the category_parent to the new parent category id.
Thank you
Philipp,
That's great news! I will use PhpMyAdmin to set the category_parent to the new parent category id.
Thank you
1 Re: Categories and Sub-categories Question
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Categories and Sub-categories Question
I will try to add an option in the next version of Storyteller.
In the meantime you could use phpMyAdmin to move the categories. Select "esselbach_st_reviewcat" and edit the category that you like to turn into a subcategory. You need to set the field "category_parent" to the id of the parent category. Then clear the cache: reviews => clear cache in the admin.
Let me know if you have any questions
I will try to add an option in the next version of Storyteller.
In the meantime you could use phpMyAdmin to move the categories. Select "esselbach_st_reviewcat" and edit the category that you like to turn into a subcategory. You need to set the field "category_parent" to the id of the parent category. Then clear the cache: reviews => clear cache in the admin.
Let me know if you have any questions
Hi Phillipp,
I have been adding a lot of reviews to my StoryTeller CMS and I realize now that I need to move a number of categories into sub-categories. Unfortunately, it appears that I cannot edit an existing category so that it is a sub-category of a newly created parent category.
This is tough to explain! Maybe an illustration is in order:
Say I have this:
Cardiac Health (category)
----> The Heart: What Does it Do? (article)
----> Blood Pressure: How High is too High? (article)
Medical Devices (category)
----> Homemade scalpals (article)
----> Count your sponges! (article)
Vacation Destinations (category)
----> Hawaii: Good times! (article)
So, as it stands in my above example you have Cardiac Health, Medical Devices, and Vacation Destinations as parent categories.
What I want to do is make a new category called "Health" and move the Cardiac Health and Medical Device categories into that.
I do know I can create the new category "Health" and then create a sub-categories called "Cardiac Health" and "Medical Devices" and then move each article individually, but I was hoping I wouldn't have to go through all that. Is there a way just to move the existing categories with all their articles into the new category?
Cheers,
BorisB