Active
Project:
dfgallery
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2009 at 21:34 UTC
Updated:
14 Jul 2010 at 05:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
eastcn commentedTry:
Copied to the page.tpl.php file
Comment #2
andy_read commentedI understand where the dfgallery_html() code can be put, but I can't work out where the dfgallery_json() code should be put.
Comment #3
seath_49 commentedHello guys,
I have the same problem. Where to put the code to generate json data?
Thnx
Comment #4
cakka commentedsame question, please give me know where i must put every code..
thanks
---
Drupal Development Services
Comment #5
dabellator commentedI have yet to dive much into this module, but I can already see the issue mentioned in this thread. I'm going to work on it to see if I can figure it out, but figured I would also add my request for help! I'm also a little unsure how to interact with this module, is it through cck or is there an upload folder like flash gallery? If I discover anything I'll report back!
-JB
Comment #6
satujamsaja commentedYes what i have found is what kind of field required for generate image data.It is possible to create custom data from cck for this ? But the main problem is this module did't clearly explain how to pass generated json data to dfgallery.swf.
Thanks
-ds-
Comment #7
eastcn commenteddfgallery_json($albums); // $albums = array();try:
Comment #8
tianqiang0316 commentedI also want to know where to put the code.
who can help me !
Comment #9
fengtanHere is a solution to generate the JSON data for Dfgallery.
Enable this example module and check that you can actually access the data by browsing
/albums.json. It uses hard coded pictures.Then write the following code where you want the gallery to be displayed (you may have to customize the path according to your drupal installation :
If you wish to display your own images in the gallery just edit
dfgallery_example.moduleand customize the array returned bydfgallery_example_json()with your own picture URLs.