corlettb

About me: A newbie at the Elgg situation, just learning about PHP coding and the ELGG system...
Location:
Website: http://
Email:

Group membership

Activity

  • corlettb replied on the discussion topic foreach syntax?
    Dynamite, thank you so much Matt, got it workin now! I think that shortcut will save me a lot of time down the road. view reply
  • corlettb replied on the discussion topic foreach syntax?
    i dont know Trajan, that didn't seem to work.. view reply
  • corlettb added a new discussion topic foreach syntax? in the group Elgg Technical Support
    I have a piece of metadata stored in my object called thingtype, i'm using it to override the object/summary.php file for elgg_list... when I use if then statements I get it to work properly: (in object file) $thingtype =...
  • corlettb replied on the discussion topic 4 column list entity problem
    thanks trajan, that fixed it view reply
  • corlettb added a new discussion topic 4 column list entity problem in the group Elgg Technical Support
    I have a page that uses 4 columns and lists entitities by different metadata for each. When I use the following (pasted at the end of post) it loads and looks as I want it to. But I want to put the html into a different file that so that I can use...
  • corlettb replied on the discussion topic Override headers w page handler?
    oh one more question though, what exactly is a var_dump and how do you do it? view reply
  • corlettb replied on the discussion topic Override headers w page handler?
    hey thanks, I actually ended up going a different route. I cleared out the header_logo.php file so that its just an empty file and then for each page I just extend the view using:   elgg_extend_view('page/elements/header_logo',... view reply
  • corlettb added a new discussion topic Override headers w page handler? in the group Elgg Technical Support
    http://reference.elgg.org/page_2layouts_2content_8php_source.html   I've seen that its possible on a couple articles specifically the above link, am I understanding this ability corrently, I'd like to change the header based on which page it...
    • Your solution should work.

      Is 'htmlpage/elements/header_logo' the location of your new view containing the html for the new header? Do an upgrade.php everytime you make a new view. Do a var_dump on $header to make sure you are getting back the content of the view

    • hey thanks, I actually ended up going a different route. I cleared out the header_logo.php file so that its just an empty file and then for each page I just extend the view using:

       

      elgg_extend_view('page/elements/header_logo', 'art/elements/header_art');

      This line should go in your 'mod/mymod/page/mymod/page.php' file

      This accomplishes the same thing, for anyone interested. In the above code just replace 'art/elements/header_art' with the location of your file. For my pages the header is totally different for each page so my header_logo.php file is blank, but you can put a title in that file, and then extend it with new information. Simple concept for an elgg or php expert, but not that easy for an HTML/CSS user... 

    • oh one more question though, what exactly is a var_dump and how do you do it?

Friends

No friends yet.

Send private message

You must be logged in to send a private message.