--- Jonathan Clark <suppressed> wrote: > [contextual quoting fixed] > > > > > I'm working on building a dynamic catalog > browsing > > > > page. The page gets a category of products > from > > > the > > > > URL and possibly a page number to show, else > it > > > shows > > > > the first in the category range. These are > images > > > of > > > > whole catalog pages in jpeg format with image > maps > > > to > > > > go along with them. It's a long story. > > > > > > > > What I'm wondering is if there's a way to > > > interpolate > > > > the [include] or [file] tags. I need to grab > a > > > > different image map, each of which are stored > in > > > > separate files, for inclusion in the page > > > depending on > > > > what catalog page number I'm currently > showing. > > > I've > > > > searched the archives and haven't been able to > > > find a > > > > way to do this. > > > > > > > > What I'd like to do, basically, is: > > > > > > > > [include name="catalog/imagemaps/[scratch > > > > thispage].map"] > > > > > > > > But that doesn't work. Or does it and I'm > doing > > > > something wrong? > > > > > > > > TIA, > > > > > > > > Ryan > > > > > > > > > > Ryan, did my suggestion not workout? > > > > > > [include file="catalog/imagemaps/[scratch > > > thispage].map"] > > > > > > assuming [scratch thispage] is properly set... > > > Your suggestion did work for the [file] tag, but > not > > the [include] tag. > > > > The image map I'm including looks like this: > > > > <area shape="rect" coords="145,93,163,141" > href="[page > > href="7068"]"> > > <area shape="poly" > > > coords="103,71,127,71,134,110,132,125,118,134,97,127" > > href="[page href="7048"]"> > > > > So I want to use [include] to interpolate all teh > > [page] tags in there. However, I can only get the > > file to be included if I use [file] instead of > > [include]. The tag looks like: > > > > [include name="pages/catalog/imagemaps/[scratch > > thispage].html"] > > > > That doesn't work, but replacing include with file > > does include it, but obviously doesn't interpolate > > those tags. > > > > Any reason that would be? I've checked and double > > checked the map fle and made sure all the [page] > tags > > were formatted correctly and there were not weird > > brackets hanging about. > > Firstly, please post replies in the context of the > message, as per the > guidelines of the list which you were sent. > > As has been answered above, the named parameter for > the [include] tag is > 'file' and not 'name'. Also, I think you meant to > use [area] instead of > [page] in your above code. Other than that, it > should work if you use: > > [include file="pages/catalog/imagemaps/[scratch > thispage].html"] > > Jonathan > www.webmaint.net Aha! That works! Thanks. Ryan __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.