Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Categories. Extra delimiters for people lists at the page #2466

Open
Omertron opened this issue Mar 16, 2015 · 2 comments
Open

Categories. Extra delimiters for people lists at the page #2466

Omertron opened this issue Mar 16, 2015 · 2 comments

Comments

@Omertron
Copy link
Member

Original issue 2467 created by Omertron on 2012-08-30T12:28:23.000Z:

  1. Include extra delimitiers for the persons list at the categories page
  2. Replace the link of each person by the link of suitable person page
  3. Include at the person page link to the filtered for that person index page

I modified a little bit default skins as following to get it happend, will be glad to share detais if it will be useful feature for default package:

a) Categories.xsl:
...
<xsl:variable name="eav-categories-delimiters-filter">Cast Director Writer Person</xsl:variable>
...
<xsl:for-each select="index">
<xsl:if test="contains($eav-categories-delimiters-filter,../@name) and ((position=1) or (substring(@name,1,1) != substring(preceding-sibling::index[1]/@name,1,1)))"><span class="eav_title"><xsl:value-of select="substring(@name,1,1)" /></span><span class="eav_delimiter"> | </span></xsl:if>

      &lt;xsl:choose&gt;
        &lt;xsl:when test=&quot;(contains('Person',../@name))&quot;&gt;
            &lt;a&gt;&lt;xsl:attribute name=&quot;href&quot;&gt;People/&lt;xsl:value-of select=&quot;substring-before(substring-after(.,'Person_'),'_1')&quot;/&gt;.html&lt;/xsl:attribute&gt;&lt;xsl:value-of select=&quot;@name&quot; /&gt;&lt;/a&gt;         &lt;/xsl:when&gt;
        &lt;xsl:otherwise&gt;
            &lt;a&gt;&lt;xsl:attribute name=&quot;href&quot;&gt;&lt;xsl:value-of select=&quot;.&quot;/&gt;.html&lt;/xsl:attribute&gt;&lt;xsl:value-of select=&quot;@name&quot; /&gt;&lt;/a&gt;
        &lt;/xsl:otherwise&gt;
      &lt;/xsl:choose&gt;

      &lt;xsl:choose&gt;
        &lt;xsl:when test=&quot;(position()!=last()) and (contains($eav-categories-delimiters-filter,../@name))&quot;&gt;&lt;span class=&quot;eav_delimiter&quot;&gt; | &lt;/span&gt;&lt;/xsl:when&gt;
        &lt;xsl:when test=&quot;position()!=last()&quot;&gt; &amp;#&nbsp;160;&amp;#&nbsp;160; &lt;/xsl:when&gt;
      &lt;/xsl:choose&gt;
    &lt;/xsl:for-each&gt;

..

b) suitable update for people.xsl

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2012-08-30T14:26:56.000Z:

Yes please, if you can attach the modified files I can add them straight into the code.

@Omertron
Copy link
Member Author

Comment #2 originally posted by Omertron on 2012-08-30T20:34:15.000Z:

Modified files attached with notes at the _readme.txt.
p.s. you may find interesting something at the Issue 2468: Default skin look and feel refresh / extra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant