Forum

You must be logged in to post Login Register

Search Forums:


 






Can't get DCG to work in Executive child theme's regular pages

fixed
UserPost

1:54 am
February 7, 2010


ptortora

Member

posts 3

1

I'm feeling a bit stupid right about now but just can't get the DCG to work in the Genesis child them Executive.  Here is a link to the page http://66.147.244.193/~muscoeng/?page_id=142


Her's what I've done thus far:

1  I modified the functions.php file by adding the following:

add_action('genesis_before_loop', 'display_dcg');
function display_dcg() {
    if( is_page(142) ) {
        dynamic_content_gallery();
    }
}   


2  I configured the DCG plugin as follows:

Image File Management: full URL
Gallery Method: one-category | Default Images folder is: http://66.147.244.193/~muscoeng/dcmimages/
Slide Pane Description: auto
Page Source Error messages: on | Javascript Framework used: mootools
Scripts restricted to: Page Template => page.php


3.  I created two test posts with dfcg-image links to http://66.147.244.193/~muscoeng/dcgimages/image1.jpg  and http://66.147.244.193/~muscoeng/dcgimages/image2.jpg for the second post.


When I view the 'Gallery' page I created (142) it gives me 4 thumbnails with 'error' written in them.  I do not get the DCG scrolling, etc.

I'm lost and have tried several hours reading the forums, trying to reconfigure the plugin, etc.  Any advice will be much appreciated.


2:54 am
February 7, 2010


Ade

Admin

posts 817

2

Hi,

Are you using the latest version of the DCG (version 3.2.1)? If not, upgrade.

For the post images, don't enter a custom field – use the DCG metabox in the Write Posts screen sidebar. (dfcg-image etc is no longer used in the plugin).

Finally, the javascript isn't being loaded which is why you see 4 images and no content slider. The correct syntax is this:

if( is_page('142') ) {

Plus, select "Other" in the Restrict Scripts loading options in the DCG Setting page.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

12:17 pm
February 7, 2010


ptortora

Member

posts 3

3

There's always a reason … guess I was too tired to catch the syntax error.  However, it is working like a charm now and the ability to select the javascript framework was brilliant.  Loving the plugin and the extensive configurability of DCG is hard to beat.  THANK YOU!

12:31 pm
February 7, 2010


Ade

Admin

posts 817

4

Great! Glad it's working. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?