Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDisplaying categories specific to a listing in the repository moduleDisplaying categories specific to a listing in the repository module
Previous
 
Next
New Post
12/22/2009 3:16 PM
 

I have a repository module with several categories.  Each listing in the repository can belong to more than one category.  I want to modify the template.html file to show under each listing the category to which this listing belongs.  Simply using [CATEGORY] shows only one category.   Any suggestions?

 
New Post
12/28/2009 8:42 AM
 

try [CATEGORIES]

 
New Post
1/14/2010 6:30 AM
 

 Thanks for the post.  I tried [CATEGORIES], but that does not produce anything.  In any case, CATEGORIES is what lists all categories in the header and is defined in header.xml.  What I really want is to show what category each entry belongs to.

 
New Post
1/14/2010 2:38 PM
 

Putting a [CATEGORIES] token in the template.html file will display a comma delimited list of the categories that the item belongs to.

Putting a [CATEGORIES] token in the header.html or footer.html file will display a dropdown list of all of the available categories, and selecting a category from the dropdown list will cause the displayed items to be filtered by the selected category.

 
New Post
1/29/2010 4:44 AM
 

Alright, I put [CATEGORIES], but I get no results.  Here is some detail:

My repository is version 3.1.10.

I started with the "businesscards" template.html and modified it to the following:

<TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
  <TR><TD>
    <TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
      <TR BGCOLOR="#FFFFFF"><TD CLASS="Head" ALIGN="Left" WIDTH="67%" VALIGN="Middle" style="padding: 3px;">
        [EDIT]
      </TD></TR>
    </TABLE>
  </TD></TR>
  <TR bgcolor=white><TD>
    <TABLE CLASS="normal" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
      <TR><TD WIDTH=100 CLASS="normal" ALIGN="center" VALIGN="top" style="padding-left: 6px; padding-right: 6px;">
        <IMG SRC="[THUMBNAIL]" BORDER=0 ALT="">
      </TD>
      <TD CLASS="normal" ALIGN="left" VALIGN="top">
        [TITLE]<br><span style="font-family: Verdana; font-size: small">[DESCRIPTION]<br>[SUMMARY]
        <br>[CATEGORIES]</span>
      </TD>
      <TD WIDTH=140 CLASS="normal" ALIGN="left" VALIGN="top">
        [RATINGS]<br><br>[COMMENTS]
      </TD></TR></TABLE>
  </TD></TR>
</TABLE>
[RATINGSFORM]<br>[COMMENTSFORM]
 

You can see the "<br>[CATEGORIES]" addition that I made.  I know this is the right template file as the "<br>" portion got added to the HTML output.  "CATEGORIES]", however, does not produce anything.

The template.xml file does not define [CATEGORIES].  I wouldn't even know how to define it there.  I don't know if it matters.

Any advice? 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryDisplaying categories specific to a listing in the repository moduleDisplaying categories specific to a listing in the repository module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out