Combine two tables in a device page by filtering by two possible names

Hi,

I'm trying to merge two tables in a device page in the wiki:

---- datatable ----
cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid
headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data
align   : c,c,c,c,c,c,c
filter  : Brand=MikroTik
filter  : Model*~RBLHG2nD
----

---- datatable ----
cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid
headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data
align   : c,c,c,c,c,c,c
filter  : Brand=MikroTik
filter  : Model*~SXTsq2nD
----

into one:

---- datatable ----
cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid
headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data
align   : c,c,c,c,c,c,c
filter  : Brand=MikroTik
filter  : Model*~RBLHG2nD OR SXTsq2nD
----
  1. Is this even possible?
  2. What's the correct syntax?

Thanks! :slight_smile:

You could do this via filteror, but you will see a noticeable effect on page loading time. Try it out!

1 Like

Sweet! https://openwrt.org/toh/mikrotik/mikrotik_lhg-hb_platform#supported_versions

Thanks :slight_smile:

-> approx. 16sec loading time vs. almost instant page loading on a page without filteror, e.g. https://openwrt.org/toh/mikrotik/rb951ui

Although it works (with a miserable performance), I'd like to ask: Why are those two devices on the same page in the first place? And why are the model numbers not mentioned in the pagetitle?

Having separate pages has advantages on top of better pageload performance, e.g. you can find it via the wiki search.
With the current setup, a user searching the wiki for "sxt" will not find the page where this device (MikroTik SXTsq Lite 2 (RBSXTsq2nD)) is described, but only the page for RBSXT2nDr3:

grafik

Having a pagename which includes what the user is searching for (model number) has positive effects on user experience, i.e.

  • type the model number (or parts thereof) into the searchfield and you will already get first results
  • instead of typing "sxt" in the searchfield, getting no first results, clicking on search, getting more unrelated results, ... you get my point. :slight_smile: .

EDIT: https://openwrt.org/playground/mikrotik_test

-> Put the model in the pagetitle and the page will be found when just typing sxt in the wiki search field.

That doesn't improve page loading time, but at least the "findability" of the sxt in question.

Hi,

Agree, performance is terrible. Not an efficient approach.

MikroTik devices, such as the "SXTsq Lite2" or the "LHG 2" are based on common hardware-compatible boards (in this case the "lhg-hb"). The idea was to have a page for the platform, with all the common information, instead of 4 different per-device pages with the same information, except for the pictures. However, "findability" seems like a good reason to have the four separate pages, so maybe if more time-consuming it's the best approach.

Thanks

What about having one platform page with common information, and separate pages for the different devices, which are fed the common information via includes from the platform page?
"Write once, use many times".