Hi!
Updating our office's website I encounterd a little problem. I'm listing projects. Those who are still ongoing have a date in the future. Displaying these in a list (as per the usual list view of the template itself) is no problem with using show_future_entries='1', of course.
1) Now, within the template globals I choose some that should be featured on a seperate page. I do this within a mosaic:
I get the results I want. Just in the admin panel the title of those projects who are ongoing (so with a publish date in the future) are not shown. The regular ones are fine. What am I missing?
2) Within those projects I define the teammembers who are/have been working on it, again with a relation. Every teammember has his own page with some info and the projects he/she is working/worked on.
This is working as it should, but only if there is a project that has already been finished. If there is only one related page (the project), which is ongoing (so publish date in the future) no entry is displayed.
Any help would be much appreciated as I couldn't find anything in the forum on the problem, yet.
Updating our office's website I encounterd a little problem. I'm listing projects. Those who are still ongoing have a date in the future. Displaying these in a list (as per the usual list view of the template itself) is no problem with using show_future_entries='1', of course.
1) Now, within the template globals I choose some that should be featured on a seperate page. I do this within a mosaic:
- Code: Select all
<cms:mosaic name='featured_projects' label='Projekt hinzufügen'>
<cms:tile name='featured_project' label='Projekt hinzufügen'>
<cms:editable type='relation' name='featured_project' label='Projekt' masterpage='projects.php' has='one' order='-20'/>
<cms:editable
name='name'
label='Project name'
desc='laufende Projekte werden noch nicht in der Übersicht angezeigt, daher hier Projektnamen einfügen'
type='text'
order='-10'
/>
</cms:tile>
</cms:mosaic>
I get the results I want. Just in the admin panel the title of those projects who are ongoing (so with a publish date in the future) are not shown. The regular ones are fine. What am I missing?
2) Within those projects I define the teammembers who are/have been working on it, again with a relation. Every teammember has his own page with some info and the projects he/she is working/worked on.
- Code: Select all
<cms:reverse_related_pages 'project_team' masterpage='projects.php' orderby='publish_date' show_future_entries='1'>
<cms:if k_count='1'>
<h2>Projekte</h2>
<p>
</cms:if>
<cms:if "<cms:not_empty project_text_de />" ><a href="<cms:show k_page_link/>"></cms:if><cms:show k_page_title/><cms:if project_is_ongoing> - <i>laufend</i><cms:else/> - <cms:show project_year/></cms:if><cms:if "<cms:not_empty project_text_de />" ></a></cms:if><cms:if k_count lt k_total_records>, <br/><cms:else_if k_count=k_total_records/>.</cms:if>
<cms:if k_count=k_total_records>
</p>
</cms:if>
</cms:reverse_related_pages>
This is working as it should, but only if there is a project that has already been finished. If there is only one related page (the project), which is ongoing (so publish date in the future) no entry is displayed.
Any help would be much appreciated as I couldn't find anything in the forum on the problem, yet.