• Resolved okayaelectric

    (@okayaelectric)


    I’m using the twig shortcodes to display a table of records from a view of products in 365. I am not fully understanding how to create a product detail page from clicking on one of the product links in the table. This is one of my pages:

    https://beta.okaya.com/display-products/oled/graphic-oled

    Would I be creating a view myself — and build out the URL for the product column to go to a detail page? I was reading a post here on the forum where someone else asked about displaying a view without the column headers. Is this somewhat the same way I would do it?

    Also, is there a way to change the titles of the columns too?

    Thank you.
    Joe

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter okayaelectric

    (@okayaelectric)

    SUCCESS!

    I just got a product detail page to work!

    Have a few more questions about this now:

    1) Can the title and SEO title and description of the page be dynamically changed on the detail page. My page title right now is Product Detail and I’d like to be able to change it to the actual product name.

    2) To make this easy for me — should I just have one product detail page for ALL products that is underneath the homepage? Is there a way to also change the breadcrumb navigation to be the product name and not the page title which is “Product Detail”?

    Thank you.
    Joe

    Plugin Author alexacrm

    (@alexacrm)

    Hi Joe,

    good to hear you worked it out.

    1. What you’re asking for is possible with some more advanced WordPress + twig templates. You’d need to have a page template that is effectively empty and allows you to build the full HTML including the page title. Alternatively you can replace title on the fly by adding a filter. Inside the filter you’d need to work out the product name.

    2. Yes, you’d have one product detail page that is bound to the product entity. That will give you access to the currentrecord object in twig. Breadcrumbs, again, would be part of the template.

    HTH
    George

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Views from 365’ is closed to new replies.