Passing parameters to a Custom Feed

Hi ! Please excuse if my English is not good.
I’ll start with describing the context of what I’m trying to achieve.

The site is for a local magazine.
I’m working with the page that displays the previous editions.

I have put a Repeater on it, associated it with a database collection and put a buttom called “Ver Contenido Relacionado” to it, which is intended to direct the users to a dynamic page with a custom feed, in order to show them all the content Tagged with the edition identifier which matches one of the Tags available in my blog content.

I’m asking for some guidance about which one would be my best course.

Is this available to be done via the custom feed?
or am I required to use Repeaters?

I was not using repeaters because I’m comfortable with the Blog system with the categories and tags… me and the team gained practice and also, the custom feed design differs with the looks of the available Repeaters provided by Wix.

In my search for info, I found several posts related to the use of Repeaters with “wixLocation.path” and “wixData.query()”.

As I’m not used to wix code, for me asking you for guidance is a good idea.
In order to not waste the time, for me would be very good to eliminate the possibilities that will not work to stick with the ones that will do the trick.

Many thanks for your help!
Best
Lionel

Hey Lionel
I am a bit confused what you mean by comparing the repeater and the custom feed. The custom feed widget for the Wix Blog App is connected to the blog only. The repeaters cannot be connected to the blog at all at the moment because there is no Wix Code API for the vertical app Wix Blog.

But if you want the button inside the repeater to go to a page within wix you add an onClick event handler inside the repeater for the button and you can attach any parameters to the url there to make it go to different pages with custom tags or categories in the url for the blog feed.

See the below code as an example on how to handle onClick inside a repeater

$w("#myRepeater").onItemReady( ($item, itemData, index) => {
  const repeatedText = $item("#repeatedText");
  const repeatedImage = $item("#repeatedImage");
  const numSelected = $item("#nonRepeatedText");

  repeatedImage.src = itemData.img;
  repeatedText.text = itemData.description;

  repeatedImage.onClick( (event) => {
    if(repeatedText.text === "Selected"){
      repeatedText.text = itemData.description;
      numSelected.text = (Number(numSelected.text) - 1).toString();
    }
    else {
      repeatedText.text = "Selected";
      numSelected.text = (Number(numSelected.text) + 1).toString();
    }
  } );
} );

Hey Andrew, ok so: Custom Feeds = they cannot receive dynamic info from a Repeater.
I’m a bit confused about what you said, let me formulate you another question to see if I got it right or not.

Given a Page (dynamic page or static page) with just a Custom Feed on it, and let’s say we have configured it with Filter posts by tag = magazineEdition2 (meaning the second magazine) and Filter posts by category = miniInterviews

Are you stating that I’m allowed to make it dynamic via Url and an onClick Event?
That is what I would like to know if it is feasible or not.-

I mean:

We want to create an “Hemeroteca”, whose meaning in English I’m not sure if it’s “Newspaper Archive” or “Newspaper Library”,
its purpose is to provide the users a way to find and read the magazine’s articles from previous editions.

What I had in mind according what you said, is that the Custom Feed somehow receives the two parameters needed for the filters, so we can have:

Filter posts by tag = {parameter1}
Filter posts by category = {parameter2}

That way, I would not be forced to create numerous single pages for each edition.

Is it doable? Or, in your better knowledge of Wix than me, you’ll coose another way?

Thanks for your time and advice

@liooalejandro Hey
Each category and tag has a unique url pattern according to another post here.

https://sitesample.wixsite.com/mysite-1/blog/category/catname/tag/tagname

Read that here

@andreas-kviby
Hey Andreas, the last tip has worked!!

Used the blog page to make it work, for instance

https://www.dparticipativa.org/entradas-blog/category/Articulos/tag/EdicionNº1

Thank you very much you saved us !!