Embeding a dynamic block on the gallery page

Post

Posted
Rating:
#9650 (In Topic #3404)
Avatar
Standard member
friendly is in the usergroup ‘Community saint’

Using the dynamoc block but in a more specific way than it iappears to be designd for.

Again I am playing around with the Ecommerce and Shopping Card potential in Composr 10.0.43.

My site is an art based website and my current focus is in selling artwork directly from my page. I have gallery pages showing the artwork and know I can add a dynamic block for main_cc_embed on the gallery page. But when i add the main_cc_embed, the product catalogue lists all the other paintings in the catalogue too. I only want to list the one painting product that matches the one gallery image of the painting. Is there a way to define this so only the matching product will show on block that I put on the gallery page? Thank you.
  20240218_162739.jpg 20240218_162958.jpg

Last edit: by friendly



Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#9655
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
It can get a little tricky, but it might be possible with a small amount of Tempcode.

What's the URL for the page viewing the product? That way I know the permalink structure you are using and can come up with an example.

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top

Post

Posted
Rating:
#9658
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
20240219_194429.jpg The URL for the product is Catalogues - Art and Imagination of David L Friend  (See first photo)

The product list URL is Catalogues - Art and Imagination of David L Friend  (See 2nd photo) 20240219_194857.jpg


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#9694
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
Hello,

My apologies, I just realized you said "gallery pages".

Here's what you could do: You can add a gallery custom field, the type being a reference to a products catalogue entry. Then, edit the gallery images and select the relevant product. Do the same from now on when adding.

Don't make the field required unless the only thing you use the galleries for is showcasing your products. Ideally the field should otherwise be hidden on gallery pages if they do not coincide with a product (e.g. the field is left blank).

Let me know how this goes for you.

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top