문제

In Django CMS how can you display the content of the same placeholder twice on the same page?

I tried this but it doesn't work:

{% placeholder "image_slider_1" %}
{% show_placeholder "image_slider_1" request.current_page %}
도움이 되었습니까?

해결책

Turns out if you don't populate the placeholder, show_placeholder throws a 'placeholder not found' error.

다른 팁

Try to set a page ID for this page in the djangocms-admin backend and use the show_placholder tag in combination with the ID

{% show_placeholder "image_slider_1" "my_page_id" %}

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top