Re: What is the macro that controls post type in the newspaper?
Posted by
Harvey on
URL: https://support.nabble.com/Turning-a-Newspaper-into-a-Magazine-tp7586820p7586843.html
I got this far. I can figure out how to remove it all but it still shows all nodes not just topics, even when the dropdown is set on topics:
<override_macro name="user_nodes_filter_control" requires="user_page">
<n.put_in_head.>
<script type="text/javascript">
$(document).ready(function() {
function applyFilter() {
window.location = $('#filter').val();
};
$('#filter').change(applyFilter);
});
</script>
</n.put_in_head.>
<div class="float-left nowrap" style="margin:.3em .2em">
<b><t>Show</t></b>
<n.set_var. name='url'>
<n.page_user.url filter="[n.user_nodes_filter/]"/>
</n.set_var.>
<select id="filter">
<n.select_option value="[n.page_user.url filter='topics_only'/]" selectedValue="[n.var name='url'/]" text="[t]Topics[/t]"/>
</select>
</div>
</override_macro>
HTTPS Please!