• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Create category based web app items display.

Engaged ,
Sep 20, 2016 Sep 20, 2016

Copy link to clipboard

Copied

     Like blog posts, we can also list categories on a page and use them to display the web app items from a web app based on the particular category selected:

Working example:
test

You can go to above link and then click on any link, it will take you to another page and display the web app items based on the category link selected.

To create such setup:

1) First, note down each category name and its category ID by going to site settings > categories > select a category: http://prntscr.com/ck6y9s

2) Go to the page where you want to list all the categories link and create the link as per following code:

<a href="/asjontest.html?link=118562">Australia</a><br/>

<a href="/asjontest.html?link=142187">BOYS</a>

Here we have destination page URL along with a variable named link which points to category ID of particular category. Save the page after creating the links.

3) Go to the destination page, and put the following module:

        {module_webapps id="27004" filter="classified" itemId="{module_url,link}" resultsPerPage="10" hideEmptyMessage="false" rowCount="" sortType="ALPHABETICAL" collection="my_custom_collection_name"}

Here remember to replace the id = "27004" with your web apps ID. Save the page.

Now you can go and check the setup. It should work.


Hope this helps.

Regards,

Gaurav Aggarwal

TOPICS
Web apps

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 20, 2016 Sep 20, 2016

Copy link to clipboard

Copied

Hi Gaurav,

Who is this directed too?

You manually say to right down category id's here - You do not need to do this. You can use module_data to get the categories and use those to pass the parameter through the URL.

You do not need module_url in this case with liquid you can save a module by using globals.get.link

Through the above you form an automated list of links with id's and a cleaner page module with results.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 10, 2017 Feb 10, 2017

Copy link to clipboard

Copied

Hi Liam,

are you able to post an example of code of this?

what I have done at the moment is create a page which uses the page?categoryid to then link to another page that contains the web app items for that category.

if there was a way to display the web apps category on a page and then view the items for that category it would be really helpful, as I woundnt need to create a separate page for every category.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 17, 2018 Feb 17, 2018

Copy link to clipboard

Copied

Just curious: is {{globals.get.link}} a thing? I wasn't aware that it existed.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

mywebsite.com/mypage?athing=something

globals.get.athing

Any parameter in the URL will be in the globals.get

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

LATEST

Understood. Thanks Liam!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines