Link to a dynamic page - Forum | JoomShaper
Solved SP Page Builder

Link to a dynamic page

Asked by Hansis 3 weeks ago Last activity 2 weeks ago

I have a dynamic content:

  • department (A, B)
  • team (linked to department) (1->A, 2->A,3->B)

I created a index page and a detail page.

No I want to create a Menu-Link to specified department A.

How can I create this link? Do the index-page linked to a menu?

rg
hansi

Accepted answer

Marked as the solution
Rashida Rahman Staff

Hi Hansi,

Thanks for reaching out.

Create one page per department and filter it to that department.

  1. SP Page Builder → Pages → + Add → New Page, name it "Department A".
  2. Add a Collection addon, Source = Team.
  3. Filter → + Add new condition: Field = your Department reference field, Condition = Equals In Reference, Value = Department A.
  4. Put Dynamic Text / Dynamic Image addons inside the Collection addon for the team fields, and save.
  5. Menus → + New → Menu Item Type → SP Page Builder → Page → select "Department A".

Repeat for Department B.

On your other question — yes, the index page needs a menu item, and it's not optional. Until the collection's Index page is assigned to a menu item, the detail page URLs (/departments/department-a) return 404. If you don't want it in the navigation, put it in a hidden menu. Note that only Index pages can be picked in the menu item dialog; detail pages and individual items aren't selectable, so a direct menu link to one department item needs a System Links → URL item.

Best regards,

3 more replies

Rashida Rahman Staff

Did that help?

Hansis Asked this

sorry for late reply.
i will send you feedback bu at moment i have no time to test it.

Rashida Rahman Staff

Hi,

No worries:) Take your time! Thanks for the response.

Log in to reply.