SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to know which page to edit??

    Hi there,
    I am creating a website with Joomla and so when I download modules all I do is install them and the code places itself. However, I like to customize things and am just wondering how i can tell which page to go to to change code. I have firebug to inspect the elements on the page and it shows the html and css, for the css it tells me exactly what file the CSS is contained in. for example: template.css [insert css here] but for the html that it shows it doesn't seem to indicate where it is coming from. I can inspect the element and see exaclty what I want to change, but i don't know how to get there aside from checking every .php file on the site. Thanks.

  2. #2
    SitePoint Zealot
    Join Date
    Sep 2009
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Of course it wouldn't, because it can only report the HTML that is served by that particular page: i.e. what the browser gets. Use your text/code editor or IDE to do a "find in files" search for any strings that will clearly identify the source, but don't expect guaranteed results because by no means all HTML is in plain text in the middle of complex PHP files: far from it in many cases.

    EDIT: Check Joomla's modules for any that assist development, like the Devel module for Drupal.

  3. #3
    SitePoint Addict FizixRichard's Avatar
    Join Date
    May 2003
    Location
    UK
    Posts
    372
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately what Mat30 has suggested is your only option, a nasty nuance of the cms not having a real template engine I'm afraid.

    If the code is being generated by the plugin you might be able to narrow down your script search to that plugins files, might be worth going through them first (check the plugins folder first) as it could lead you to where you want to go. But be careful as you could easily both things up.
    FIZIX - Full Service Digital Agency - Engaging websites, apps and games.
    Follow us @FIZIXAgency

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2011
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I can't seem to find the specific line of code I'm looking for in any of the modules files. Oh well, guess I'll try something else!

  5. #5
    SitePoint Zealot bronze trophy
    Join Date
    Jan 2012
    Posts
    116
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If the HTML is being produced by a module or plugin, then you only need to search the files for that particular module or plugin.

    If the HTML is coming from the article, then you can just go to that article, and switch the editor (TinyMC or whatever you're using) to HTML mode.

    And if the HTML is coming from your template, then just go to the index.php file for that template.

    In most cases, it's not much more complicated than that.


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
  •