I have created a module which displays listings of a custom object that we have (job vacancies). In the module, I am only displaying the objects that are at a desired stage, determined by a dropdown property on the object similar to deal stage.
I can see that pages are being created for all objects of this type and was wondering if there is any way to limit which pages are created so that only objects in a desired state have pages created. The only other way around this I can see is to use workflows to create/delete a mirrored version of these objects for the sole purpose of populating the website.
Hey, @SamWadey
Thanks for reaching out! Were you able to make any progress here? You didn’t mention if you tried using HubL and if statements to control the content. A Very Simple Example might look like this:
{% if object.stage_property == 'desired_stage' %}
<!-- your page content here -->
{% else %}
<!-- redirect to a different page or show a custom message -->
{% endif %}
Your instinct towards workflow sounds viable, although more set up and complexity are likely involved with this approach.
Talk soon! — Jaycee
Hey, @SamWadey
Thanks for your question! Were you able to get this worked out?
If not, have you tried adding vertical-align: top; to your label span? It’s a guess, as it’s hard to know without “seeing” the issue on a live page.
Please let us know what worked, and don’t hesitate to let us know if you need other help.
Best,
Jaycee