|
Hi Everyone,
I am building an EC website for a customer and the project manager came with some strange ideas and I am struggling to actually implement what he sold to the client.
Here comes my main issue and a quick summary how the system is setup: product...
Started by RageZ on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
About menu rendering: I assume you'd want the menu to render: - All ancestors of the chosen category - All siblings of the ancestors of the chosen category
So if you choose 'Speakers', you'd see accidentally clicks on the toppermost ....
|
|
I have a products table that contains a FK for a category, the Categories table is created in a way that each category can have a parent category, example:
Computers Processors Intel Pentium Core 2 Duo AMD Athlon
I need to make a select query that if ...
Started by Bruno on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
I suppose there's no limitation to the category hierarchy depth....
I have done similar things in the past, first querying for the category ids, then querying you want to find is the transitive closure of the category "parent" relation.
|
|
Using the category tag in RSS 2.0:
<category domain="http://mysite.example.com/tags"> Science and Technology </category>
How would I provide an additional URL to the page that shows all of the items in that category?
Since the spec doesn't...
Started by Simon Willison on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Which has to have a content matching a category and an attribute holding the URL to the page that shows all of the items in that category:
<rss version="2.0" xmlns:myns="http://mysite.example.com/namespace/"> <category domain....
|
Ask your Facebook Friends
|
Hi there, I'm trying to figure out a way of being able to click a link in a sidebar and skip straight to a single page if there is only one post in a category.
This is the website I've built for the company I work for. For example. If you click on the...
Started by Danny Tonkin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Oops it should have.
If there's 1 then include the single page template or else display the normal category listing.
In the category template check for the number of elements in the $posts array.
|
|
I have a function below whose purpose is to create a listing of posts where the category assigned to each post is "top-menu". However, I first want to exclude any posts where the category is "hidden"...
How can I edit this code to do that?
global $post...
Started by Scott B on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can always just use category and give it an id instead of category_name-menu'); $myposts = get_posts( array( 'numberposts' => 5, 'category__in' => array( $include_cat ), 'category__not_in' =....
Again if you need it.
|
|
Does anybody know where to find a detailed guide to performing a bulk product/category/sub category import With Magento?
For example, what fields can be imported? What format can be imported? How to do it with a Chron job? etc
Answer Snippets (Read the full thread at stackoverflow):
The procedure I think is to export, then import with the same columns but with your additional rows... .
I just started a store with Magento, as far as I know in the latest version you can export/import based on the database structure the interface is there .
|
|
Hi,
I have a mysql database populated with categories/subcategories, and I'm on the way to build a php/html/css presentation module to show the hierarchy above mentioned.
My objective is to have a simple and clean way to list those categories, widthout...
Started by yoda on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could emulate Mac OS's Finder:.
How about a windows-like tree view? People are used to that .
|
|
My blog's main menu is made of the categories, displayed via the wp_list_categories function.
If i click on one of the categories, the current category is highlighted in the category menu, and the list of articles inside that category are listed. Everything...
Started by pixeline on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It will only show one "current" category....
I found a good hack on the wordpress forum.
Is providing the category list for both the category page and the post page? The code might be within an is_category or is_post/is_page block.
|
|
Hi,
I have a category structure like this in WordPress (that is echoed with wp _ list _ categories):
Works Photos 1990-2000 Photo #1 Photo #2 Photo #3 2000-2010 Photo #1 Photo #2 Photo #3 Paintings Watercolor Painting #1 Painting #2 Oil paint Painting...
Started by Fred Bergman on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Javascript
element.parentNode.className = "highlighted";
....
Element.parentNode will do the trick.
If this is the case, you could use some javascript to set the style of the parent elements .
I am assuming that your list is composed of ul and li elements .
|
|
I have a performance counter category. The counters in this category may change for my next release so when the program starts, I want to check if the category exists and it is the correct version - if not, create the new category. I can do this by storing...
Started by RichAmberale on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If it exists, we compare the existing category to what we expect and recreate.
If it isn't found, we create the category.
System, each time the application starts we do a check for the existing category.
|