Re: Content Area Extract
"wwalkerbout" <[email protected]>
| Newsgroups | gmane.comp.cms.xaraya.user |
|---|---|
| Organization | Walkerbout Technologies |
| Message-ID | <[email protected]> |
Hi Ryan, Thanks for the feedback. I'll have to have to try this out, but it sounds like it might be a good option. Cheers, Wayne "Ryan Walker" <[email protected]> wrote in message news:mailman.4.1162851312.11035.xaraya_user-gn8pmO+6nsymdvSpIQae8A@public.gmane.org > Wayne, > Many ways you could do this... one would be with xar:if and the $_GET > variable in php, like so... > > <xar:if condition="isset($_GET['this']) and $_GET['this'] eq 'yep'"> > some stuff in here will only display if the URL ends with the ?this=yep > string > </xar:if> > > Then any time ?this=yep is appended to the URL of the page, only the stuff > in the conditional will display... reverse the logic in the condition to > achieve the opposite effect. Note that if you already have URLs that end > in a query string, then you need to append &this=yep to the URL, instead > of the question mark. And if you want to reference such a URL in your > template, you need to deal with the ampersand properly, like so: > &this=yep > > I think Xaraya might actually be "aware" of query strings in URLs, such > that you can just do... > > <xar:if condition="isset($this) and $this eq 'yep'"> > some stuff in here will only display if the URL ends with the ?this=yep > string > </xar:if> > > ...without using the php $_GET variable, but I don't remember. > > -Ryan > > > > wwalkerbout wrote: >> Hi, >> >> I hope I can describe what I am looking for here. >> >> For a page that contains content (say a "Product" type Article displaying >> an Image, Product Name, Product Description, Product ID, etc...), in the >> center content area, I would like to wrap that in a separate URL >> referenceable page without the surrounding content (Header, Menus, >> Footer, etc..). >> >> Can anyone suggest the options available for doing this and perhaps what >> is the best of those options? >> >> What I am looking for is perhaps displaying the information in either a >> separate Window or even in a Popup Window. In that respect, being able to >> wrap it in its own Page and reference it via a separate URL is important >> to me. >> >> Any and all suggestions greatly appreciated. >> >> Cheers, >> >> >> Wayne >> >> _______________________________________________ >> Xaraya_user mailing list >> [email protected] >> http://xaraya.com/mailman/listinfo/xaraya_user >> >> > > > -- > Ryan Walker > www.WebCommunicate.net: > Insights and resources for effective websites. >