I deleted my Alpha 2 install including the database and g2data folder and installed Alpha 3. I then copied my modified theme and layout to the appropiate folders, but the layout doesn't show up in the admin panel. I then copied the layout.css.php file from the matrix layout to mine. It still didn't show up. I then copied layout.inc and replaced Matrix with my layout name. Does anyone have any ideas what went wrong.
Thanks,
Posts: 7994
Hm. Can you turn on buffered debug mode when you go to the Layouts site admin page and then look in the debug output to see if it's scanning your layout directory? It should look for any directory under gallery2/layouts that contains a file called "layout.inc" in it.
Posts: 808
OK I did that and here is what I got. Any ideas.
Thanks,
[/code]
Posts: 8601
I think bharat was looking for the debug output at the bottom of the actual G2 page, not the contents of the popup window with smarty output.
Posts: 808
Oh. I didn't see that until you mention it. Well here that is.
Posts: 7994
Oy! I bet it's because of this line -- we're loading the layout list from the cache. Try deleting the file listed above and then go back to the admin layouts page and see if your new layout appears (or if the behaviour is different).
Posts: 8601
bharat, doesn't the module cache refresh when you visit site admin / modules? I suppose the layout cache should refresh when you visit site admin / layouts.. (or if all plugins are cached together, visiting either should refresh the cache, right?)
Posts: 328
mindless, bharat, the "Site Admin > Modules" view already skips the cache when showing the module's list. I just did the same on "Site Admin > Layouts", so this problem should be fixed now.
lvthunder, if you can, re-install the latest G2 code (e.g. tomorrows CVS-snapshot) and see if it works better now.
Posts: 808
To install tomorrows CVS-snapshot I would visit Chetan Sarva's snapshot page and download the file gallery2-2004-10-20.zip (Tomorrow that is since it's still today) or would I download gallery2-latest.zip.
Thanks,
Posts: 328
lvthunder, heh, I'm not sure when the snapshots are taken. The "-latest" is surely the one to try. My fix was added to the file modules/core/AdminLayouts.inc. Make sure this file has a current date (19th october) and you will be fine.
Posts: 808
Thanks it works now. Yesterday I used the script and deleted the cache and it showed up like bharat said it would. I then installed the latest CVS Snapshot this morning and it worked without deleteing the cache.
Thanks,