Use of et-cat GET param - by designerobot

This topic has 12 replies, 3 voices, and was last updated 5 years, 2 months ago ago by Rose Tyler

  • Avatar: designerobot
    designerobot
    Participant
    August 19, 2019 at 18:35

    Hello,

    Among the specifics of the theme 6.0 I read:

    ADDED: et-cat GET param for auto sort portfolio while loading the page

    How does it work exactly? Do you have some example?

    11 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 20, 2019 at 10:25

    Hello,

    It’s related to Portfolio page. If you have a lot of the projects from some category, limited number and pagination on the portfolio page then click by the category filter http://prntscr.com/ov0kfb you’ll get projects of this category with pagination according to limit option. Before this fix, the projects for the category was disorganized, especially after going to the second page.

    We don’t have an example on the demo because we don’t have a lot of projects there.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    August 20, 2019 at 11:31

    I thought we spoke of another thing.

    Some month ago, I asked you (this is the topic https://www.8theme.com/topic/two-questions-about-portfolio-section/) how to create a link to open the portfolio page with a precise category button already selected.

    More precisely my question was:
    There is a way to call a category of the Portfolio by a link?
    Namely, open the page with the Xyz button selected.
    Maybe sometimes like this: sitename.com/portfolio?filter=.sort-xyz (where “xyz” is the slug of that category). I know that a link in this way doesn’t work, but I would like to know how to write it

    At the end of the chat you wrote to me:
    We’ll implement it in the next theme update.

    Well, how to do this now?

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 20, 2019 at 14:11

    Hello,

    Yes, this option was also added. You can use sitename.com/portfolio?et-cat=19 where 19 is the category ID.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    August 21, 2019 at 18:20

    Hello,

    I tried sitename.com/portfolio?et-cat=33 (precise link in pvt area) … the button “magazine” (id=33) is showed as selected but the content is not showed like if was really selected, it still is like “Show All”
    Please check the link in pvt area

    Where am I wrong?

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 22, 2019 at 11:58

    Hello,

    Sorry but I don’t see problem with this.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    August 22, 2019 at 12:38

    Hello,

    Strangely, it works now. But yesterday I assure you that it didn’t work! I don’t know why…

    1)
    Can you please remove the video link in your reply above? because the site is not yet publicly online.

    2)
    After this working test, I would like to restore what I had before (that yesterday I removed to try the new code)

    The question is: to open a category as deafult (instead of Show All) before I had this code in portfolio.php

    <script>
    jQuery(document).ready(function(){
       jQuery('[data-filter=".sort-mag"]').trigger( "click" );
    });
    </script>

    where “mag” was the slug of the category called “magazine”

    Have I now to use something with ?et-cat=33 (where “33” is the ID of the “magazine” category) by chance? How to adjust the code?

    I ask this because with the previous code the link sitename.com/portfolio?et-cat=33 doesn’t work (the command is overwritten by the other on the page)

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 22, 2019 at 13:51

    Hello,

    1) Done
    2) Why can’t you use the Custom link menu item with the correct link to portfolio category that should be active instead of the script?

    Regards

    Avatar: designerobot
    designerobot
    Participant
    August 27, 2019 at 20:20

    Hello,

    1) Thanks

    2) I thought about it, but I like the clean url.
    Also, if someone wrote it by hand and removed the second part, it would show “show all” and I want to avoid this.

    Do you say I can’t keep both things?

    Maybe in the next update of the theme, you could insert a setting that sets which category to start the portfolio by default

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 28, 2019 at 14:36

    Hello,

    2) Both codes work, but if you check the video you’ll see that your code takes priority. You asked about the way to load the category opened by URL if you visit it and we implemented this. But you found that it’s not suitable for you and you need something other. Sorry , but we got only 1 request about “setting that sets which category to start the portfolio by default” – from you only, so if you need some other way to load the category submit customization request to get personal assistance with this question according to your technical project.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    August 30, 2019 at 00:03

    Ok, thanks.

    Could you remove the link at the video because the website is not yet online?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 30, 2019 at 07:20

    Hello,

    You’re welcome!

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.