0
Welcome Guest! Login
0 items Join Now

SOLVED Understanding File Paths

  • SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • OK, I recently created a template override for one of my components, K2. Of course, I will have to make some small adjustments so everything works like it should. I'm stuck on trying to figure out the correct URL path for my social icons. I'm trying to get this sorted out so the icons appear again.

      The new path to the correct directory location that has the social icons is:
      public_html/templates/rt_zephyr_j15/html/com_k2/templates/nncustomk2/images/social/


      The override is currently looking for the icons at:
      ../images/social/


      The web page in question is:
      www.nintendonerds.com/articles/3ds/item/...p-update-coming-soon

      I would appreciate any help that can be offered.
    • Last Edit: 13 years 11 months ago by NintendoNerds.
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • Hi,

      in components/com_k2/css/k2.css
      replace all of these:
      ../images/social/
      with this:
      /components/com_k2/images/social/
  • Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • Thank you for the quick reply, cdavis!

      OK, I did that, cleared the cache (wasn't needed but I did it anyway), reloaded the page and the images still do not show up.

      EDIT: Wait, hold on a sec. I think I know why it's not working. It's because I'm trying to get it working for the override, which is not where the above CSS file is located.

      I'll report back after I make the changes to the k2.css file in the override location. :D
  • Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • we aim to please ;)
  • Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • Hello, it's me again. :oops:

      I've further extended the customization of my K2 article system and I've discovered something REALLY awesome! Instead of having just one stylesheet for all article categories, I can create sub-category templates. This means that I can create a unique look for each article category giving me unlimited styling. I'm sure this isn't anything new for most experienced stylists but I'm totally excited about my new discovery. Don't worry, I didn't break anything.

      OK, this is what I need help with...more file paths.

      The previous location that my CSS file resided in was:
      templates/rt_zephyr_j15/css/

      The new location for the same CSS file is:
      templates/rt_zephyr_j15/html/com_k2/templates/articles/

      As before, my images are not appearing.

      I need to change the below path (for the new location) so the images can be loaded:
      /components/com_k2/images/system/transparent_star.gif
  • Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • Ahh...OK! After researching this for a long time, I figured it out. I don't know if the path I'm using is correct, but it works.

      I changed this (for example):
      ../images/extended/k2/transparent_star.png

      to this:
      /../../templates/rt_zephyr_j15/images/extended/k2/transparent_star.png

      Is this correct?
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • ehe. I should clarify not for the bg stealing technique but the image path information :D
  • Re: SOLVED Understanding File Paths

    Posted 13 years 11 months ago
    • Thank you, Chris! :D

Time to create page: 0.283 seconds