test - display pages with specific tag

Display content from pages with a certain tag on another page

Based on: http://nationbuilder.com/theme_documentation#display_content_from_pages_with_a_certain_tag_on_another_page 

While clicking on page tag will display all pages with that tag, you may want to include pages with the same tag on another page. Doing this is very similar to the method listed above.

We want to include all blog posts with the tag "Canada - Egypt Relations" on a basic page. To do this, click Websites > Theme > New File and name the file something like _tw_pages_with_specific_tag.html, and click Create and edit file. Next, copy the following contents into the file and click Save and Publish.

The tw_pages_with_specific_tag.html function is called in the template for this page, and uses the tag function.

Important: In the tag function call, you must make everything lowercase, and replace spaces and not text/numeric characters with an underscore.  So, e.g. "Canada - Egypt Relations" becomes "canada_egypt_relations"

Below is the content:

 

 

 

 

pp40.pngThe international Arms Trade Treaty (ATT) is a multilateral treaty that regulates the international trade in conventional weapons. 130 of 193 UN member states have already signed it. This position paper explains why Canada should also sign it. Even more, this paper lays recommendations on how to handle the situation in Egypt and other high authoritarian regimes in the Middle East.


z.pngCJPME is pleased to publish the next of a 15 part election series analyzing the positions of Canada’s political parties. CJPME hopes that, by revealing what parties have said and done on key Middle East issues, Canadians will be better informed voters in the upcoming elections. Our next analysis studies each party’s position on the arrest, detention and trials of Al Jazeera journalist Mohamed Fahmy in Egypt.


zCJPME is pleased to publish the next of a 15 part election series analyzing the positions of Canada’s political parties. CJPME hopes that, by revealing what parties have said and done on key Middle East issues, Canadians will be better informed voters in the upcoming elections. Our next studies each party’s position on the arrest and detention of John Greyson and Tarek Loubani during the summer 2013 Egyptian unrest.


Army.png

Montreal, February 3, 2015 — Canadians for Justice and Peace in the Middle East (CJPME) questions the appropriateness of a recently announced police training agreement between Canada and Egypt.  Under the agreement, Canadian police would travel to Egypt to train Egyptian officers, and a number of Egyptian police officers would come to train at the Canadian Police College in Ottawa. CJPME opposes this agreement given that the current Egyptian government is widely condemned for civil liberties and human rights abuses against its people.  Most of the abuses cited have been carried out by Egypt’s Interior Ministry, the very ministry whose staff would receive training from Canadian police experts.  


2014-06-23-border.png

Montreal, June 23, 2014 — Canadians for Justice and Peace in the Middle East (CJPME)—a grassroots citizens’ group— believes the Canadian government’s indifference directly contributed to today’s conviction and sentencing of Canadian journalist Mohamed Fahmy. An Egyptian court convicted Fahmy and two other Aljazeera journalists on charges of aiding terrorism and falsifying news. Fahmy and Australian journalist Peter Greste were sentenced to seven years in prison, and Egyptian producer Baher Mohamed to ten years. Amnesty International observers of the trial commented that the prosecution failed to produce a single shred of solid evidence for either charge. As noted by Amnesty International, Fahmy and the other Al Jazeera crew members were simply doing their jobs as a news crew.


Be the first to comment

Please check your e-mail for a link to activate your account.