Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-10 22:42:59

frickinmuck
Member
Registered: 2008-05-01
Posts: 118

Display date-based output differently based on referring section

I don’t even know how to give this a proper title because it’s just kind of a weird thing I want to do. In my previous post my concern was to build a news releases archive pull-down menu using dates (i.e. “July 2009” outputs a list of all news releases for July 2009). Got that working (thanks everyone who helped me out!). The solution uses dates in the url to output content (i.e. /newsreleases_archive?month=2009-08).

That’s fantastic and it works beautifully, but now I have a new complication to figure out, and I don’t even know if this is possible.

I have a new mini-site I’m building as part of the same project that, for all intents and purposes, is totally separate from the main site, although it consists of additional sections in the same textpattern install. The navigation is different, the CSS is different, etc., but I’m using a lot of the same content, and one of the elements I want to be able to re-use for this mini-site is the news releases section.

The problem is, I can’t figure out how to get the content output from the pull-down menu to display differently in the mini-site from how it displays in the main site. Because there is a different navigation structure, different look & feel, etc, (although similar), I want the news releases section in this mini-site to, of course, reflect the navigation and so forth of the area it’s being accessed through.

If it were just a regular article, I could easily get it to display by creating a new section (i.e. press releases) and then use txp:article_custom to pull the content from the news releases section into the new press releases section, and all would be OK. But because the date-based browsing approach relies upon the use of the date-based url structure in order to work (i.e. /newsreleases_archive?month=2009-08), I’m stumped.

I need the news releases archive to somehow know which section the user is coming from (either from “news releases” in the main site, or “press releases” in the new mini-site) and display the content within the layout for that site, but I have no idea how to achieve that, or if it’s even possible. Any ideas?


The AI does not hate you, nor does it love you, but you are made out of atoms which it can use for something else.

Offline

Board footer

Powered by FluxBB