Skip to content

I cannot get {% placeholder or %} to work #1424

Closed
JordanReiter opened this Issue Sep 12, 2012 · 3 comments

2 participants

@JordanReiter

I am using the code exactly as in the documentation:

{% placeholder "content" or %}
    {% show_uncached_placeholder "content" "my-page" %}
{% endplaceholder %}

Shows nothing.

{% show_uncached_placeholder "content" "my-page" %}

on its own shows the content.

Any ideas what I might be doing wrong?

@JordanReiter

Hmmm... looks like for some reason placeholder or isn't working for me at all. Any idea why this might be? Do I need to create a page and empty content first before it will work?

@shimultaleb

{% placeholder "content" %} is this work? if yes try this
{% placeholder "content" or %}There is no content.{% endplaceholder %}

@JordanReiter

I think it was a version issue. I switched to the git trunk and it started working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.