SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2013
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding element to category but not to subcategories or articles

    Hi everybody.

    I am trying to find the way to insert a js file in a category but not in the articles in it.

    Thus adding it to category-a, but not to category-a/whatever-article-might-be-published-here

    I have tried with "if" and strpos functions with no result at all.

    Some idea???

  2. #2
    SitePoint Addict
    Join Date
    Aug 2006
    Location
    Nantwich, Cheshire
    Posts
    363
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Can this be done by analysing the URL to see what 'level' the page is, like the CSS thing? Or is it a different set of criteria other than just looking at the level within the site structure?
    http://www.firenza.net - my homage to a car from the 1970s


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •