Ning Developer Docs

I've been trying to figure out where the code for the homepage layout is.

Is it even possible to change the layout for that? I was wanting just a two column layout.

Views: 9

Replies to This Discussion

This folder in your path in your code:
/ widgets / index / templates / embed /

This leads to where you can edit the header, footer and other elements. Doesn't change the overall layout, but manipulates portions of it.
I'm sure if you poke around that area long enough you should be able to locate the layout file. (There are some folders in the templates folder that could lead you there if you know what you're looking for).

Hope this helps.
I think I did at least get that far. I also found a bunch of stuff in the lib folder based on the type of page being rendered.

XG_Layout.php decides what type of layout to use it looks like. I just can't figure out where the actual layout markup is coming from.
If you go to the object manager interface, you'll find it under the PageLayout object.

ie.
http://yournetworkname.ning.com/index.php/admin/index/manage?type=P...

obviously replacing yournetworkname with...
"Object manager interface" -? Not sure what you're referring to here.
Thanks,
Leif
Hi Joshua - you can also kinda sorta cheat and use CSS, making the left column invisible by using { display:none; } and stretching out the middle column to make up for the left space.

Thanks, Ernie
Hi,

Try looking at renderColumn function of /lib/XG_LayoutHelper.php. Try to experiment adding div tags....

I did that on my sample site http://mygizter.ning.com I use a 1 column layout.

Just my 2 cents... Hope this helps
hey there...

how do you change the width of the second column? i made the first column disappear with the code you gave above, but now i'm left with a gap between column 2 and i guess column 3 (?). =P

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service