Kentico - Setting priority order of document aliases / rewrite rules - asp.net

I have a Kentico e-commerce website with the following tree structure:
Products
My Category 1 (Category page)
My Product 1 (Product page)
My Product 2 (Product page)
Categories can be accessed by any combination of the following URL’s:
/my-category-1/red (Filters)
/my-category-1/plain/red (Filters)
/my-category-2/patterned/red/plain (Filters)
This is achieved by setting up a 'route' against the 'My Category 1' category with the path/pattern '/my-category-1/{*categories}'
We also have a requirement to be able to access products via the URL’s
/my-category-1/my-product-1
/my-category-2/my-product-2
These pages are never hit however because of the route setup against the category pages.
Does anyone have any advise of how this could be achieved whilst maintaining the desired url structure? I'm trying to avoid a scenario whereby I have to perform a database check of whether a page is a product or not.
Is there anyway to 'prioritise' routing in Kentico?

Your product URL /my-category-1/my-product-1 falls under /my-category-1/{*categories}, so system will always take you to the category page trying to apply some filter. You just need to put different URL templates for those pages, e.g.:
Product page:
/product/my-category-1/my-product-1
/my-category-1/product/my-product-1
If don't want to set product page URL like above, you have to URL template for Category with filter, e.g:
/my-category-1/filter/{*categories}
This is not that much of Kentico problem, but routing. You can get more details on routing here.

Related

Users to B from breadcrumbs of A type of pages?

I have a bunch of product pages with missing breadcrumbs and I wish to see how the impact has been on category pages (since category pages are linked on product pages breadcrumbs) so basically I wish to have 3 dimension data as below:
Sessions/users going to category pages from the breadcrumbs of product pages.
Can't find a way which is as close to accurate or reliable. Any ideas how i can measure that through Google Analytics?
You can do it with a segment of sequences, inserting the pages with breadcrumbs followed by category pages. If you put an event on the click on the breadcrumbs it is simpler, otherwise you have to build a regex with the path of the pages of interest.

Drupal 7 Views Filters - Change URL get Parameter 'Items_Per_Page' to just 'Items'

I have built an ecommerce website with Drupal 7 and use views and views filters for my product catalogue.
I would like to reduce the size of URL parameters for views filters to keep my URL's nice and short.
'Items_Per_Page' has no way of being changed in the UI.
I would like this to be changed to just 'Items'.
Can this be achieved?
Example
My product catalogue has 5 filters; Category, Mod, Brand, System, and Items Per Page.
The current URL is: catalogue/?category=All&mod=All&brand=All&system=All&items_per_page=All
I would like to change this to:
catalogue/?category=All&mod=All&brand=All&system=All&items=All
Please try the Better Exposed Filters module (https://www.drupal.org/project/better_exposed_filters). You can setup your custom filter identifiers in the view settings with this module in order to achieve want you want.

Product Structured Data Bug in Woocommerce 3.5

Using woocommerce 3.5 & wordpress 5, Some days before i noticed that google is not showing rich snippets for my products when i test a product URL at google structured data testing tool, product meta was disappeared.
product structured data is visible in Breadcrumb list. how i can show my product data separately, Please help here is my store URL https://techcart.pk
The reason for this is that the Product and final breadcrumb item share the same "#id". This means they are considered to be the same entity, so they get merged.
They are both using an "#id" that represents the page they are on. So in a way they are also sharing the "#id" of the WebPage.
I'd recommend changing their "#id" to something unique. A common solution is to add a # value to the end if the "#id". e.g.
https ://example.com/product12345#Product
That indicates that it is a Product entity on the page.

Sending pageType and pageName to DataLayer

I would like to push
an individual page name for every page on my website (Home, Product Page Product A, Productpage Product B, Category Page Products A-C)
and a general category (Home, Category, Cart, Productpage)
into the DataLayer with pageName and pageCategory.
For now, we work with Typo3 and an extension from our tracking tool to name pages and categories individually.
We dislike this tracking tool and want to change to Google Analytics, so we would also get rid of the extension.
How is an individual page name and category usually set for every page? How to set and pull those two efficiently?
Each record is individually in TYPO3 as it is referenced with an uid.
Your pages have an uid and also your categories.
Also your pages can (should) be uniquely identified by the full path (URL). The same for categories: if you disentangle the tree you should get unique category-pathes.
So you can use the uids you can't see the hierarchy in any analytics tool (or at least you need to add the hierarchy information).
If you use the pathes it should be possible to split/group the accesses in the same way as the hierarchy is given in the pathes.

How do I implement URL architecture like below on a wordpress website

I need to implement URL architecture like below:
At this home url I am giving option to choose a city among total 32 cities available -
http://servicecenter.com/
Then user should redirect according choosed city like follows -
http://servicecenter.com/Surat/
http://servicecenter.com/Ajmer/
http://servicecenter.com/New-Delhi/
City specific URL should show list of available Products Type, Services Type and Bulletins Type specific to that city with count. And on clicking on a Type should redirect to URL like -
http://servicecenter.com/Surat/food/
http://servicecenter.com/Surat/ticket-booking/
http://servicecenter.com/Surat/Medical/
This city and type specific URL page should have list of posts available. And clicking on a post should redirect to URL like -
http://servicecenter.com/Surat/food/Chandan-Sweet-House/
As I know I can do using this categories, tags, and custom post types but I am not able to use permalinks in a way that I need.
If you select category in the permalink it should work e.g. in WordPress settings for Permalink, select custom
/%category%/%postname%/
Then create categories for each city and subcategories as needed e.g. food, driving etc
When you create the post, select the subcategory and the full category/subcategory should be linked in the URL

Resources