How To Tile Review Records
|
|
« Red Queen User Manual
|
Tutorial Table Of Contents
|
Obtain Red Queen »
LINK TARGETSWhen you set up your tiled pages you will find that items link to their corresponding detail pages (where reviews appear), but members and suppliers can link either to their detail page OR to their profile page (where there are no reviews, but more information can be presented about the member or supplier). Sometimes the default linkage for members and suppliers just won't be the one you want. When the link goes to the profile page, you might instead want it to go to the detail page. Which is the more suitable link will depend entirely on the purpose of your pages. To change the default linkage you will have to edit the relevant tiled template. So the first step is to figure out which template that is. Study the HTML source generated by the application and look for the tell-tale template names. For example, if you are looking to change the linkage for featured suppliers you will find the template is featured_suppliers_compact_tiled.ttml When you look through that template you will see code that looks like this: [%# link to the supplier profile page (or the detail page) %] [% my_target_url = extra.profile_page_url %] [%# my_target_url = extra.detail_page_url %] What you see here are two commented out Template Toolkit tags (tags are commented out when the # symbol appears in front of the first % sign). Commented tags are ignore by the Template Toolkit parser. So the line that sets the [% my_target_url %] variable is the secind one. This line uses the profile url as the target for the link in which the [% my_target_url %] variable appears. In this case, if you decided you wanted to point the link at the detail page instead, then you would comment the second line and uncomment the third. If you go through the tiled templates you will find that you can change most of the linkage targets by doing this comment/uncomment exercise. Next Section: ALTERING THE TILING CLASSES Copyright © 2004 Random Mouse Software. All Rights Reserved. | |||||||||