Re: Turning a Newspaper into a Magazine
Posted by
Harvey on
URL: https://support.nabble.com/Turning-a-Newspaper-into-a-Magazine-tp7586820p7586907.html
Harvey wrote
Here's the code. Legit?
<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(topics_only);
};
$('#filter').change(applyFilter);
});
</script>
</n.put_in_head.>
<div class="float-left nowrap" style="margin:.3em .2em">
<span class="weak-color" style="font-style: italic">
<t>Total</t>:
<n.one_or_many.user_nodes_count>
<one_text><t>item</t></one_text>
<many_text><t>items</t></many_text>
</n.one_or_many.user_nodes_count>
</span>
</div>
</override_macro> All I need to do now is figure out how to change DATE, SUBJECT and LOCATION without using an override - ie making the translation work.

AND... I did this:
<override_macro name="path" parameters="index_record,filter" requires="user">
<n.encode_url.remove_spaces.>
/template/NamlServlet.jtp?macro=user_nodes&user=<n.id/>&filter=topics_only
<n.add_to_path name="i" value="[n.index_record/]" default_value="0"/>
<n.add_to_path name="filter" value="[n.filter/]"/>
</n.encode_url.remove_spaces.>
</override_macro>
These are the macros I edited.
HTTPS Please!